public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 1866/2579] drivers/media/platform/atmel/microchip-csi2dc.c:99:41: error: implicit declaration of function 'writel_relaxed'
Date: Thu, 21 Apr 2022 14:32:01 +0800	[thread overview]
Message-ID: <202204201929.Rar5Dxc9-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-04-21  6:33 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=202204201929.Rar5Dxc9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@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