From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752382AbdAYW20 (ORCPT ); Wed, 25 Jan 2017 17:28:26 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:59928 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751832AbdAYW2Z (ORCPT ); Wed, 25 Jan 2017 17:28:25 -0500 From: Arnd Bergmann To: Andrew Morton Cc: Yisheng Xie , Michal Hocko , Minchan Kim , Naoya Horiguchi , Arnd Bergmann , Vlastimil Babka , Gioh Kim , Ganesh Mahendran , linux-kernel@vger.kernel.org Subject: [PATCH] mm: migrate: add isolate_movable_page() stub implementation Date: Wed, 25 Jan 2017 23:27:38 +0100 Message-Id: <20170125222752.1314498-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:H/0sQEzEPVsuvu7x58lbtMluR2eV2FBqvtNJ1uZttcwujbKl4ri fMFBoPHMr4QqVIZhN5adevOBIrUq8pH3ucR0zKcw/+2erQtkfgq3K9qm86CnM9LjF+Dg/be h2PbwIOtNX0IHmt1R8N6j8UXSp0JMq0mysYF9LH+Fh41EHiVY3+w8OkpZcPlskqnE0BFx7+ ET/SZVlGlsauD/2QRPk5w== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZJzHxxkRQSc=:A7svLP4GK8Bp7XpnjRCBBF cu3whrZ5+jcdWgta92pMb/XckfebmiS/THJpZTI1Qd6guGNPYFsQyUJiBnFp/100u28AUJLC4 zd+QzIN74QyLIWV+ZMUhs5S40QUNIxID0a8E/gAcC0SxJg/YI9Q69gbm3Xr70aHzSqJzB/ifF UoVBhjIfBEAKwGRNPYlPa4OGEvqUaFNjfgPh1ABEKkba04U+kb0fLpMaZ0ZFwGITBAeU59EBf hVoxBjpuzP6yfLgseAimS1rji+DhylCkJYc5jCC8KM94q3x1d7Y8KpSSSL95TP8DX8pWEa6ib rT81p7Vv/WsUd+4xBErIgGhZVlV3KEFdLQn+VEb88IwnItT7hapjP5JB0tQuSlqflKOnaEUn9 Mf9sUKlbqOuvsMyEXb/mfd4hzsPUYpdgUi7YLkJu+zvKVgpn2TlvesGGpUaBbn3n+wg7Cg4eq AdP+6AaBO5jLrhEp40RYaa0x1bUWJZs0aNtHSsZnEtpjipk1lokK/V7b1uFyTodns8uFh4f8/ bJfQeXTcryTn1QYuyw7Sd0iSedwAilGpI88AK7Y9udKMXGprdF6mNtek6yfLWAIblsvsJf4Rj 06zoh6SR3JFfguwvc0PND0GsGWuDMauafPzJEahdt0zemSBIvLQBvYCKNNIeCCAOeXrFa+Fcy SNbvUtLt8FmJMWfgn4yVAw+rlJzS9xK9MLZ7sw9GJzZljCLjv+HqgdWJkkDbRqFkn4lA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without CONFIG_MIGRATION, we get a build failure when trying to call isolate_movable_page(): mm/memory-failure.c: In function '__soft_offline_page': mm/memory-failure.c:1656:10: error: implicit declaration of function 'isolate_movable_page';did you mean 'isolate_huge_page'? [-Werror=implicit-function-declaration] This adds one more static inline helper function in the header declaring it. This returns false to indicate that the page was not isolated. Fixes: mmotm ("HWPOISON: soft offlining for non-lru movable pages") Fixes: bda807d44454 ("mm: migrate: support non-lru movable page migration") Signed-off-by: Arnd Bergmann --- include/linux/migrate.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/migrate.h b/include/linux/migrate.h index ae8d475a9385..09dd6e924106 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -57,6 +57,9 @@ static inline int migrate_pages(struct list_head *l, new_page_t new, int reason) { return -ENOSYS; } +static inline bool isolate_movable_page(struct page *page, isolate_mode_t mode) + { return false; } + static inline int migrate_prep(void) { return -ENOSYS; } static inline int migrate_prep_local(void) { return -ENOSYS; } -- 2.9.0