All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: gpiolib: annotate struct acpi_gpio_mapping with __counted_by_ptr
Date: Mon, 5 Oct 2026 07:32:23 +0200	[thread overview]
Message-ID: <202610050705.Z7tuheXs-lkp@intel.com> (raw)
In-Reply-To: <202610050705.Z7tuheXs-lkp@intel.com>

Hi Bill,

kernel test robot noticed the following build errors:



url:    https://github.com/intel-lab-lkp/linux/commits/Bill-Wendling/gpiolib-annotate-struct-acpi_gpio_mapping-with-__counted_by_ptr/20261002-124225
base:   
patch link:    https://lore.kernel.org/r/202610050705.Z7tuheXs-lkp%40intel.com
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20261005/202610050705.Z7tuheXs-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261005/202610050705.Z7tuheXs-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/202610050705.Z7tuheXs-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/firmware/efi/libstub/bli.c:5:
   In file included from include/linux/efi.h:20:
   In file included from include/linux/rtc.h:18:
   In file included from include/linux/nvmem-provider.h:16:
>> include/linux/gpio/consumer.h:670:55: error: use of undeclared identifier 'size'; did you mean 'ksize'?
     670 |         const struct acpi_gpio_params *data __counted_by_ptr(size);
         |                                                              ^~~~
         |                                                              ksize
   include/linux/compiler_types.h:392:64: note: expanded from macro '__counted_by_ptr'
     392 | #define __counted_by_ptr(member)        __attribute__((__counted_by__(member)))
         |                                                                       ^~~~~~
   include/linux/slab.h:602:8: note: 'ksize' declared here
     602 | size_t ksize(const void *objp);
         |        ^
   In file included from drivers/firmware/efi/libstub/bli.c:5:
   In file included from include/linux/efi.h:20:
   In file included from include/linux/rtc.h:18:
   In file included from include/linux/nvmem-provider.h:16:
>> include/linux/gpio/consumer.h:670:55: error: 'counted_by' requires a non-boolean integer type argument
     670 |         const struct acpi_gpio_params *data __counted_by_ptr(size);
         |                                                              ^~~~
   2 errors generated.


vim +670 include/linux/gpio/consumer.h

   667	
   668	struct acpi_gpio_mapping {
   669		const char *name;
 > 670		const struct acpi_gpio_params *data __counted_by_ptr(size);
   671		unsigned int size;
   672	

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

       reply	other threads:[~2026-10-05  5:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05  5:32 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-09-28 19:33 gpiolib: annotate struct acpi_gpio_mapping with __counted_by_ptr kernel test robot

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=202610050705.Z7tuheXs-lkp@intel.com \
    --to=lkp@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.