coresight: syscfg: Add initial configfs support
PATCH 1/1 coresight: syscfg: Add initial configfs support
This fixes build failures 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 ^
--- drivers/hwtracing/coresight/coresight-syscfg.c | 1 + 1 file changed, 1 insertion(+)
drivers/hwtracing/coresight/coresight-syscfg.c +1 -0
@@ -5,6 +5,7 @@*/ #include <linux/platform_device.h> +#include <linux/slab.h> #include "coresight-config.h" #include "coresight-etm-perf.h"
Signature · 1 line
2.33.0.259.gc128427fd7-goog
Please ignore this patch. The title is incorrect, I've updated and
resented it at https://lore.kernel.org/lkml/[email protected]/.
Sorry for any inconveniences.
Jian
Quoted 27 lines · Jian Cai
This fixes build failures 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 ^
Signed-off-by Jian Cai <[email protected]>--- drivers/hwtracing/coresight/coresight-syscfg.c | 1 + 1 file changed, 1 insertion(+)drivers/hwtracing/coresight/coresight-syscfg.c +1
-1@@ -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