Hi Mark, I love your patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on rafael-pm/linux-next arm/for-next arm/fixes kvmarm/next soc/for-next xilinx-xlnx/master linus/master v6.2-rc3 next-20230109] [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/Mark-Rutland/Compiler-attributes-GCC-function-alignment-workarounds/20230109-220351 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core patch link: https://lore.kernel.org/r/20230109135828.879136-3-mark.rutland%40arm.com patch subject: [PATCH 2/8] ACPI: Don't build ACPICA with '-Os' config: ia64-allmodconfig compiler: ia64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/fec0dbb33afc20e3e5f8acb1eceb11e30f0bff99 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Mark-Rutland/Compiler-attributes-GCC-function-alignment-workarounds/20230109-220351 git checkout fec0dbb33afc20e3e5f8acb1eceb11e30f0bff99 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/acpi/acpica/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/compiler_types.h:79, from : include/linux/compiler_attributes.h:41:5: warning: "CONFIG_FUNCTION_ALIGNMENT" is not defined, evaluates to 0 [-Wundef] 41 | #if CONFIG_FUNCTION_ALIGNMENT > 0 | ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_attributes.h:96:36: warning: "CONFIG_FUNCTION_ALIGNMENT" is not defined, evaluates to 0 [-Wundef] 96 | #if !defined(CONFIG_CC_IS_GCC) || (CONFIG_FUNCTION_ALIGNMENT == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/acpi/acpi.h:24, from drivers/acpi/acpica/tbfind.c:10: drivers/acpi/acpica/tbfind.c: In function 'acpi_tb_find_table': >> include/acpi/actypes.h:525:42: warning: 'strncpy' specified bound 4 equals destination size [-Wstringop-truncation] 525 | #define ACPI_COPY_NAMESEG(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/acpi/acpica/tbfind.c:59:9: note: in expansion of macro 'ACPI_COPY_NAMESEG' 59 | ACPI_COPY_NAMESEG(header.signature, signature); | ^~~~~~~~~~~~~~~~~ -- In file included from include/linux/compiler_types.h:79, from : include/linux/compiler_attributes.h:41:5: warning: "CONFIG_FUNCTION_ALIGNMENT" is not defined, evaluates to 0 [-Wundef] 41 | #if CONFIG_FUNCTION_ALIGNMENT > 0 | ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_attributes.h:96:36: warning: "CONFIG_FUNCTION_ALIGNMENT" is not defined, evaluates to 0 [-Wundef] 96 | #if !defined(CONFIG_CC_IS_GCC) || (CONFIG_FUNCTION_ALIGNMENT == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/acpi/acpi.h:24, from drivers/acpi/acpica/utstring.c:8: drivers/acpi/acpica/utstring.c: In function 'acpi_ut_repair_name': >> include/acpi/actypes.h:525:42: warning: 'strncpy' specified bound 4 equals destination size [-Wstringop-truncation] 525 | #define ACPI_COPY_NAMESEG(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/acpi/acpica/utstring.c:148:9: note: in expansion of macro 'ACPI_COPY_NAMESEG' 148 | ACPI_COPY_NAMESEG(&original_name, name); | ^~~~~~~~~~~~~~~~~ vim +/strncpy +525 include/acpi/actypes.h ff60027174cf94 Bob Moore 2012-10-31 519 50df4d8b0f6e19 Bob Moore 2008-12-31 520 #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED 5599fb69355d7a Bob Moore 2019-04-08 521 #define ACPI_COMPARE_NAMESEG(a,b) (*ACPI_CAST_PTR (u32, (a)) == *ACPI_CAST_PTR (u32, (b))) a3ce7a8e0dd9ba Bob Moore 2019-04-08 522 #define ACPI_COPY_NAMESEG(dest,src) (*ACPI_CAST_PTR (u32, (dest)) = *ACPI_CAST_PTR (u32, (src))) 50df4d8b0f6e19 Bob Moore 2008-12-31 523 #else 3278675567dfb9 Bob Moore 2019-04-08 524 #define ACPI_COMPARE_NAMESEG(a,b) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, (b)), ACPI_NAMESEG_SIZE)) 3278675567dfb9 Bob Moore 2019-04-08 @525 #define ACPI_COPY_NAMESEG(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE)) 50df4d8b0f6e19 Bob Moore 2008-12-31 526 #endif 50df4d8b0f6e19 Bob Moore 2008-12-31 527 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests