[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202412031041.k4eDb4zq-lkp@intel.com>
Date: Tue, 3 Dec 2024 10:04:00 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Masahiro Yamada <masahiroy@...nel.org>, Alex Shi <alexs@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Miguel Ojeda <ojeda@...nel.org>,
Nathan Chancellor <nathan@...nel.org>
Subject: arch/m68k/include/asm/m54xxsim.h:112:33: error: passing argument 1
of 'readl' makes pointer from integer without a cast
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@...el.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@...dc.com>
:::::: CC: Greg Ungerer <gerg@...ux-m68k.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists