From: kernel test robot <lkp@intel.com>
To: Alexander Lobakin <aleksander.lobakin@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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))
Date: Sun, 10 Mar 2024 05:26:15 +0800 [thread overview]
Message-ID: <202403100511.4xsZI0aX-lkp@intel.com> (raw)
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
reply other threads:[~2024-03-09 21:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202403100511.4xsZI0aX-lkp@intel.com \
--to=lkp@intel.com \
--cc=aleksander.lobakin@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).