Hi Steffen, kernel test robot noticed the following build errors:
[auto build test ERROR on c88fd6989aea9237a60a4859139a265bfb7ddc0b] url: https://github.com/intel-lab-lkp/linux/commits/Steffen-Trumtrar/net-ethtool-tsconfig-allow-hardware-timestamping-without-a-PHC/20261112-121933 base: c88fd6989aea9237a60a4859139a265bfb7ddc0b patch link: https://lore.kernel.org/r/20261112-v6-7-topic-virtio-net-ptp-v5-6-7ab67b572f4f%40pengutronix.de patch subject: [PATCH net-next v5 6/9] virtio-net: assert header sizes config: arm-neponset_defconfig (https://download.01.org/0day-ci/archive/20261117/[email protected]/config) compiler: arm-linux-gnueabi-gcc (GCC) 16.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261117/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): In file included from include/linux/bits.h:30, from include/linux/bitops.h:6, from include/linux/bitmap.h:8, from include/linux/ethtool.h:16, from net/packet/af_packet.c:51: >> include/linux/build_bug.h:80:41: error: static assertion failed: >> "offsetof(struct virtio_net_common_hdr, tstamp) == 32" 80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~~~~~~~~~~~ include/linux/build_bug.h:79:34: note: in expansion of macro '__static_assert' 79 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) | ^~~~~~~~~~~~~~~ include/linux/virtio_net.h:36:1: note: in expansion of macro 'static_assert' 36 | static_assert(offsetof(struct virtio_net_common_hdr, tstamp) == 32); | ^~~~~~~~~~~~~ >> include/linux/build_bug.h:80:41: error: static assertion failed: >> "__alignof__(struct virtio_net_common_hdr) == 2" 80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~~~~~~~~~~~ include/linux/build_bug.h:79:34: note: in expansion of macro '__static_assert' 79 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) | ^~~~~~~~~~~~~~~ include/linux/virtio_net.h:39:1: note: in expansion of macro 'static_assert' 39 | static_assert(__alignof__(struct virtio_net_common_hdr) == 2); | ^~~~~~~~~~~~~ vim +80 include/linux/build_bug.h bc6245e5efd70c4 Ian Abbott 2017-07-10 61 6bab69c65013bed Rasmus Villemoes 2019-03-07 62 /** 6bab69c65013bed Rasmus Villemoes 2019-03-07 63 * static_assert - check integer constant expression at build time 6ffd853b0b10e1e Randy Dunlap 2026-03-01 64 * @expr: expression to be checked 6bab69c65013bed Rasmus Villemoes 2019-03-07 65 * 6bab69c65013bed Rasmus Villemoes 2019-03-07 66 * static_assert() is a wrapper for the C11 _Static_assert, with a 6bab69c65013bed Rasmus Villemoes 2019-03-07 67 * little macro magic to make the message optional (defaulting to the 6bab69c65013bed Rasmus Villemoes 2019-03-07 68 * stringification of the tested expression). 6bab69c65013bed Rasmus Villemoes 2019-03-07 69 * 6bab69c65013bed Rasmus Villemoes 2019-03-07 70 * Contrary to BUILD_BUG_ON(), static_assert() can be used at global 6bab69c65013bed Rasmus Villemoes 2019-03-07 71 * scope, but requires the expression to be an integer constant 6bab69c65013bed Rasmus Villemoes 2019-03-07 72 * expression (i.e., it is not enough that __builtin_constant_p() is 6bab69c65013bed Rasmus Villemoes 2019-03-07 73 * true for expr). 6bab69c65013bed Rasmus Villemoes 2019-03-07 74 * 6bab69c65013bed Rasmus Villemoes 2019-03-07 75 * Also note that BUILD_BUG_ON() fails the build if the condition is 6bab69c65013bed Rasmus Villemoes 2019-03-07 76 * true, while static_assert() fails the build if the expression is 6bab69c65013bed Rasmus Villemoes 2019-03-07 77 * false. 6bab69c65013bed Rasmus Villemoes 2019-03-07 78 */ 6bab69c65013bed Rasmus Villemoes 2019-03-07 79 #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) 6bab69c65013bed Rasmus Villemoes 2019-03-07 @80 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) 6bab69c65013bed Rasmus Villemoes 2019-03-07 81 07a368b3f55a79d Maxim Levitsky 2022-10-25 82 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
