Hi, kernel test robot noticed the following build errors: [auto build test ERROR on rafael-pm/linux-next] [also build test ERROR on rafael-pm/bleeding-edge linus/master v6.14-rc4 next-20250228] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/mpagano-gentoo-org/ACPICA-fix-build-with-GCC-15-due-to-Werror-unterminated-string-initialization/20250301-051004 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next patch link: https://lore.kernel.org/r/20250228210834.811164-1-mpagano%40gentoo.org patch subject: [PATCH] ACPICA: fix build with GCC 15 due to -Werror=unterminated-string-initialization config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250302/202503021047.izEzFVqg-lkp@xxxxxxxxx/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250302/202503021047.izEzFVqg-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202503021047.izEzFVqg-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/acpi/nfit/core.c:3489:2: error: call to '__compiletime_assert_953' declared with 'error' attribute: BUILD_BUG_ON failed: sizeof(struct acpi_table_nfit) != 40 3489 | BUILD_BUG_ON(sizeof(struct acpi_table_nfit) != 40); | ^ include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^ include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^ include/linux/compiler_types.h:542:2: note: expanded from macro 'compiletime_assert' 542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:530:2: note: expanded from macro '_compiletime_assert' 530 | __compiletime_assert(condition, msg, prefix, suffix) | ^ include/linux/compiler_types.h:523:4: note: expanded from macro '__compiletime_assert' 523 | prefix ## suffix(); \ | ^ <scratch space>:114:1: note: expanded from here 114 | __compiletime_assert_953 | ^ 1 error generated. vim +3489 drivers/acpi/nfit/core.c b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 3484 b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 3485 static __init int nfit_init(void) b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 3486 { 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3487 int ret; 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3488 b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 @3489 BUILD_BUG_ON(sizeof(struct acpi_table_nfit) != 40); cf16b05c607bd7 drivers/acpi/nfit/core.c Bob Moore 2021-04-06 3490 BUILD_BUG_ON(sizeof(struct acpi_nfit_system_address) != 64); b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 3491 BUILD_BUG_ON(sizeof(struct acpi_nfit_memory_map) != 48); 2a5ab99847bd41 drivers/acpi/nfit/core.c Kees Cook 2023-04-05 3492 BUILD_BUG_ON(sizeof(struct acpi_nfit_interleave) != 16); 74522fea27f8a0 drivers/acpi/nfit/core.c Kees Cook 2023-04-05 3493 BUILD_BUG_ON(sizeof(struct acpi_nfit_smbios) != 8); b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 3494 BUILD_BUG_ON(sizeof(struct acpi_nfit_control_region) != 80); b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 3495 BUILD_BUG_ON(sizeof(struct acpi_nfit_data_region) != 40); 06e8ccdab15f46 drivers/acpi/nfit/core.c Dave Jiang 2018-01-31 3496 BUILD_BUG_ON(sizeof(struct acpi_nfit_capabilities) != 16); b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 3497 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3498 guid_parse(UUID_VOLATILE_MEMORY, &nfit_uuid[NFIT_SPA_VOLATILE]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3499 guid_parse(UUID_PERSISTENT_MEMORY, &nfit_uuid[NFIT_SPA_PM]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3500 guid_parse(UUID_CONTROL_REGION, &nfit_uuid[NFIT_SPA_DCR]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3501 guid_parse(UUID_DATA_REGION, &nfit_uuid[NFIT_SPA_BDW]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3502 guid_parse(UUID_VOLATILE_VIRTUAL_DISK, &nfit_uuid[NFIT_SPA_VDISK]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3503 guid_parse(UUID_VOLATILE_VIRTUAL_CD, &nfit_uuid[NFIT_SPA_VCD]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3504 guid_parse(UUID_PERSISTENT_VIRTUAL_DISK, &nfit_uuid[NFIT_SPA_PDISK]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3505 guid_parse(UUID_PERSISTENT_VIRTUAL_CD, &nfit_uuid[NFIT_SPA_PCD]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3506 guid_parse(UUID_NFIT_BUS, &nfit_uuid[NFIT_DEV_BUS]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3507 guid_parse(UUID_NFIT_DIMM, &nfit_uuid[NFIT_DEV_DIMM]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3508 guid_parse(UUID_NFIT_DIMM_N_HPE1, &nfit_uuid[NFIT_DEV_DIMM_N_HPE1]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3509 guid_parse(UUID_NFIT_DIMM_N_HPE2, &nfit_uuid[NFIT_DEV_DIMM_N_HPE2]); 41c8bdb3ab10c1 drivers/acpi/nfit/core.c Andy Shevchenko 2017-06-05 3510 guid_parse(UUID_NFIT_DIMM_N_MSFT, &nfit_uuid[NFIT_DEV_DIMM_N_MSFT]); 1194c4133195df drivers/acpi/nfit/core.c Dexuan Cui 2019-01-29 3511 guid_parse(UUID_NFIT_DIMM_N_HYPERV, &nfit_uuid[NFIT_DEV_DIMM_N_HYPERV]); 6450ddbd5d8e83 drivers/acpi/nfit/core.c Dan Williams 2020-07-20 3512 guid_parse(UUID_INTEL_BUS, &nfit_uuid[NFIT_BUS_INTEL]); b94d5230d06eb9 drivers/acpi/nfit.c Dan Williams 2015-05-19 3513 7ae0fa439faff0 drivers/acpi/nfit.c Dan Williams 2016-02-19 3514 nfit_wq = create_singlethread_workqueue("nfit"); 7ae0fa439faff0 drivers/acpi/nfit.c Dan Williams 2016-02-19 3515 if (!nfit_wq) 7ae0fa439faff0 drivers/acpi/nfit.c Dan Williams 2016-02-19 3516 return -ENOMEM; 7ae0fa439faff0 drivers/acpi/nfit.c Dan Williams 2016-02-19 3517 6839a6d96f4ea0 drivers/acpi/nfit/core.c Vishal Verma 2016-07-23 3518 nfit_mce_register(); 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3519 ret = acpi_bus_register_driver(&acpi_nfit_driver); 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3520 if (ret) { 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3521 nfit_mce_unregister(); 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3522 destroy_workqueue(nfit_wq); 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3523 } 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3524 7e700d2c59e585 drivers/acpi/nfit/core.c Prarit Bhargava 2017-05-31 3525 return ret; 6839a6d96f4ea0 drivers/acpi/nfit/core.c Vishal Verma 2016-07-23 3526 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki