[ammarfaizi2-block:google/android/kernel/common/android13-5.15 5191/5193] mm/compaction.c:761:15: error: redefinition of 'isolate_and_split_free_page'

From: kernel test robot
Date: Fri Mar 18 2022 - 09:22:00 EST


tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.15
head: f82f0ceba5827c9d5a3c9326c95f591ebf254003
commit: f47b852faa4afaae0e534b616f2864bb587286e4 [5191/5193] ANDROID: implement wrapper for reverse migration
config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20220318/202203182124.wIWFJftW-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6e70e4056dff962ec634c5bd4f2f4105a0bef71)
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://github.com/ammarfaizi2/linux-block/commit/f47b852faa4afaae0e534b616f2864bb587286e4
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android13-5.15
git checkout f47b852faa4afaae0e534b616f2864bb587286e4
# 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=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> mm/compaction.c:761:15: error: redefinition of 'isolate_and_split_free_page'
unsigned long isolate_and_split_free_page(struct page *page,
^
include/linux/compaction.h:230:22: note: previous definition is here
static unsigned long isolate_and_split_free_page(struct page *page,
^
1 error generated.


vim +/isolate_and_split_free_page +761 mm/compaction.c

760
> 761 unsigned long isolate_and_split_free_page(struct page *page,
762 struct list_head *list)
763 {
764 unsigned long isolated;
765 unsigned int order;
766
767 if (!PageBuddy(page))
768 return 0;
769
770 order = buddy_order(page);
771 isolated = __isolate_free_page(page, order);
772 if (!isolated)
773 return 0;
774
775 set_page_private(page, order);
776 list_add(&page->lru, list);
777
778 split_map_pages(list);
779
780 return isolated;
781 }
782 EXPORT_SYMBOL_GPL(isolate_and_split_free_page);
783

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx