From: kernel test robot <lkp@intel.com>
To: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Nathan Chancellor <nathan@kernel.org>
Subject: [linux-next:master 4574/6188] arch/powerpc/math-emu/fre.c:6:5: warning: no previous prototype for function 'fre'
Date: Fri, 9 Sep 2022 03:36:39 +0800 [thread overview]
Message-ID: <202209090343.JPAFJt74-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 47c191411b68a771261be3dc0bd6f68394cef358
commit: 7245fc5bb7a966852d5bd7779d1f5855530b461a [4574/6188] powerpc/math-emu: Remove -w build flag and fix warnings
config: powerpc-randconfig-r021-20220907 (https://download.01.org/0day-ci/archive/20220909/202209090343.JPAFJt74-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7245fc5bb7a966852d5bd7779d1f5855530b461a
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 7245fc5bb7a966852d5bd7779d1f5855530b461a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/math-emu/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/powerpc/math-emu/fre.c:6:5: warning: no previous prototype for function 'fre' [-Wmissing-prototypes]
int fre(void *frD, void *frB)
^
arch/powerpc/math-emu/fre.c:6:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int fre(void *frD, void *frB)
^
static
1 warning generated.
--
>> arch/powerpc/math-emu/fsqrt.c:11:1: warning: no previous prototype for function 'fsqrt' [-Wmissing-prototypes]
fsqrt(void *frD, void *frB)
^
arch/powerpc/math-emu/fsqrt.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int
^
static
1 warning generated.
--
>> arch/powerpc/math-emu/fsqrts.c:12:1: warning: no previous prototype for function 'fsqrts' [-Wmissing-prototypes]
fsqrts(void *frD, void *frB)
^
arch/powerpc/math-emu/fsqrts.c:11:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int
^
static
1 warning generated.
--
>> arch/powerpc/math-emu/frsqrtes.c:6:5: warning: no previous prototype for function 'frsqrtes' [-Wmissing-prototypes]
int frsqrtes(void *frD, void *frB)
^
arch/powerpc/math-emu/frsqrtes.c:6:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int frsqrtes(void *frD, void *frB)
^
static
1 warning generated.
--
>> arch/powerpc/math-emu/mtfsf.c:10:1: warning: no previous prototype for function 'mtfsf' [-Wmissing-prototypes]
mtfsf(unsigned int FM, u32 *frB)
^
arch/powerpc/math-emu/mtfsf.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int
^
static
1 warning generated.
--
>> arch/powerpc/math-emu/mtfsfi.c:10:1: warning: no previous prototype for function 'mtfsfi' [-Wmissing-prototypes]
mtfsfi(unsigned int crfD, unsigned int IMM)
^
arch/powerpc/math-emu/mtfsfi.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int
^
static
1 warning generated.
vim +/fre +6 arch/powerpc/math-emu/fre.c
04ae9001719c3f Benjamin Herrenschmidt 2013-06-09 5
04ae9001719c3f Benjamin Herrenschmidt 2013-06-09 @6 int fre(void *frD, void *frB)
:::::: The code at line 6 was first introduced by commit
:::::: 04ae9001719c3f0012d239a7c5aa4136f6b6541d powerpc/math-emu: Fix decoding of some instructions
:::::: TO: Benjamin Herrenschmidt <benh@kernel.crashing.org>
:::::: CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-09-08 19:37 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=202209090343.JPAFJt74-lkp@intel.com \
--to=lkp@intel.com \
--cc=christophe.leroy@csgroup.eu \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=mpe@ellerman.id.au \
--cc=nathan@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;
as well as URLs for NNTP newsgroup(s).