* [rgushchin:cleanup_kmem_api 5/8] mm/page_alloc.c:1162:3: error: implicit declaration of function '__memcg_kmem_uncharge_page'; did you mean 'memcg_kmem_uncharge_page'?
@ 2020-01-10 1:17 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-10 1:17 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4492 bytes --]
tree: https://github.com/rgushchin/linux.git cleanup_kmem_api
head: b095b055b2b4f875d593a65595d74db40370e2e3
commit: 8809a9e7cfa5525b7784111c123f80040f85f7c9 [5/8] mm: kmem: rename memcg_kmem_(un)charge() into memcg_kmem_(un)charge_page()
config: parisc-c3000_defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8809a9e7cfa5525b7784111c123f80040f85f7c9
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
mm/page_alloc.c: In function 'free_pages_prepare':
>> mm/page_alloc.c:1162:3: error: implicit declaration of function '__memcg_kmem_uncharge_page'; did you mean 'memcg_kmem_uncharge_page'? [-Werror=implicit-function-declaration]
__memcg_kmem_uncharge_page(page, order);
^~~~~~~~~~~~~~~~~~~~~~~~~~
memcg_kmem_uncharge_page
In file included from include/linux/kernel.h:11:0,
from arch/parisc/include/asm/bug.h:5,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
mm/page_alloc.c: In function '__alloc_pages_nodemask':
>> mm/page_alloc.c:4780:15: error: implicit declaration of function '__memcg_kmem_charge_page'; did you mean 'memcg_kmem_charge_page'? [-Werror=implicit-function-declaration]
unlikely(__memcg_kmem_charge_page(page, gfp_mask, order) != 0)) {
^
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
cc1: some warnings being treated as errors
vim +1162 mm/page_alloc.c
1127
1128 static __always_inline bool free_pages_prepare(struct page *page,
1129 unsigned int order, bool check_free)
1130 {
1131 int bad = 0;
1132
1133 VM_BUG_ON_PAGE(PageTail(page), page);
1134
1135 trace_mm_page_free(page, order);
1136
1137 /*
1138 * Check tail pages before head page information is cleared to
1139 * avoid checking PageCompound for order-0 pages.
1140 */
1141 if (unlikely(order)) {
1142 bool compound = PageCompound(page);
1143 int i;
1144
1145 VM_BUG_ON_PAGE(compound && compound_order(page) != order, page);
1146
1147 if (compound)
1148 ClearPageDoubleMap(page);
1149 for (i = 1; i < (1 << order); i++) {
1150 if (compound)
1151 bad += free_tail_pages_check(page, page + i);
1152 if (unlikely(free_pages_check(page + i))) {
1153 bad++;
1154 continue;
1155 }
1156 (page + i)->flags &= ~PAGE_FLAGS_CHECK_AT_PREP;
1157 }
1158 }
1159 if (PageMappingFlags(page))
1160 page->mapping = NULL;
1161 if (memcg_kmem_enabled() && PageKmemcg(page))
> 1162 __memcg_kmem_uncharge_page(page, order);
1163 if (check_free)
1164 bad += free_pages_check(page);
1165 if (bad)
1166 return false;
1167
1168 page_cpupid_reset_last(page);
1169 page->flags &= ~PAGE_FLAGS_CHECK_AT_PREP;
1170 reset_page_owner(page, order);
1171
1172 if (!PageHighMem(page)) {
1173 debug_check_no_locks_freed(page_address(page),
1174 PAGE_SIZE << order);
1175 debug_check_no_obj_freed(page_address(page),
1176 PAGE_SIZE << order);
1177 }
1178 if (want_init_on_free())
1179 kernel_init_free_pages(page, 1 << order);
1180
1181 kernel_poison_pages(page, 1 << order, 0);
1182 /*
1183 * arch_free_page() can make the page's contents inaccessible. s390
1184 * does this. So nothing which can access the page's contents should
1185 * happen after this.
1186 */
1187 arch_free_page(page, order);
1188
1189 if (debug_pagealloc_enabled())
1190 kernel_map_pages(page, 1 << order, 0);
1191
1192 kasan_free_nondeferred_pages(page, order);
1193
1194 return true;
1195 }
1196
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 15799 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-10 1:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 1:17 [rgushchin:cleanup_kmem_api 5/8] mm/page_alloc.c:1162:3: error: implicit declaration of function '__memcg_kmem_uncharge_page'; did you mean 'memcg_kmem_uncharge_page'? kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.