Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753885AbbG0PC3 (ORCPT ); Mon, 27 Jul 2015 11:02:29 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:60796 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752233AbbG0PC2 (ORCPT ); Mon, 27 Jul 2015 11:02:28 -0400 From: Guenter Roeck To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Guenter Roeck , Andres Lagar-Cavilla , Vladimir Davydov Subject: [PATCH -next] mm: Fix build breakage seen if MMU_NOTIFIER is not configured Date: Mon, 27 Jul 2015 08:02:23 -0700 Message-Id: <1438009343-25468-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.1.0 X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1396 Lines: 41 Commit 65525488fa86 ("proc: add kpageidle file") introduces code which depends on MMU_NOTIFIER, yet the newly introduced configuration flag does not declare that dependency. This results in the following build failures seen if IDLE_PAGE_TRACKING is configured but MMU_NOTIFIER is not. fs/proc/page.c: In function 'kpageidle_clear_pte_refs_one': fs/proc/page.c:341:4: error: implicit declaration of function 'pmdp_clear_young_notify' fs/proc/page.c:347:4: error: implicit declaration of function 'ptep_clear_young_notify' Fixes: 65525488fa86 ("proc: add kpageidle file") Cc: Andrew Morton Cc: Andres Lagar-Cavilla Cc: Vladimir Davydov Signed-off-by: Guenter Roeck --- mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/Kconfig b/mm/Kconfig index 7e9ccb438985..b73b41c3217b 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -651,6 +651,7 @@ config DEFERRED_STRUCT_PAGE_INIT config IDLE_PAGE_TRACKING bool "Enable idle page tracking" + depends on MMU_NOTIFIER select PROC_PAGE_MONITOR select PAGE_EXTENSION if !64BIT help -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/