From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 1112/4328] arch/arm/mach-versatile/versatile.c:56:14: warning: no previous prototype for function 'mmc_status'
Date: Mon, 18 Apr 2022 19:15:02 +0800 [thread overview]
Message-ID: <202204181931.klAC6fWo-lkp@intel.com> (raw)
Hi Arnd,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 40354149f4d738dc3492d9998e45b3f02950369a
commit: d7445676e86900f8dc363825033ff62416c216e0 [1112/4328] ARM: versatile: move integrator/realview/vexpress to versatile
config: arm-versatile_defconfig (https://download.01.org/0day-ci/archive/20220418/202204181931.klAC6fWo-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b27430f9f46b88bcd54d992debc8d72e131e1bd0)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d7445676e86900f8dc363825033ff62416c216e0
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout d7445676e86900f8dc363825033ff62416c216e0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/arm/mach-versatile/versatile.c:56:14: warning: no previous prototype for function 'mmc_status' [-Wmissing-prototypes]
unsigned int mmc_status(struct device *dev)
^
arch/arm/mach-versatile/versatile.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned int mmc_status(struct device *dev)
^
static
1 warning generated.
vim +/mmc_status +56 arch/arm/mach-versatile/versatile.c
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 55
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 @56 unsigned int mmc_status(struct device *dev)
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 57 {
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 58 struct amba_device *adev = container_of(dev, struct amba_device, dev);
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 59 u32 mask;
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 60
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 61 if (adev->res.start == VERSATILE_MMCI0_BASE)
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 62 mask = 1;
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 63 else
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 64 mask = 2;
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 65
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 66 return readl(versatile_sys_base + VERSATILE_SYS_MCI_OFFSET) & mask;
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 67 }
a70967892111934 arch/arm/mach-versatile/versatile_dt.c Rob Herring 2015-12-08 68
:::::: The code at line 56 was first introduced by commit
:::::: a70967892111934e292485ce84f1bab38cc55380 ARM: versatile: merge mach code into a single file
:::::: TO: Rob Herring <robh@kernel.org>
:::::: CC: Arnd Bergmann <arnd@arndb.de>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-04-18 11:15 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=202204181931.klAC6fWo-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
/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