coresight: syscfg: fix compiler warnings
PATCH v2 1/1 coresight: syscfg: fix compiler warnings
This fixes warnings with -Wimplicit-function-declaration, e.g.
drivers/hwtracing/coresight/coresight-syscfg.c:455:15: error:
implicit declaration of function 'kzalloc' [-Werror, -Wimplicit-function-declaration]
csdev_item = kzalloc(sizeof(struct cscfg_registered_csdev),
GFP_KERNEL);
---
Changes v1 -> v2:
Format the commit message and add Fixes and Reviewed-by tag.
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
Quoted 11 lines · Jian Cai
This fixes warnings with -Wimplicit-function-declaration, e.g.
drivers/hwtracing/coresight/coresight-syscfg.c:455:15: error:
implicit declaration of function 'kzalloc' [-Werror, -Wimplicit-function-declaration]
csdev_item= kzalloc(sizeof(structcscfg_registered_csdev),
GFP_KERNEL);Fixes 85e2414c518a ("coresight: syscfg: Initial coresight system configuration")Reviewed-by Guenter Roeck <[email protected]>Signed-off-by Jian Cai <[email protected]>
Quoted 8 lines
---
Changes v1 -> v2:
Format the commit message and add Fixes and Reviewed-by tag.drivers/hwtracing/coresight/coresight-syscfg.c | 1 + 1 file changed, 1 insertion(+)
I have applied this patch to my local tree. I will push it to the coresight-next branch when 5.15-rc1 is published next week.
Thanks,
Mathieu
Quoted 15 lines
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
Hi,
Quoted 18 lines · Mathieu Poirier
Quoted 16 lines · Jian Cai
This fixes warnings with -Wimplicit-function-declaration, e.g.
drivers/hwtracing/coresight/coresight-syscfg.c:455:15: error:
implicit declaration of function 'kzalloc' [-Werror, -Wimplicit-function-declaration]
csdev_item= kzalloc(sizeof(structcscfg_registered_csdev),
GFP_KERNEL);Fixes 85e2414c518a ("coresight: syscfg: Initial coresight system configuration")Reviewed-by Guenter Roeck <[email protected]>Signed-off-by Jian Cai <[email protected]>---
Changes v1 -> v2:
Format the commit message and add Fixes and Reviewed-by tag.
Quoted 6 lines
Quoted 3 lines
drivers/hwtracing/coresight/coresight-syscfg.c | 1 + 1 file changed, 1 insertion(+)I have applied this patch to my local tree. I will push it to the coresight-next branch when 5.15-rc1 is published next week.
Out of curiosity, does the fact that it'll be in coresight-next mean that this will target v5.15 or v5.16? I usually think of "-next" branches as targeting one major version later, so I'd assume v5.16? ...but it would be nice if this warning could get fixed somewhere in v5.15.
Thanks and sorry if this was obvious and I just didn't know.
-Doug
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 26 lines · Doug Anderson
Hi,
Quoted 22 lines · Mathieu Poirier
Quoted 19 lines · Jian Cai
This fixes warnings with -Wimplicit-function-declaration, e.g.
drivers/hwtracing/coresight/coresight-syscfg.c:455:15: error:
implicit declaration of function 'kzalloc' [-Werror, -Wimplicit-function-declaration]
csdev_item= kzalloc(sizeof(structcscfg_registered_csdev),
GFP_KERNEL);Fixes 85e2414c518a ("coresight: syscfg: Initial coresight system configuration")Reviewed-by Guenter Roeck <[email protected]>Signed-off-by Jian Cai <[email protected]>---
Changes v1 -> v2:
Format the commit message and add Fixes and Reviewed-by tag.drivers/hwtracing/coresight/coresight-syscfg.c | 1 + 1 file changed, 1 insertion(+)
Quoted 9 lines
Quoted 2 lines
I have applied this patch to my local tree. I will push it to the coresight-next branch when 5.15-rc1 is published next week.
Out of curiosity, does the fact that it'll be in coresight-next mean that this will target v5.15 or v5.16? I usually think of "-next" branches as targeting one major version later, so I'd assume v5.16? ...but it would be nice if this warning could get fixed somewhere in v5.15.
Normally "when 5.15-rc1 is published" would imply v5.16.
Note that warnings are now reported as errors in mainline, since -Werror is now enabled by default.
Guenter