========== build_clang - FAILED ../drivers/acpi/property.c:1680:1: error: incompatible function pointer types initializing 'int (*)(const struct fwnode_handle *, const char *, const char *, int, unsigned int, struct fwnode_reference_args *)' with an expression of type 'int (const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *)' [-Wincompatible-function-pointer-types] 1680 | DECLARE_ACPI_FWNODE_OPS(acpi_device_fwnode_ops); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1669:25: note: expanded from macro 'DECLARE_ACPI_FWNODE_OPS' 1669 | .get_reference_args = acpi_fwnode_get_reference_args, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1681:1: error: incompatible function pointer types initializing 'int (*)(const struct fwnode_handle *, const char *, const char *, int, unsigned int, struct fwnode_reference_args *)' with an expression of type 'int (const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *)' [-Wincompatible-function-pointer-types] 1681 | DECLARE_ACPI_FWNODE_OPS(acpi_data_fwnode_ops); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1669:25: note: expanded from macro 'DECLARE_ACPI_FWNODE_OPS' 1669 | .get_reference_args = acpi_fwnode_get_reference_args, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. make[5]: *** [../scripts/Makefile.build:207: drivers/acpi/property.o] Error 1 make[5]: *** Waiting for unfinished jobs.... In file included from ../drivers/acpi/apei/ghes.c:20: In file included from ../include/linux/arm_sdei.h:8: In file included from ../include/acpi/ghes.h:5: In file included from ../include/acpi/apei.h:9: In file included from ../include/linux/acpi.h:13: In file included from ../include/linux/resource_ext.h:11: In file included from ../include/linux/slab.h:16: In file included from ../include/linux/gfp.h:7: In file included from ../include/linux/mmzone.h:8: In file included from ../include/linux/spinlock.h:59: In file included from ../include/linux/irqflags.h:18: In file included from ../arch/x86/include/asm/irqflags.h:102: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:392: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. make[4]: *** [../scripts/Makefile.build:465: drivers/acpi] Error 2 make[4]: *** Waiting for unfinished jobs.... ../drivers/platform/x86/dell/dcdbas.c:104: warning: Function parameter or struct member 'size' not described in 'smi_data_buf_realloc' ../drivers/platform/x86/dell/dcdbas.c:285: warning: Function parameter or struct member 'smi_cmd' not described in 'dcdbas_smi_request' ../drivers/platform/x86/dell/dcdbas.c:317: warning: Function parameter or struct member 'dev' not described in 'smi_request_store' ../drivers/platform/x86/dell/dcdbas.c:317: warning: Function parameter or struct member 'attr' not described in 'smi_request_store' ../drivers/platform/x86/dell/dcdbas.c:317: warning: Function parameter or struct member 'buf' not described in 'smi_request_store' ../drivers/platform/x86/dell/dcdbas.c:317: warning: Function parameter or struct member 'count' not described in 'smi_request_store' ../drivers/platform/x86/dell/dcdbas.c:616: warning: Function parameter or struct member 'nb' not described in 'dcdbas_reboot_notify' ../drivers/platform/x86/dell/dcdbas.c:616: warning: Function parameter or struct member 'code' not described in 'dcdbas_reboot_notify' ../drivers/platform/x86/dell/dcdbas.c:616: warning: Function parameter or struct member 'unused' not described in 'dcdbas_reboot_notify' ../drivers/firmware/broadcom/bcm47xx_nvram.c:41: warning: Function parameter or struct member 'nvram' not described in 'bcm47xx_nvram_is_valid' ../drivers/firmware/broadcom/bcm47xx_nvram.c:49: warning: Function parameter or struct member 'nvram_start' not described in 'bcm47xx_nvram_copy' ../drivers/firmware/broadcom/bcm47xx_nvram.c:49: warning: Function parameter or struct member 'res_size' not described in 'bcm47xx_nvram_copy' ../drivers/firmware/broadcom/bcm47xx_nvram.c:73: warning: Function parameter or struct member 'flash_start' not described in 'bcm47xx_nvram_find_and_copy' ../drivers/firmware/broadcom/bcm47xx_nvram.c:73: warning: Function parameter or struct member 'res_size' not described in 'bcm47xx_nvram_find_and_copy' ../drivers/staging/sm750fb/ddk750_swi2c.c:95:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] 95 | int i, tmp; | ^ 1 warning generated. ../drivers/staging/gpib/cb7210/cb7210.c:1249:24: warning: variable 'handle' set but not used [-Wunused-but-set-variable] 1249 | struct pcmcia_device *handle; | ^ ../drivers/staging/gpib/cb7210/cb7210.c:1250:21: warning: variable 'dev' set but not used [-Wunused-but-set-variable] 1250 | struct local_info *dev; | ^ 2 warnings generated. In file included from ../drivers/staging/rtl8723bs/core/rtw_security.c:8: In file included from ../drivers/staging/rtl8723bs/include/drv_types.h:17: In file included from ../include/linux/sched/signal.h:5: In file included from ../include/linux/rculist.h:11: In file included from ../include/linux/rcupdate.h:26: In file included from ../include/linux/irqflags.h:18: In file included from ../arch/x86/include/asm/irqflags.h:102: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:392: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/staging/rtl8723bs/core/rtw_xmit.c:1939:13: warning: variable 'drop_cnt' set but not used [-Wunused-but-set-variable] 1939 | static u32 drop_cnt; | ^ In file included from ../drivers/staging/rtl8723bs/core/rtw_xmit.c:7: In file included from ../drivers/staging/rtl8723bs/include/drv_types.h:17: In file included from ../include/linux/sched/signal.h:5: In file included from ../include/linux/rculist.h:11: In file included from ../include/linux/rcupdate.h:26: In file included from ../include/linux/irqflags.h:18: In file included from ../arch/x86/include/asm/irqflags.h:102: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:392: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 2 warnings generated. ../drivers/staging/rtl8723bs/hal/hal_com.c:893:6: warning: variable 'res' set but not used [-Wunused-but-set-variable] 893 | u32 res, i = 0; | ^ 1 warning generated. ../drivers/staging/gpib/gpio/gpib_bitbang.c:1361:13: warning: unused function 'usec_diff' [-Wunused-function] 1361 | inline long usec_diff(struct timespec64 *a, struct timespec64 *b) | ^~~~~~~~~ 1 warning generated. ../drivers/staging/gpib/ines/ines_gpib.c:1112:21: warning: variable 'dev' set but not used [-Wunused-but-set-variable] 1112 | struct local_info *dev; | ^ 1 warning generated. make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1997: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../drivers/acpi/property.c:1680:1: error: incompatible function pointer types initializing 'int (*)(const struct fwnode_handle *, const char *, const char *, int, unsigned int, struct fwnode_reference_args *)' with an expression of type 'int (const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *)' [-Wincompatible-function-pointer-types] 1680 | DECLARE_ACPI_FWNODE_OPS(acpi_device_fwnode_ops); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1669:25: note: expanded from macro 'DECLARE_ACPI_FWNODE_OPS' 1669 | .get_reference_args = acpi_fwnode_get_reference_args, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1681:1: error: incompatible function pointer types initializing 'int (*)(const struct fwnode_handle *, const char *, const char *, int, unsigned int, struct fwnode_reference_args *)' with an expression of type 'int (const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *)' [-Wincompatible-function-pointer-types] 1681 | DECLARE_ACPI_FWNODE_OPS(acpi_data_fwnode_ops); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1669:25: note: expanded from macro 'DECLARE_ACPI_FWNODE_OPS' 1669 | .get_reference_args = acpi_fwnode_get_reference_args, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. make[5]: *** [../scripts/Makefile.build:207: drivers/acpi/property.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [../scripts/Makefile.build:465: drivers/acpi] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1997: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../drivers/acpi/property.c:1680:1: error: incompatible function pointer types initializing 'int (*)(const struct fwnode_handle *, const char *, const char *, int, unsigned int, struct fwnode_reference_args *)' with an expression of type 'int (const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *)' [-Wincompatible-function-pointer-types] 1680 | DECLARE_ACPI_FWNODE_OPS(acpi_device_fwnode_ops); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1669:25: note: expanded from macro 'DECLARE_ACPI_FWNODE_OPS' 1669 | .get_reference_args = acpi_fwnode_get_reference_args, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1681:1: error: incompatible function pointer types initializing 'int (*)(const struct fwnode_handle *, const char *, const char *, int, unsigned int, struct fwnode_reference_args *)' with an expression of type 'int (const struct fwnode_handle *, const char *, const char *, unsigned int, unsigned int, struct fwnode_reference_args *)' [-Wincompatible-function-pointer-types] 1681 | DECLARE_ACPI_FWNODE_OPS(acpi_data_fwnode_ops); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/acpi/property.c:1669:25: note: expanded from macro 'DECLARE_ACPI_FWNODE_OPS' 1669 | .get_reference_args = acpi_fwnode_get_reference_args, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. make[5]: *** [../scripts/Makefile.build:207: drivers/acpi/property.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [../scripts/Makefile.build:465: drivers/acpi] Error 2 make[4]: *** Waiting for unfinished jobs.... ../drivers/devfreq/event/exynos-ppmu.c:527:20: warning: cast to smaller integer type 'enum exynos_ppmu_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] 527 | info->ppmu_type = (enum exynos_ppmu_type)device_get_match_data(dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. ../drivers/hv/channel.c:578: warning: Function parameter or struct member 'size' not described in 'request_arr_init' ../drivers/memory/emif.c:68: warning: Function parameter or struct member 'lpmode' not described in 'emif_data' ../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'offset' not described in 'tegra_devfreq_device_config' ../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'irq_mask' not described in 'tegra_devfreq_device_config' ../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'boost_up_coeff' not described in 'tegra_devfreq_device_config' ../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'boost_down_coeff' not described in 'tegra_devfreq_device_config' ../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'boost_up_threshold' not described in 'tegra_devfreq_device_config' ../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'boost_down_threshold' not described in 'tegra_devfreq_device_config' ../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'avg_dependency_threshold' not described in 'tegra_devfreq_device_config' ../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'config' not described in 'tegra_devfreq_device' ../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'regs' not described in 'tegra_devfreq_device' ../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'avg_count' not described in 'tegra_devfreq_device' ../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'boost_freq' not described in 'tegra_devfreq_device' ../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'target_freq' not described in 'tegra_devfreq_device' ../drivers/perf/arm_cspmu/ampere_cspmu.c:35:1: warning: unused function 'get_event' [-Wunused-function] 35 | SOC_PMU_EVENT_ATTR_EXTRACTOR(event, config, 0, 8); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/perf/arm_cspmu/ampere_cspmu.c:29:20: note: expanded from macro 'SOC_PMU_EVENT_ATTR_EXTRACTOR' 29 | static inline u32 get_##_name(const struct perf_event *event) \ | ^~~~~~~~~~~ :31:1: note: expanded from here 31 | get_event | ^~~~~~~~~ 1 warning generated. make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1997: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.cNCGMuD0ZH 2025-04-08 05:30:48.812136420 -0700 +++ /tmp/tmp.WI7JB9AaJS 2025-04-08 05:31:19.924633519 -0700 @@ -17,0 +18,28 @@ +../drivers/devfreq/event/exynos-ppmu.c:527:20: warning: cast to smaller integer type 'enum exynos_ppmu_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] + 527 | info->ppmu_type = (enum exynos_ppmu_type)device_get_match_data(dev); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +1 warning generated. +../drivers/hv/channel.c:578: warning: Function parameter or struct member 'size' not described in 'request_arr_init' +../drivers/memory/emif.c:68: warning: Function parameter or struct member 'lpmode' not described in 'emif_data' +../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'offset' not described in 'tegra_devfreq_device_config' +../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'irq_mask' not described in 'tegra_devfreq_device_config' +../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'boost_up_coeff' not described in 'tegra_devfreq_device_config' +../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'boost_down_coeff' not described in 'tegra_devfreq_device_config' +../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'boost_up_threshold' not described in 'tegra_devfreq_device_config' +../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'boost_down_threshold' not described in 'tegra_devfreq_device_config' +../drivers/devfreq/tegra30-devfreq.c:100: warning: Function parameter or struct member 'avg_dependency_threshold' not described in 'tegra_devfreq_device_config' +../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'config' not described in 'tegra_devfreq_device' +../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'regs' not described in 'tegra_devfreq_device' +../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'avg_count' not described in 'tegra_devfreq_device' +../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'boost_freq' not described in 'tegra_devfreq_device' +../drivers/devfreq/tegra30-devfreq.c:171: warning: Function parameter or struct member 'target_freq' not described in 'tegra_devfreq_device' +../drivers/perf/arm_cspmu/ampere_cspmu.c:35:1: warning: unused function 'get_event' [-Wunused-function] + 35 | SOC_PMU_EVENT_ATTR_EXTRACTOR(event, config, 0, 8); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/perf/arm_cspmu/ampere_cspmu.c:29:20: note: expanded from macro 'SOC_PMU_EVENT_ATTR_EXTRACTOR' + 29 | static inline u32 get_##_name(const struct perf_event *event) \ + | ^~~~~~~~~~~ +:31:1: note: expanded from here + 31 | get_event + | ^~~~~~~~~ +1 warning generated. Per-file breakdown --- /tmp/tmp.CqRNPx2Mpw 2025-04-08 05:31:19.931812876 -0700 +++ /tmp/tmp.1XT5vk8LW9 2025-04-08 05:31:19.933812855 -0700 @@ -1,0 +2,5 @@ + 1 ../drivers/devfreq/event/exynos-ppmu.c + 12 ../drivers/devfreq/tegra30-devfreq.c + 1 ../drivers/hv/channel.c + 1 ../drivers/memory/emif.c + 1 ../drivers/perf/arm_cspmu/ampere_cspmu.c