[{"id":3246455,"web_url":"http://patchwork.ozlabs.org/comment/3246455/","msgid":"<202401131928.oie6xLjA-lkp@intel.com>","list_archive_url":null,"date":"2024-01-13T11:43:20","subject":"Re: [PATCH v4 2/4] pinctrl: renesas: rzg2l: Include pinmap in\n RZG2L_GPIO_PORT_PACK() macro","submitter":{"id":67315,"url":"http://patchwork.ozlabs.org/api/people/67315/","name":"kernel test robot","email":"lkp@intel.com"},"content":"Hi Prabhakar,\n\nkernel test robot noticed the following build warnings:\n\n[auto build test WARNING on geert-renesas-drivers/renesas-pinctrl]\n[also build test WARNING on geert-renesas-devel/next linus/master v6.7]\n[cannot apply to linusw-pinctrl/devel linusw-pinctrl/for-next next-20240112]\n[If your patch is applied to the wrong git tree, kindly drop us a note.\nAnd when submitting patch, we suggest to use '--base' as documented in\nhttps://git-scm.com/docs/git-format-patch#_base_tree_information]\n\nurl:    https://github.com/intel-lab-lkp/linux/commits/Prabhakar/pinctrl-renesas-rzg2l-Improve-code-for-readability/20240112-222833\nbase:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-pinctrl\npatch link:    https://lore.kernel.org/r/20240112142621.13525-3-prabhakar.mahadev-lad.rj%40bp.renesas.com\npatch subject: [PATCH v4 2/4] pinctrl: renesas: rzg2l: Include pinmap in RZG2L_GPIO_PORT_PACK() macro\nconfig: powerpc-randconfig-r081-20240113 (https://download.01.org/0day-ci/archive/20240113/202401131928.oie6xLjA-lkp@intel.com/config)\ncompiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)\nreproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240113/202401131928.oie6xLjA-lkp@intel.com/reproduce)\n\nIf you fix the issue in a separate patch/commit (i.e. not just a new version of\nthe same patch/commit), kindly add following tags\n| Reported-by: kernel test robot <lkp@intel.com>\n| Closes: https://lore.kernel.org/oe-kbuild-all/202401131928.oie6xLjA-lkp@intel.com/\n\nAll warnings (new ones prefixed by >>):\n\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:435:22: note: expanded from macro 'compiletime_assert'\n           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)\n           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^~~~~~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   include/linux/bitfield.h:155:30: note: expanded from macro 'FIELD_GET'\n                   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \\\n                                              ^~~~~\n>> drivers/pinctrl/renesas/pinctrl-rzg2l.c:571:24: warning: shift count is negative [-Wshift-count-negative]\n           u8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   include/linux/bitfield.h:155:50: note: expanded from macro 'FIELD_GET'\n                   (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \\\n                                                         ~~~~~~~~~^~~~~~\n   include/linux/bitfield.h:45:38: note: expanded from macro '__bf_shf'\n   #define __bf_shf(x) (__builtin_ffsll(x) - 1)\n                                        ^\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:1619:32: warning: shift count is negative [-Wshift-count-negative]\n               bit >= hweight8(FIELD_GET(PIN_CFG_PIN_MAP_MASK, data->port_pin_configs[port])))\n                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n                                ^\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^\n   include/asm-generic/bitops/const_hweight.h:26:44: note: expanded from macro 'hweight8'\n   #define hweight8(w)  (__builtin_constant_p(w) ? __const_hweight8(w)  : __arch_hweight8(w))\n                                              ^\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:1619:32: warning: shift count is negative [-Wshift-count-negative]\n               bit >= hweight8(FIELD_GET(PIN_CFG_PIN_MAP_MASK, data->port_pin_configs[port])))\n                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n                                ^\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^\n   include/asm-generic/bitops/const_hweight.h:26:44: note: expanded from macro 'hweight8'\n   #define hweight8(w)  (__builtin_constant_p(w) ? __const_hweight8(w)  : __arch_hweight8(w))\n                                              ^\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:1619:32: warning: shift count is negative [-Wshift-count-negative]\n               bit >= hweight8(FIELD_GET(PIN_CFG_PIN_MAP_MASK, data->port_pin_configs[port])))\n                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n                                ^\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n                   if (!(condition))                                       \\\n                         ^\n   include/asm-generic/bitops/const_hweight.h:26:44: note: expanded from macro 'hweight8'\n   #define hweight8(w)  (__builtin_constant_p(w) ? __const_hweight8(w)  : __arch_hweight8(w))\n                                              ^\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:1619:32: warning: shift count is negative [-Wshift-count-negative]\n               bit >= hweight8(FIELD_GET(PIN_CFG_PIN_MAP_MASK, data->port_pin_configs[port])))\n                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n   drivers/pinctrl/renesas/pinctrl-rzg2l.c:83:31: note: expanded from macro 'PIN_CFG_PIN_MAP_MASK'\n   #define PIN_CFG_PIN_MAP_MASK            GENMASK(35, 28)\n                                           ^\n   include/linux/bits.h:37:31: note: expanded from macro 'GENMASK'\n           (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))\n                                        ^\n   include/linux/bits.h:35:11: note: expanded from macro '__GENMASK'\n            (~UL(0) >> (BITS_PER_LONG - 1 - (h))))\n                    ^\n   note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)\n   include/linux/compiler_types.h:423:23: note: expanded from macro '_compiletime_assert'\n           __compiletime_assert(condition, msg, prefix, suffix)\n                                ^\n   include/linux/compiler_types.h:415:9: note: expanded from macro '__compiletime_assert'\n\n\nvim +571 drivers/pinctrl/renesas/pinctrl-rzg2l.c\n\n   567\t\n   568\tstatic int rzg2l_validate_gpio_pin(struct rzg2l_pinctrl *pctrl,\n   569\t\t\t\t\t   u64 cfg, u32 port, u8 bit)\n   570\t{\n > 571\t\tu8 pinmap = FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg);\n   572\t\tu32 off = RZG2L_PIN_CFG_TO_PORT_OFFSET(cfg);\n   573\t\tu64 data;\n   574\t\n   575\t\tif (!(pinmap & BIT(bit)) || port >= pctrl->data->n_port_pins)\n   576\t\t\treturn -EINVAL;\n   577\t\n   578\t\tdata = pctrl->data->port_pin_configs[port];\n   579\t\tif (off != RZG2L_PIN_CFG_TO_PORT_OFFSET(data))\n   580\t\t\treturn -EINVAL;\n   581\t\n   582\t\treturn 0;\n   583\t}\n   584","headers":{"Return-Path":"\n <linux-gpio+bounces-2186-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-gpio@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=ddYwYgoK;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=147.75.199.223; helo=ny.mirrors.kernel.org;\n envelope-from=linux-gpio+bounces-2186-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=\"ddYwYgoK\"","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=intel.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=intel.com"],"Received":["from ny.mirrors.kernel.org (ny.mirrors.kernel.org [147.75.199.223])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4TBxPv716rz1yPy\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 13 Jan 2024 22:44:03 +1100 (AEDT)","from smtp.subspace.kernel.org (wormhole.subspace.kernel.org\n [52.25.139.140])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ny.mirrors.kernel.org (Postfix) with ESMTPS id 186C51C218C0\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 13 Jan 2024 11:44:01 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3E62D20DFC;\n\tSat, 13 Jan 2024 11:43:55 +0000 (UTC)","from mgamail.intel.com (mgamail.intel.com [192.55.52.120])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C77A63C;\n\tSat, 13 Jan 2024 11:43:52 +0000 (UTC)","from orviesa002.jf.intel.com ([10.64.159.142])\n  by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Jan 2024 03:43:51 -0800","from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151])\n  by orviesa002.jf.intel.com with ESMTP; 13 Jan 2024 03:43:47 -0800","from kbuild by b07ab15da5fe with local (Exim 4.96)\n\t(envelope-from <lkp@intel.com>)\n\tid 1rOcQR-000AQO-32;\n\tSat, 13 Jan 2024 11:43:43 +0000"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1705146232; x=1736682232;\n  h=date:from:to:cc:subject:message-id:references:\n   mime-version:in-reply-to;\n  bh=Tf0eWA3hj90xu6pHB6QFQrMGVnMq18WpJ+KIdyvU3L0=;\n  b=ddYwYgoKvq2Fxm+YreFreCWpE5QMXTj9NPtWvA3B7H70ftdpH4lPIE9n\n   0vapJ/rtbEy+yT/U3R+Hqmx6wFu0QsGhEny4nY2pS11EFgpQpVve2uzfe\n   VIM9xAFcdxtp8w+Ce0uie5OLnpmSG+IMDy/w98V06HKHEjoLeYIVqQZ7N\n   0ZoDyxANRwaqUM2CAyuPrPESmYJJp4cLn44yni3TX58YhDquro2U8A3RC\n   Rna0IAAAvmTnrM3wAE1gv36qOPopCpc25t2jQJ403horIiuBM/rHT2vg3\n   f8ByyTnNgj8CVQEywT7cdP4MzuHs/IiKLLio47p+qsJh2JaJ76YpjU5pZ\n   w==;","X-IronPort-AV":["E=McAfee;i=\"6600,9927,10951\"; a=\"398240054\"","E=Sophos;i=\"6.04,192,1695711600\";\n   d=\"scan'208\";a=\"398240054\"","E=Sophos;i=\"6.04,192,1695711600\";\n   d=\"scan'208\";a=\"24992514\""],"X-ExtLoop1":"1","Date":"Sat, 13 Jan 2024 19:43:20 +0800","From":"kernel test robot <lkp@intel.com>","To":"Prabhakar <prabhakar.csengg@gmail.com>,\n\tGeert Uytterhoeven <geert+renesas@glider.be>,\n\tMagnus Damm <magnus.damm@gmail.com>,\n\tLinus Walleij <linus.walleij@linaro.org>","Cc":"oe-kbuild-all@lists.linux.dev, Rob Herring <robh+dt@kernel.org>,\n\tKrzysztof Kozlowski <krzk@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tlinux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,\n\tlinux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,\n\tlinux-gpio@vger.kernel.org, Prabhakar <prabhakar.csengg@gmail.com>,\n\tBiju Das <biju.das.jz@bp.renesas.com>,\n\tClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>,\n\tLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>","Subject":"Re: [PATCH v4 2/4] pinctrl: renesas: rzg2l: Include pinmap in\n RZG2L_GPIO_PORT_PACK() macro","Message-ID":"<202401131928.oie6xLjA-lkp@intel.com>","References":"<20240112142621.13525-3-prabhakar.mahadev-lad.rj@bp.renesas.com>","Precedence":"bulk","X-Mailing-List":"linux-gpio@vger.kernel.org","List-Id":"<linux-gpio.vger.kernel.org>","List-Subscribe":"<mailto:linux-gpio+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-gpio+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20240112142621.13525-3-prabhakar.mahadev-lad.rj@bp.renesas.com>"}}]