[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206281524.6A02wFc0-lkp@intel.com>
Date: Tue, 28 Jun 2022 15:30:34 +0800
From: kernel test robot <lkp@...el.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Linux Memory Management List <linux-mm@...ck.org>,
Shiyang Ruan <ruansy.fnst@...itsu.com>
Subject: [akpm-mm:mm-unstable 137/269] mm/memory-failure.c:1728:19: error:
redefinition of 'mf_generic_kill_procs'
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@...el.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
Powered by blists - more mailing lists