mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: <oe-kbuild-all@lists.linux.dev>,
	"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: [gustavoars:testing/wfamnae-next20251201 7/21] usr/include/linux/kvm.h:1581:57: error: invalid application of 'sizeof' to an incomplete type 'struct kvm_stats_desc_hdr'
Date: Wed, 3 Dec 2025 20:16:46 +0800	[thread overview]
Message-ID: <aTAqLmBwX8XmXhCj@rli9-mobl> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20251201
head:   2c162acfacfa32b76ad4176574a222a0e47f9df4
commit: 2eb7c0e83b5725b1318bcc4efe48fc6f34087c13 [7/21] KVM: Avoid a few dozen -Wflex-array-member-not-at-end warnings
config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251202/202512021722.wkmvuDSK-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 5dd2b06d60d3eb9b07c7513358ad8b04386f79bc)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251202/202512021722.wkmvuDSK-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/r/202512021722.wkmvuDSK-lkp@intel.com/

Note: the gustavoars/testing/wfamnae-next20251201 HEAD 2c162acfacfa32b76ad4176574a222a0e47f9df4 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   In file included from demand_paging_test.c:17:
   In file included from include/kvm_util.h:14:
>> usr/include/linux/kvm.h:1572:2: error: type name requires a specifier or qualifier
    1572 |         __struct_group(kvm_stats_desc_hdr, __hdr, /* no attrs */,
         |         ^
>> usr/include/linux/kvm.h:1572:58: error: expected identifier
    1572 |         __struct_group(kvm_stats_desc_hdr, __hdr, /* no attrs */,
         |                                                                 ^
>> usr/include/linux/kvm.h:1573:14: error: expected ')'
    1573 |                 __u32 flags;
         |                            ^
   usr/include/linux/kvm.h:1572:16: note: to match this '('
    1572 |         __struct_group(kvm_stats_desc_hdr, __hdr, /* no attrs */,
         |                       ^
   usr/include/linux/kvm.h:1578:2: error: type name requires a specifier or qualifier
    1578 |         );
         |         ^
>> usr/include/linux/kvm.h:1578:2: error: expected member name or ';' after declaration specifiers
>> usr/include/linux/kvm.h:1577:21: error: expected ';' at end of declaration list
    1577 |                 __u32 bucket_size;
         |                                   ^
>> usr/include/linux/kvm.h:1581:57: error: invalid application of 'sizeof' to an incomplete type 'struct kvm_stats_desc_hdr'
    1581 | _Static_assert(offsetof(struct kvm_stats_desc, name) == sizeof(struct kvm_stats_desc_hdr),
         |                                                         ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   usr/include/linux/kvm.h:1581:71: note: forward declaration of 'struct kvm_stats_desc_hdr'
    1581 | _Static_assert(offsetof(struct kvm_stats_desc, name) == sizeof(struct kvm_stats_desc_hdr),
         |                                                                       ^
   7 errors generated.
--
   In file included from kvm_binary_stats_test.c:17:
   In file included from include/kvm_util.h:14:
>> usr/include/linux/kvm.h:1572:2: error: type name requires a specifier or qualifier
    1572 |         __struct_group(kvm_stats_desc_hdr, __hdr, /* no attrs */,
         |         ^
>> usr/include/linux/kvm.h:1572:58: error: expected identifier
    1572 |         __struct_group(kvm_stats_desc_hdr, __hdr, /* no attrs */,
         |                                                                 ^
>> usr/include/linux/kvm.h:1573:14: error: expected ')'
    1573 |                 __u32 flags;
         |                            ^
   usr/include/linux/kvm.h:1572:16: note: to match this '('
    1572 |         __struct_group(kvm_stats_desc_hdr, __hdr, /* no attrs */,
         |                       ^
   usr/include/linux/kvm.h:1578:2: error: type name requires a specifier or qualifier
    1578 |         );
         |         ^
>> usr/include/linux/kvm.h:1578:2: error: expected member name or ';' after declaration specifiers
>> usr/include/linux/kvm.h:1577:21: error: expected ';' at end of declaration list
    1577 |                 __u32 bucket_size;
         |                                   ^
>> usr/include/linux/kvm.h:1581:57: error: invalid application of 'sizeof' to an incomplete type 'struct kvm_stats_desc_hdr'
    1581 | _Static_assert(offsetof(struct kvm_stats_desc, name) == sizeof(struct kvm_stats_desc_hdr),
         |                                                         ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   usr/include/linux/kvm.h:1581:71: note: forward declaration of 'struct kvm_stats_desc_hdr'
    1581 | _Static_assert(offsetof(struct kvm_stats_desc, name) == sizeof(struct kvm_stats_desc_hdr),
         |                                                                       ^
   kvm_binary_stats_test.c:77:17: error: no member named 'flags' in 'struct kvm_stats_desc'
      77 |                 type = pdesc->flags & KVM_STATS_TYPE_MASK;
         |                        ~~~~~  ^
   kvm_binary_stats_test.c:78:17: error: no member named 'flags' in 'struct kvm_stats_desc'
      78 |                 unit = pdesc->flags & KVM_STATS_UNIT_MASK;
         |                        ~~~~~  ^
   kvm_binary_stats_test.c:79:17: error: no member named 'flags' in 'struct kvm_stats_desc'
      79 |                 base = pdesc->flags & KVM_STATS_BASE_MASK;
         |                        ~~~~~  ^
   kvm_binary_stats_test.c:102:18: error: no member named 'flags' in 'struct kvm_stats_desc'
     102 |                 switch (pdesc->flags & KVM_STATS_UNIT_MASK) {
         |                         ~~~~~  ^
   kvm_binary_stats_test.c:126:18: error: no member named 'flags' in 'struct kvm_stats_desc'
     126 |                 switch (pdesc->flags & KVM_STATS_TYPE_MASK) {
         |                         ~~~~~  ^
   12 errors generated.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


                 reply	other threads:[~2025-12-03 12:16 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=aTAqLmBwX8XmXhCj@rli9-mobl \
    --to=lkp@intel.com \
    --cc=gustavo@embeddedor.com \
    --cc=gustavoars@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®