public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Masahiro Yamada <masahiroy@kernel.org>,
	Alex Shi <alexs@kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	Miguel Ojeda <ojeda@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>
Subject: arch/m68k/include/asm/m54xxsim.h:112:33: error: passing argument 1 of 'readl' makes pointer from integer without a cast
Date: Tue, 3 Dec 2024 10:04:00 +0800	[thread overview]
Message-ID: <202412031041.k4eDb4zq-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   cdd30ebb1b9f36159d66f088b61aee264e649d7a
commit: e8c07082a810fbb9db303a2b66b66b8d7e588b53 Kbuild: move to -std=gnu11
date:   2 years, 9 months ago
config: m68k-randconfig-r072-20241111 (https://download.01.org/0day-ci/archive/20241203/202412031041.k4eDb4zq-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412031041.k4eDb4zq-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/202412031041.k4eDb4zq-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/m68k/include/asm/mcfsim.h:46,
                    from arch/m68k/include/asm/io_no.h:35,
                    from arch/m68k/include/asm/io.h:6,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from include/asm-generic/hardirq.h:17,
                    from ./arch/m68k/include/generated/asm/hardirq.h:1,
                    from include/linux/hardirq.h:11,
                    from include/linux/interrupt.h:11,
                    from arch/m68k/coldfire/m54xx.c:16:
   arch/m68k/coldfire/m54xx.c: In function 'm54xx_i2c_init':
>> arch/m68k/include/asm/m54xxsim.h:112:33: error: passing argument 1 of 'readl' makes pointer from integer without a cast [-Wint-conversion]
     112 | #define MCF_PAR_FECI2CIRQ       (MCF_MBAR + 0x00000a44) /* FEC/I2C/IRQ */
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
         |                                 |
         |                                 int
   arch/m68k/coldfire/m54xx.c:70:19: note: in expansion of macro 'MCF_PAR_FECI2CIRQ'
      70 |         r = readl(MCF_PAR_FECI2CIRQ);
         |                   ^~~~~~~~~~~~~~~~~
   arch/m68k/include/asm/io_no.h:74:54: note: expected 'const volatile void *' but argument is of type 'int'
      74 | static inline u32 readl(const volatile void __iomem *addr)
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
   arch/m68k/include/asm/m54xxsim.h:112:33: error: passing argument 2 of 'writel' makes pointer from integer without a cast [-Wint-conversion]
     112 | #define MCF_PAR_FECI2CIRQ       (MCF_MBAR + 0x00000a44) /* FEC/I2C/IRQ */
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
         |                                 |
         |                                 int
   arch/m68k/coldfire/m54xx.c:72:19: note: in expansion of macro 'MCF_PAR_FECI2CIRQ'
      72 |         writel(r, MCF_PAR_FECI2CIRQ);
         |                   ^~~~~~~~~~~~~~~~~
   arch/m68k/include/asm/io_no.h:91:61: note: expected 'volatile void *' but argument is of type 'int'
      91 | static inline void writel(u32 value, volatile void __iomem *addr)
         |                                      ~~~~~~~~~~~~~~~~~~~~~~~^~~~


vim +/readl +112 arch/m68k/include/asm/m54xxsim.h

ea49f8ffae6262 arch/m68k/include/asm/m548xsim.h Philippe De Muyter 2010-09-20  111  
2d24b532f95b8b arch/m68k/include/asm/m54xxsim.h Steven King        2014-06-30 @112  #define MCF_PAR_FECI2CIRQ	(MCF_MBAR + 0x00000a44)	/* FEC/I2C/IRQ */
2d24b532f95b8b arch/m68k/include/asm/m54xxsim.h Steven King        2014-06-30  113  #define MCF_PAR_FECI2CIRQ_SDA	(1 << 3)
2d24b532f95b8b arch/m68k/include/asm/m54xxsim.h Steven King        2014-06-30  114  #define MCF_PAR_FECI2CIRQ_SCL	(1 << 2)
2d24b532f95b8b arch/m68k/include/asm/m54xxsim.h Steven King        2014-06-30  115  

:::::: The code at line 112 was first introduced by commit
:::::: 2d24b532f95b8b1b61bf670ef5bdee52bcf59640 m68knommu: platform support for i2c devices on ColdFire SoC

:::::: TO: Steven King <sfking@fdwdc.com>
:::::: CC: Greg Ungerer <gerg@linux-m68k.org>

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

                 reply	other threads:[~2024-12-03  2:04 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=202412031041.k4eDb4zq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexs@kernel.org \
    --cc=arnd@arndb.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ojeda@kernel.org \
    /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