linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vicentiu Galanopulo <vicentiu.galanopulo@remote-tech.co.uk>,
	pavel@ucw.cz, lee@kernel.org, linux-kernel@vger.kernel.org,
	linux-leds@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v1 2/2] leds: Add LED1202 I2C driver
Date: Tue, 18 Jun 2024 20:24:40 +0800	[thread overview]
Message-ID: <202406181953.mXAkCdSy-lkp@intel.com> (raw)
In-Reply-To: <ZnCoBAG2TNiIz1xE@admins-Air>

Hi Vicentiu,

kernel test robot noticed the following build errors:

[auto build test ERROR on lee-leds/for-leds-next]
[also build test ERROR on robh/for-next linus/master v6.10-rc4 next-20240617]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Vicentiu-Galanopulo/leds-Add-LED1202-I2C-driver/20240618-052035
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git for-leds-next
patch link:    https://lore.kernel.org/r/ZnCoBAG2TNiIz1xE%40admins-Air
patch subject: [PATCH v1 2/2] leds: Add LED1202 I2C driver
config: openrisc-allyesconfig (https://download.01.org/0day-ci/archive/20240618/202406181953.mXAkCdSy-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240618/202406181953.mXAkCdSy-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/202406181953.mXAkCdSy-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/container_of.h:5,
                    from include/linux/list.h:5,
                    from include/linux/module.h:12,
                    from drivers/leds/leds-led1202.c:7:
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/kernel.h:396:10: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     396 |          BUILD_BUG_ON_ZERO((perms) > 0777) +                                    \
         |          ^~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:221:26: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
     221 |                  .mode = VERIFY_OCTAL_PERMISSIONS(_mode) },             \
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:158:52: note: in expansion of macro '__ATTR'
     158 |         struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
         |                                                    ^~~~~~
   drivers/leds/leds-led1202.c:373:8: note: in expansion of macro 'DEVICE_ATTR'
     373 | static DEVICE_ATTR(led_device_regsdump, 0x00444, ll1202_show_all_registers,
         |        ^~~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/kernel.h:399:10: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     399 |          BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) +              \
         |          ^~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:221:26: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
     221 |                  .mode = VERIFY_OCTAL_PERMISSIONS(_mode) },             \
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:158:52: note: in expansion of macro '__ATTR'
     158 |         struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
         |                                                    ^~~~~~
   drivers/leds/leds-led1202.c:373:8: note: in expansion of macro 'DEVICE_ATTR'
     373 | static DEVICE_ATTR(led_device_regsdump, 0x00444, ll1202_show_all_registers,
         |        ^~~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/kernel.h:396:10: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     396 |          BUILD_BUG_ON_ZERO((perms) > 0777) +                                    \
         |          ^~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:221:26: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
     221 |                  .mode = VERIFY_OCTAL_PERMISSIONS(_mode) },             \
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:158:52: note: in expansion of macro '__ATTR'
     158 |         struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
         |                                                    ^~~~~~
   drivers/leds/leds-led1202.c:375:8: note: in expansion of macro 'DEVICE_ATTR'
     375 | static DEVICE_ATTR(patt_sequence_repetition, 0x00444 | 0x00200,
         |        ^~~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/kernel.h:399:10: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     399 |          BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) +              \
         |          ^~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:221:26: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
     221 |                  .mode = VERIFY_OCTAL_PERMISSIONS(_mode) },             \
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:158:52: note: in expansion of macro '__ATTR'
     158 |         struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
         |                                                    ^~~~~~
   drivers/leds/leds-led1202.c:375:8: note: in expansion of macro 'DEVICE_ATTR'
     375 | static DEVICE_ATTR(patt_sequence_repetition, 0x00444 | 0x00200,
         |        ^~~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/kernel.h:396:10: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     396 |          BUILD_BUG_ON_ZERO((perms) > 0777) +                                    \
         |          ^~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:221:26: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
     221 |                  .mode = VERIFY_OCTAL_PERMISSIONS(_mode) },             \
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:158:52: note: in expansion of macro '__ATTR'
     158 |         struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
         |                                                    ^~~~~~
   drivers/leds/leds-led1202.c:378:8: note: in expansion of macro 'DEVICE_ATTR'
     378 | static DEVICE_ATTR(current_mA, 0x00444, ll1202_show_channel_mA_current, NULL);
         |        ^~~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/kernel.h:399:10: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     399 |          BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) +              \
         |          ^~~~~~~~~~~~~~~~~
   include/linux/sysfs.h:221:26: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
     221 |                  .mode = VERIFY_OCTAL_PERMISSIONS(_mode) },             \
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:158:52: note: in expansion of macro '__ATTR'
     158 |         struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
         |                                                    ^~~~~~
   drivers/leds/leds-led1202.c:378:8: note: in expansion of macro 'DEVICE_ATTR'
     378 | static DEVICE_ATTR(current_mA, 0x00444, ll1202_show_channel_mA_current, NULL);
         |        ^~~~~~~~~~~


vim +16 include/linux/build_bug.h

bc6245e5efd70c Ian Abbott       2017-07-10   6  
bc6245e5efd70c Ian Abbott       2017-07-10   7  #ifdef __CHECKER__
bc6245e5efd70c Ian Abbott       2017-07-10   8  #define BUILD_BUG_ON_ZERO(e) (0)
bc6245e5efd70c Ian Abbott       2017-07-10   9  #else /* __CHECKER__ */
bc6245e5efd70c Ian Abbott       2017-07-10  10  /*
bc6245e5efd70c Ian Abbott       2017-07-10  11   * Force a compilation error if condition is true, but also produce a
8788994376d84d Rikard Falkeborn 2019-12-04  12   * result (of value 0 and type int), so the expression can be used
bc6245e5efd70c Ian Abbott       2017-07-10  13   * e.g. in a structure initializer (or where-ever else comma expressions
bc6245e5efd70c Ian Abbott       2017-07-10  14   * aren't permitted).
bc6245e5efd70c Ian Abbott       2017-07-10  15   */
8788994376d84d Rikard Falkeborn 2019-12-04 @16  #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
527edbc18a70e7 Masahiro Yamada  2019-01-03  17  #endif /* __CHECKER__ */
527edbc18a70e7 Masahiro Yamada  2019-01-03  18  

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

      reply	other threads:[~2024-06-18 12:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17 21:17 [PATCH v1 2/2] leds: Add LED1202 I2C driver Vicentiu Galanopulo
2024-06-18 12:24 ` kernel test robot [this message]

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=202406181953.mXAkCdSy-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pavel@ucw.cz \
    --cc=vicentiu.galanopulo@remote-tech.co.uk \
    /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).