linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Esben Haabendal <esben@geanix.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-gpio@vger.kernel.org,
	Linus Walleij <linus.walleij@linaro.org>
Subject: [linusw-pinctrl:devel 8/20] drivers/pinctrl/freescale/pinctrl-imx1.c:17:9: warning: "PC" redefined
Date: Wed, 2 Oct 2024 09:58:58 +0800	[thread overview]
Message-ID: <202410020940.wGISlWfV-lkp@intel.com> (raw)

Hi Esben,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
head:   d1c7bf9cb31a8e3868c5eaf3ec05b79aba4d2e33
commit: a55222b7a1327fabad71e1e61661077ab66bb98d [8/20] pinctrl: freescale: enable use with COMPILE_TEST
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20241002/202410020940.wGISlWfV-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241002/202410020940.wGISlWfV-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/202410020940.wGISlWfV-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/pinctrl/freescale/pinctrl-imx1.c:17:9: warning: "PC" redefined
      17 | #define PC      2
         |         ^~
   In file included from arch/loongarch/include/asm/processor.h:17,
                    from arch/loongarch/include/asm/thread_info.h:15,
                    from include/linux/thread_info.h:60,
                    from include/asm-generic/current.h:6,
                    from ./arch/loongarch/include/generated/asm/current.h:1,
                    from include/linux/mutex.h:14,
                    from include/linux/kernfs.h:11,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/of.h:18,
                    from drivers/pinctrl/freescale/pinctrl-imx1.c:8:
   arch/loongarch/include/uapi/asm/ptrace.h:25:9: note: this is the location of the previous definition
      25 | #define PC              (GPR_END + 2)
         |         ^~
--
>> drivers/pinctrl/freescale/pinctrl-imx27.c:21:9: warning: "PC" redefined
      21 | #define PC 2
         |         ^~
   In file included from arch/loongarch/include/asm/processor.h:17,
                    from arch/loongarch/include/asm/thread_info.h:15,
                    from include/linux/thread_info.h:60,
                    from include/asm-generic/current.h:6,
                    from ./arch/loongarch/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/platform_device.h:13,
                    from drivers/pinctrl/freescale/pinctrl-imx27.c:13:
   arch/loongarch/include/uapi/asm/ptrace.h:25:9: note: this is the location of the previous definition
      25 | #define PC              (GPR_END + 2)
         |         ^~


vim +/PC +17 drivers/pinctrl/freescale/pinctrl-imx1.c

4877e51ed791ac drivers/pinctrl/pinctrl-imx1.c Alexander Shiyan 2014-06-03  13  
4877e51ed791ac drivers/pinctrl/pinctrl-imx1.c Alexander Shiyan 2014-06-03  14  #define PAD_ID(port, pin)	((port) * 32 + (pin))
4877e51ed791ac drivers/pinctrl/pinctrl-imx1.c Alexander Shiyan 2014-06-03  15  #define PA	0
4877e51ed791ac drivers/pinctrl/pinctrl-imx1.c Alexander Shiyan 2014-06-03  16  #define PB	1
4877e51ed791ac drivers/pinctrl/pinctrl-imx1.c Alexander Shiyan 2014-06-03 @17  #define PC	2
4877e51ed791ac drivers/pinctrl/pinctrl-imx1.c Alexander Shiyan 2014-06-03  18  #define PD	3
4877e51ed791ac drivers/pinctrl/pinctrl-imx1.c Alexander Shiyan 2014-06-03  19  

:::::: The code at line 17 was first introduced by commit
:::::: 4877e51ed791ac0098471d547f9f8f84c147e1c6 pinctrl: Add i.MX1 pincontrol driver

:::::: TO: Alexander Shiyan <shc_work@mail.ru>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>

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

                 reply	other threads:[~2024-10-02  1:59 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=202410020940.wGISlWfV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=esben@geanix.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@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;
as well as URLs for NNTP newsgroup(s).