From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by kanga.kvack.org (Postfix) with ESMTP id EDBA16B0038 for ; Fri, 24 Jul 2015 10:17:52 -0400 (EDT) Received: by laah7 with SMTP id h7so15088503laa.0 for ; Fri, 24 Jul 2015 07:17:52 -0700 (PDT) Received: from relay.parallels.com (relay.parallels.com. [195.214.232.42]) by mx.google.com with ESMTPS id yk6si7652972lbb.90.2015.07.24.07.17.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 07:17:51 -0700 (PDT) Date: Fri, 24 Jul 2015 17:17:26 +0300 From: Vladimir Davydov Subject: Re: [PATCH -mm v9 6/8] proc: add kpageidle file Message-ID: <20150724141726.GE8100@esperanza> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Paul Gortmaker Cc: Andrew Morton , Andres Lagar-Cavilla , Minchan Kim , Raghavendra K T , Johannes Weiner , Michal Hocko , Greg Thelen , Michel Lespinasse , David Rientjes , Pavel Emelyanov , Cyrill Gorcunov , Jonathan Corbet , linux-api@vger.kernel.org, LKML doc , linux-mm@kvack.org, cgroups@vger.kernel.org, LKML , "linux-next@vger.kernel.org" On Fri, Jul 24, 2015 at 10:08:25AM -0400, Paul Gortmaker wrote: > fs/proc/page.c:341:4: error: implicit declaration of function > 'pmdp_clear_young_notify' [-Werror=implicit-function-declaration] > fs/proc/page.c:347:4: error: implicit declaration of function > 'ptep_clear_young_notify' [-Werror=implicit-function-declaration] > cc1: some warnings being treated as errors > make[3]: *** [fs/proc/page.o] Error 1 > make[2]: *** [fs/proc] Error 2 My bad, sorry. It's already been reported by the kbuild-test-robot, see [linux-next:master 3983/4215] fs/proc/page.c:332:4: error: implicit declaration of function 'pmdp_clear_young_notify' The fix is: From: Vladimir Davydov Subject: [PATCH] mmu_notifier: add missing stubs for clear_young This is a compilation fix for !CONFIG_MMU_NOTIFIER. Fixes: mmu-notifier-add-clear_young-callback Signed-off-by: Vladimir Davydov diff --git a/include/linux/mmu_notifier.h b/include/linux/mmu_notifier.h index a5b17137c683..a1a210d59961 100644 --- a/include/linux/mmu_notifier.h +++ b/include/linux/mmu_notifier.h @@ -471,6 +471,8 @@ static inline void mmu_notifier_mm_destroy(struct mm_struct *mm) #define ptep_clear_flush_young_notify ptep_clear_flush_young #define pmdp_clear_flush_young_notify pmdp_clear_flush_young +#define ptep_clear_young_notify ptep_test_and_clear_young +#define pmdp_clear_young_notify pmdp_test_and_clear_young #define ptep_clear_flush_notify ptep_clear_flush #define pmdp_huge_clear_flush_notify pmdp_huge_clear_flush #define pmdp_huge_get_and_clear_notify pmdp_huge_get_and_clear -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org