* [alobakin:idpf-libie-new 49/62] include/net/libeth/xdp.h:36:15: error: static assertion failed due to requirement '!(sizeof(struct xdp_buff_xsk) % __alignof(struct libeth_xdp_buff))': !(sizeof(struct xdp_buff_xsk) % __alignof__(struct libeth_xdp_buff))
@ 2024-03-09 21:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-09 21:26 UTC (permalink / raw)
To: Alexander Lobakin; +Cc: llvm, oe-kbuild-all
tree: https://github.com/alobakin/linux idpf-libie-new
head: f896c293302a9ec5710485e2bff89b49bb4a77d2
commit: 3161fd810043b6d1e6e65c6b2702230c99f37f6f [49/62] libie: add a couple of XDP helpers
config: i386-randconfig-003-20240309 (https://download.01.org/0day-ci/archive/20240310/202403100511.4xsZI0aX-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240310/202403100511.4xsZI0aX-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403100511.4xsZI0aX-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/intel/libeth/tx.c:4:
>> include/net/libeth/xdp.h:36:15: error: static assertion failed due to requirement '!(sizeof(struct xdp_buff_xsk) % __alignof(struct libeth_xdp_buff))': !(sizeof(struct xdp_buff_xsk) % __alignof__(struct libeth_xdp_buff))
36 | static_assert(!(sizeof(struct xdp_buff_xsk) %
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __alignof__(struct libeth_xdp_buff)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~
include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
1 error generated.
vim +36 include/net/libeth/xdp.h
22
23 struct libeth_xdp_buff {
24 union {
25 struct xdp_buff base;
26 void *data;
27 };
28
29 const void *desc;
30 u8 priv[];
31 } __aligned_largest;
32 static_assert(offsetof(struct libeth_xdp_buff, data) ==
33 offsetof(struct xdp_buff_xsk, xdp.data));
34 static_assert(offsetof(struct libeth_xdp_buff, desc) ==
35 offsetof(struct xdp_buff_xsk, cb));
> 36 static_assert(!(sizeof(struct xdp_buff_xsk) %
37 __alignof__(struct libeth_xdp_buff)));
38
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-09 21:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-09 21:26 [alobakin:idpf-libie-new 49/62] include/net/libeth/xdp.h:36:15: error: static assertion failed due to requirement '!(sizeof(struct xdp_buff_xsk) % __alignof(struct libeth_xdp_buff))': !(sizeof(struct xdp_buff_xsk) % __alignof__(struct libeth_xdp_buff)) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).