From patchwork Wed Feb 9 09:47:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12739944 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E84DC433F5 for ; Wed, 9 Feb 2022 09:48:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E39106B0082; Wed, 9 Feb 2022 04:48:05 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DE8616B0083; Wed, 9 Feb 2022 04:48:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D258C6B0085; Wed, 9 Feb 2022 04:48:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0213.hostedemail.com [216.40.44.213]) by kanga.kvack.org (Postfix) with ESMTP id C2C426B0082 for ; Wed, 9 Feb 2022 04:48:05 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6B176987AC for ; Wed, 9 Feb 2022 09:48:05 +0000 (UTC) X-FDA: 79122765330.25.21E548E Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id 7A1BD40009 for ; Wed, 9 Feb 2022 09:48:04 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9084B619B6; Wed, 9 Feb 2022 09:48:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A56CC340E7; Wed, 9 Feb 2022 09:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644400082; bh=qBP7pDK7v38bL/Wj23CF1WYCYm0yN9WGAG1T7aIL6zE=; h=From:To:Cc:Subject:Date:From; b=pwVFI2DHuD5WANevgFZO5eTXkSYgF8i/AqqKyxhI7D2y7gwNK5gAG1MbxIBvopFcg JssvS1Rp7ZC+VwYn7JxhS2d2oTjEQBDjQiu/3QKrvfMHXD8aakfxxBzzTTRDOevF5M kQ/02Yudbgib+7HitDR+8jwNG0IaSdEHL35RJ+LFt24nMgZPSEfM6xS6Hoe5ISOKUJ ORMv7iTHx6V/8izzdWD3HrKvaUUWfzDtO4pWzcUQ1DSYLkLYX1lNBp5EF9FV79Dka5 pjsqfujr5YEHgB5/MUSo3iEdp0MJLA4PgXtYPSpB62YMS4TBXG2buasZjd2JcBozsb uDwQmUJ7o9qWw== From: SeongJae Park To: akpm@linux-foundation.org Cc: shy828301@gmail.com, ziy@nvidia.com, ying.huang@intel.com, willy@infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH RESEND] migrate: Wrap CONFIG_DEVICE_PRIVATE dependent function declarations with ifdef Date: Wed, 9 Feb 2022 09:47:53 +0000 Message-Id: <20220209094753.22022-1-sj@kernel.org> X-Mailer: git-send-email 2.17.1 X-Rspamd-Server: rspam11 X-Rspam-User: X-Stat-Signature: 9gaef8cjn8iz9f3if3o3jgk9a9xseb4j Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pwVFI2DH; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org X-Rspamd-Queue-Id: 7A1BD40009 X-HE-Tag: 1644400084-515405 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 'migrate_vma_{setup,pages,finalize}()' functions are defined under CONFIG_DEVICE_PRIVATE, but their declarations are not. This commit wraps the declaration under the config to minimize confusion. Signed-off-by: SeongJae Park --- include/linux/migrate.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/migrate.h b/include/linux/migrate.h index 66a34eae8cb6..f8fa7db83e23 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -162,9 +162,14 @@ struct migrate_vma { unsigned long flags; }; +#ifdef CONFIG_DEVICE_PRIVATE + int migrate_vma_setup(struct migrate_vma *args); void migrate_vma_pages(struct migrate_vma *migrate); void migrate_vma_finalize(struct migrate_vma *migrate); + +#endif /* CONFIG_DEVICE_PRIVATE */ + int next_demotion_node(int node); #else /* CONFIG_MIGRATION disabled: */