lkml.org 
[lkml]   [2022]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[mingo-tip:sched/headers 2200/2340] arch/mips/include/asm/mach-lantiq/lantiq.h:15:33: error: implicit declaration of function '__raw_writel'
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 97c5eeb4de3ad324ed2a4656b46465299cfd010a
commit: 3828a1a70a61b6a815d092a41ce8bc2af2eb3d92 [2200/2340] headers/deps: irq: Optimize <linux/interrupt.h> dependencies
config: mips-xway_defconfig (https://download.01.org/0day-ci/archive/20220224/202202241608.GjG8zfIj-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=3828a1a70a61b6a815d092a41ce8bc2af2eb3d92
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 3828a1a70a61b6a815d092a41ce8bc2af2eb3d92
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

In file included from arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h:12,
from arch/mips/lantiq/xway/gptu.c:16:
arch/mips/lantiq/xway/gptu.c: In function 'timer_irq_handler':
>> arch/mips/include/asm/mach-lantiq/lantiq.h:15:33: error: implicit declaration of function '__raw_writel' [-Werror=implicit-function-declaration]
15 | #define ltq_w32(val, reg) __raw_writel(val, reg)
| ^~~~~~~~~~~~
arch/mips/lantiq/xway/gptu.c:60:25: note: in expansion of macro 'ltq_w32'
60 | #define gptu_w32(x, y) ltq_w32((x), gptu_membase + (y))
| ^~~~~~~
arch/mips/lantiq/xway/gptu.c:78:9: note: in expansion of macro 'gptu_w32'
78 | gptu_w32(1 << timer, GPTU_IRNCR);
| ^~~~~~~~
arch/mips/lantiq/xway/gptu.c: In function 'gptu_enable':
arch/mips/include/asm/mach-lantiq/lantiq.h:14:33: error: implicit declaration of function '__raw_readl'; did you mean '__raw_emt'? [-Werror=implicit-function-declaration]
14 | #define ltq_r32(reg) __raw_readl(reg)
| ^~~~~~~~~~~
arch/mips/include/asm/mach-lantiq/lantiq.h:15:46: note: in definition of macro 'ltq_w32'
15 | #define ltq_w32(val, reg) __raw_writel(val, reg)
| ^~~
arch/mips/lantiq/xway/gptu.c:108:9: note: in expansion of macro 'gptu_w32'
108 | gptu_w32(gptu_r32(GPTU_IRNEN) | BIT(clk->bits), GPTU_IRNEN);
| ^~~~~~~~
arch/mips/lantiq/xway/gptu.c:61:25: note: in expansion of macro 'ltq_r32'
61 | #define gptu_r32(x) ltq_r32(gptu_membase + (x))
| ^~~~~~~
arch/mips/lantiq/xway/gptu.c:108:18: note: in expansion of macro 'gptu_r32'
108 | gptu_w32(gptu_r32(GPTU_IRNEN) | BIT(clk->bits), GPTU_IRNEN);
| ^~~~~~~~
arch/mips/lantiq/xway/gptu.c: At top level:
arch/mips/lantiq/xway/gptu.c:199:12: warning: no previous prototype for 'gptu_init' [-Wmissing-prototypes]
199 | int __init gptu_init(void)
| ^~~~~~~~~
cc1: some warnings being treated as errors


vim +/__raw_writel +15 arch/mips/include/asm/mach-lantiq/lantiq.h

171bb2f19ed6f3 John Crispin 2011-03-30 12
171bb2f19ed6f3 John Crispin 2011-03-30 13 /* generic reg access functions */
171bb2f19ed6f3 John Crispin 2011-03-30 14 #define ltq_r32(reg) __raw_readl(reg)
171bb2f19ed6f3 John Crispin 2011-03-30 @15 #define ltq_w32(val, reg) __raw_writel(val, reg)
171bb2f19ed6f3 John Crispin 2011-03-30 16 #define ltq_w32_mask(clear, set, reg) \
171bb2f19ed6f3 John Crispin 2011-03-30 17 ltq_w32((ltq_r32(reg) & ~(clear)) | (set), reg)
171bb2f19ed6f3 John Crispin 2011-03-30 18 #define ltq_r8(reg) __raw_readb(reg)
171bb2f19ed6f3 John Crispin 2011-03-30 19 #define ltq_w8(val, reg) __raw_writeb(val, reg)
171bb2f19ed6f3 John Crispin 2011-03-30 20

:::::: The code at line 15 was first introduced by commit
:::::: 171bb2f19ed6f3627f4f783f658f2f475b2fbd50 MIPS: Lantiq: Add initial support for Lantiq SoCs

:::::: TO: John Crispin <blogic@openwrt.org>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2022-02-24 09:11    [W:0.033 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site