From: kernel test robot <lkp@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Linux Memory Management List <linux-mm@kvack.org>,
Shiyang Ruan <ruansy.fnst@fujitsu.com>
Subject: [akpm-mm:mm-unstable 137/269] mm/memory-failure.c:1728:19: error: redefinition of 'mf_generic_kill_procs'
Date: Tue, 28 Jun 2022 15:30:34 +0800 [thread overview]
Message-ID: <202206281524.6A02wFc0-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: e75a11c67c2bbfefe57713b8bd62e488a9196baf
commit: 4184e8d7d056b7943348dabb99a37ca9ba51fb8d [137/269] mm-factor-helpers-for-memory_failure_dev_pagemap-fix
config: x86_64-randconfig-a002-20220627 (https://download.01.org/0day-ci/archive/20220628/202206281524.6A02wFc0-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project df18167ac56d05f2ab55f9d874aee7ab6d5bc9a2)
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/akpm/mm.git/commit/?id=4184e8d7d056b7943348dabb99a37ca9ba51fb8d
git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git
git fetch --no-tags akpm-mm mm-unstable
git checkout 4184e8d7d056b7943348dabb99a37ca9ba51fb8d
# 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=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> mm/memory-failure.c:1728:8: warning: attribute declaration must precede definition [-Wignored-attributes]
static inline int mf_generic_kill_procs(unsigned long long pfn, int flags,
^
include/linux/compiler_types.h:155:23: note: expanded from macro 'inline'
#define inline inline __gnu_inline __inline_maybe_unused notrace
^
include/linux/compiler_attributes.h:173:56: note: expanded from macro '__gnu_inline'
#define __gnu_inline __attribute__((__gnu_inline__))
^
mm/memory-failure.c:1526:12: note: previous definition is here
static int mf_generic_kill_procs(unsigned long long pfn, int flags,
^
>> mm/memory-failure.c:1728:8: warning: attribute declaration must precede definition [-Wignored-attributes]
static inline int mf_generic_kill_procs(unsigned long long pfn, int flags,
^
include/linux/compiler_types.h:155:58: note: expanded from macro 'inline'
#define inline inline __gnu_inline __inline_maybe_unused notrace
^
arch/x86/include/asm/linkage.h:9:32: note: expanded from macro 'notrace'
#define notrace __attribute__((no_instrument_function))
^
mm/memory-failure.c:1526:12: note: previous definition is here
static int mf_generic_kill_procs(unsigned long long pfn, int flags,
^
>> mm/memory-failure.c:1728:19: error: redefinition of 'mf_generic_kill_procs'
static inline int mf_generic_kill_procs(unsigned long long pfn, int flags,
^
mm/memory-failure.c:1526:12: note: previous definition is here
static int mf_generic_kill_procs(unsigned long long pfn, int flags,
^
2 warnings and 1 error generated.
vim +/mf_generic_kill_procs +1728 mm/memory-failure.c
1727
> 1728 static inline int mf_generic_kill_procs(unsigned long long pfn, int flags,
1729 struct dev_pagemap *pgmap)
1730 {
1731 return 0;
1732 }
1733
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-06-28 7:31 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=202206281524.6A02wFc0-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=ruansy.fnst@fujitsu.com \
/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