Re: [linux-next:master 6277/6751] mm/page_idle.c:67:4: error: implicit declaration of function 'pmdp_test_and_clear_young'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 07, 2015 at 09:57:14PM +0800, kbuild test robot wrote:
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   e6455bc5b91f41f842f30465c9193320f0568707
> commit: cbba4e22584984bffccd07e0801fd2b8ec1ecf5f [6277/6751] Move /proc/kpageidle to /sys/kernel/mm/page_idle/bitmap
> config: sh-allmodconfig (attached as .config)
> reproduce:
>   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>   chmod +x ~/bin/make.cross
>   git checkout cbba4e22584984bffccd07e0801fd2b8ec1ecf5f
>   # save the attached .config to linux build tree
>   make.cross ARCH=sh 
> 
> All error/warnings (new ones prefixed by >>):
> 
>    mm/page_idle.c: In function 'page_idle_clear_pte_refs_one':
> >> mm/page_idle.c:67:4: error: implicit declaration of function 'pmdp_test_and_clear_young' [-Werror=implicit-function-declaration]
> >> mm/page_idle.c:71:3: error: implicit declaration of function 'page_check_address' [-Werror=implicit-function-declaration]
> >> mm/page_idle.c:71:7: warning: assignment makes pointer from integer without a cast [enabled by default]
> >> mm/page_idle.c:73:4: error: implicit declaration of function 'ptep_test_and_clear_young' [-Werror=implicit-function-declaration]
>    mm/page_idle.c: In function 'page_idle_clear_pte_refs':
> >> mm/page_idle.c:95:22: error: variable 'rwc' has initializer but incomplete type
> >> mm/page_idle.c:96:3: error: unknown field 'rmap_one' specified in initializer
> >> mm/page_idle.c:96:3: warning: excess elements in struct initializer [enabled by default]
> >> mm/page_idle.c:96:3: warning: (near initialization for 'rwc') [enabled by default]
> >> mm/page_idle.c:97:3: error: unknown field 'anon_lock' specified in initializer
> >> mm/page_idle.c:97:16: error: 'page_lock_anon_vma_read' undeclared (first use in this function)
>    mm/page_idle.c:97:16: note: each undeclared identifier is reported only once for each function it appears in
>    mm/page_idle.c:97:3: warning: excess elements in struct initializer [enabled by default]
>    mm/page_idle.c:97:3: warning: (near initialization for 'rwc') [enabled by default]
> >> mm/page_idle.c:95:40: error: storage size of 'rwc' isn't known
> >> mm/page_idle.c:109:2: error: implicit declaration of function 'rmap_walk' [-Werror=implicit-function-declaration]
> >> mm/page_idle.c:95:40: warning: unused variable 'rwc' [-Wunused-variable]
>    cc1: some warnings being treated as errors

IDLE_PAGE_TRACKING must depend on MMU. I accidentally lost this
dependency while moving /proc/kpageidle to sysfs, sorry about that.

The fix is below.
---
diff --git a/mm/Kconfig b/mm/Kconfig
index fe133a98a9ef..5f817f35ecc6 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -651,7 +651,7 @@ config DEFERRED_STRUCT_PAGE_INIT
 
 config IDLE_PAGE_TRACKING
 	bool "Enable idle page tracking"
-	depends on SYSFS
+	depends on MMU && SYSFS
 	select PAGE_EXTENSION if !64BIT
 	help
 	  This feature allows to estimate the amount of user pages that have

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]