[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210826154903.GA4082743@roeck-us.net>
Date: Thu, 26 Aug 2021 08:49:03 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Jian Cai <jiancai@...gle.com>
Cc: mike.leach@...aro.org, dianders@...omium.org, mka@...omium.org,
manojgupta@...gle.com, llozano@...gle.com,
coresight@...ts.linaro.org, linux-arm-kernel@...ts.infradead.org,
clang-built-linux@...glegroups.com,
Mathieu Poirier <mathieu.poirier@...aro.org>,
Suzuki K Poulose <suzuki.poulose@....com>,
Leo Yan <leo.yan@...aro.org>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] coresight: syscfg: fix compiler warnings
On Wed, Aug 25, 2021 at 03:25:14PM -0700, Jian Cai wrote:
> This fixes warnings with -Wimplicit-function-declaration, e.g.
>
> ^[[1m/mnt/host/source/src/third_party/kernel/v5.4/drivers/hwtracing/coresight/coresight-syscfg.c:455:15: ^[[0m^[[0;1;31merror: ^[[0m^[[1mimplicit declaration of function 'kzalloc' [-Werror,-Wimplicit-function-declaration]^[[0m
> csdev_item = kzalloc(sizeof(struct cscfg_registered_csdev), GFP_KERNEL);
> ^[[0;1;32m ^
You might want to split this into multiple lines and remove the ANSI
escape codes. Otherwise
Reviewed-by: Guenter Roeck <linux@...ck-us.net>
Guenter
>
> Signed-off-by: Jian Cai <jiancai@...gle.com>
> ---
> drivers/hwtracing/coresight/coresight-syscfg.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/hwtracing/coresight/coresight-syscfg.c b/drivers/hwtracing/coresight/coresight-syscfg.c
> index fc0760f55c53..43054568430f 100644
> --- a/drivers/hwtracing/coresight/coresight-syscfg.c
> +++ b/drivers/hwtracing/coresight/coresight-syscfg.c
> @@ -5,6 +5,7 @@
> */
>
> #include <linux/platform_device.h>
> +#include <linux/slab.h>
>
> #include "coresight-config.h"
> #include "coresight-etm-perf.h"
> --
> 2.33.0.259.gc128427fd7-goog
>
Powered by blists - more mailing lists