lkml.org 
[lkml]   [2022]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[mingo-tip:sched/headers 1866/2579] drivers/media/platform/atmel/microchip-csi2dc.c:99:41: error: implicit declaration of function 'writel_relaxed'
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe
commit: d978256196ab999eb303d56234a352604121dab8 [1866/2579] headers/deps: lib/scatterlist: Optimize the <linux/scatterlist_types.h> header, remove <linux/io.h>
config: sparc64-randconfig-r015-20220420 (https://download.01.org/0day-ci/archive/20220420/202204201929.Rar5Dxc9-lkp@intel.com/config)
compiler: sparc64-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=d978256196ab999eb303d56234a352604121dab8
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 d978256196ab999eb303d56234a352604121dab8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/media/platform/atmel/ drivers/media/platform/nxp/ kernel/ sound/soc/qcom/qdsp6/

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/sparc/include/asm/device.h:9,
from include/linux/device.h:33,
from include/linux/device_api.h:1,
from include/linux/device_api_lock.h:2,
from include/linux/fwnode.h:12,
from include/linux/property.h:14,
from include/linux/of.h:22,
from include/linux/of_api.h:1,
from drivers/media/platform/atmel/microchip-csi2dc.c:11:
arch/sparc/include/asm/openprom.h:32:9: error: expected specifier-qualifier-list before 'phandle'
32 | phandle (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */
| ^~~~~~~
arch/sparc/include/asm/openprom.h:174:9: error: expected specifier-qualifier-list before 'phandle'
174 | phandle (*no_nextnode)(phandle node);
| ^~~~~~~
drivers/media/platform/atmel/microchip-csi2dc.c: In function 'csi2dc_power':
>> drivers/media/platform/atmel/microchip-csi2dc.c:99:41: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
99 | #define csi2dc_writel(st, reg, val) writel_relaxed((val), \
| ^~~~~~~~~~~~~~
drivers/media/platform/atmel/microchip-csi2dc.c:332:17: note: in expansion of macro 'csi2dc_writel'
332 | csi2dc_writel(csi2dc, CSI2DC_GCTLR, CSI2DC_GCTLR_SWRST);
| ^~~~~~~~~~~~~
drivers/media/platform/atmel/microchip-csi2dc.c: In function 'csi2dc_vp_update':
>> drivers/media/platform/atmel/microchip-csi2dc.c:98:41: error: implicit declaration of function 'readl_relaxed' [-Werror=implicit-function-declaration]
98 | #define csi2dc_readl(st, reg) readl_relaxed((st)->base + (reg))
| ^~~~~~~~~~~~~
drivers/media/platform/atmel/microchip-csi2dc.c:385:24: note: in expansion of macro 'csi2dc_readl'
385 | gcfg = csi2dc_readl(csi2dc, CSI2DC_GCFG);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors


vim +/writel_relaxed +99 drivers/media/platform/atmel/microchip-csi2dc.c

2de0b3c0f67842 Eugen Hristev 2021-12-13 96
2de0b3c0f67842 Eugen Hristev 2021-12-13 97 /* register read/write helpers */
2de0b3c0f67842 Eugen Hristev 2021-12-13 @98 #define csi2dc_readl(st, reg) readl_relaxed((st)->base + (reg))
2de0b3c0f67842 Eugen Hristev 2021-12-13 @99 #define csi2dc_writel(st, reg, val) writel_relaxed((val), \
2de0b3c0f67842 Eugen Hristev 2021-12-13 100 (st)->base + (reg))
2de0b3c0f67842 Eugen Hristev 2021-12-13 101

:::::: The code at line 99 was first introduced by commit
:::::: 2de0b3c0f678422ef2211760079a27c3cb1404b2 media: atmel: introduce microchip csi2dc driver

:::::: TO: Eugen Hristev <eugen.hristev@microchip.com>
:::::: CC: Mauro Carvalho Chehab <mchehab@kernel.org>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-04-21 08:35    [W:0.027 / U:0.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site