From: kernel test robot <lkp@intel.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Thomas Gleixner <tglx@linutronix.de>,
Christoph Hellwig <hch@lst.de>
Subject: arch/powerpc/mm/book3s64/pgtable.c:174:15: warning: no previous prototype for function 'create_section_mapping'
Date: Sun, 27 Jun 2021 03:48:13 +0800 [thread overview]
Message-ID: <202106270309.bZ79gubt-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4525 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 625acffd7ae2c52898d249e6c5c39f348db0d8df
commit: a927bd6ba952d13c52b8b385030943032f659a3e mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports
date: 7 months ago
config: powerpc-randconfig-r012-20210627 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 557b101ce714e39438ba1d39c4c50b03e12fcb96)
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/torvalds/linux.git/commit/?id=a927bd6ba952d13c52b8b385030943032f659a3e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a927bd6ba952d13c52b8b385030943032f659a3e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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 >>):
In file included from arch/powerpc/mm/book3s64/pgtable.c:6:
In file included from include/linux/sched.h:12:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:17:
In file included from arch/powerpc/include/asm/lppaca.h:46:
In file included from arch/powerpc/include/asm/mmu.h:144:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> arch/powerpc/mm/book3s64/pgtable.c:174:15: warning: no previous prototype for function 'create_section_mapping' [-Wmissing-prototypes]
int __meminit create_section_mapping(unsigned long start, unsigned long end,
^
arch/powerpc/mm/book3s64/pgtable.c:174:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __meminit create_section_mapping(unsigned long start, unsigned long end,
^
static
2 warnings generated.
vim +/create_section_mapping +174 arch/powerpc/mm/book3s64/pgtable.c
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 172
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 173 #ifdef CONFIG_MEMORY_HOTPLUG
4e00c5affdd4b0 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 @174 int __meminit create_section_mapping(unsigned long start, unsigned long end,
4e00c5affdd4b0 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 175 int nid, pgprot_t prot)
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 176 {
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 177 if (radix_enabled())
4e00c5affdd4b0 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 178 return radix__create_section_mapping(start, end, nid, prot);
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 179
4e00c5affdd4b0 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 180 return hash__create_section_mapping(start, end, nid, prot);
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 181 }
32b53c012e0bfe arch/powerpc/mm/pgtable-book3s64.c Reza Arbab 2017-01-03 182
:::::: The code at line 174 was first introduced by commit
:::::: 4e00c5affdd4b04e6392001716333971932f3d0c powerpc/mm: thread pgprot_t through create_section_mapping()
:::::: TO: Logan Gunthorpe <logang@deltatee.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37080 bytes --]
reply other threads:[~2021-06-26 19:49 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=202106270309.bZ79gubt-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=clang-built-linux@googlegroups.com \
--cc=dan.j.williams@intel.com \
--cc=hch@lst.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=tglx@linutronix.de \
/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