Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1850253pxb; Wed, 9 Feb 2022 05:58:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyM3LG2IjWZD6S9rpI4FuVxLV2LTKRYPfrNZDxwSCXi9V3waRXroE7dmfEVefWbTlOTf0Mt X-Received: by 2002:a17:902:dac7:: with SMTP id q7mr2310474plx.120.1644415091887; Wed, 09 Feb 2022 05:58:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644415091; cv=none; d=google.com; s=arc-20160816; b=L8SvZIPmbmrvwqcMh1VwGikdVFbgNP4QD97/aBHRsmzBfkjvOeGlxdqmRNmahR7hYG nh/tAkQjIuKlJ7Dk1Tl0EL1O/iItxY5W3FLX0C8yokLWl4tahm1WHsbhG33UY8bCDks7 pFI0bsnYunQtO18VA9vCyei6otXD+vcZe8ZmgDnH1AfFHuR1fb90US7CEA1DDEIxcHZe 3cpzKF2tciqad2j8N+szuOx87ObwYFjSK+dYVUGybf2YtTnn8N3LCvq1Jj5XFi144K0a 1CBULvS/jcy+ErKw98Psa73xMgA/KoebEyWFU1ugNETnKq3320TZeufK6lbNGlu818sM w2+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=bU8/LRrYyjr7PrCc5veGX/pz6pTOa7RyVPk+Hkn7Faw=; b=x3U8OptqBgroMvlqKOUGegiIfRJjflDHfJPknEEUAfZZZaz2j1bIUp5kLzBQg+fHlU dbJlJUy6i7GRBki6OAostKE3mWd4ZQtlFpqzOXD8IJVCTii84ITCHrTkpfs0EGqEevCC Orpi5qEI9WbbU3zdMO/wtodbdQY1Gexy8MUXlg3IGV+a1XGP6lhKzh3mPWHlyvZraLdG BPPJQeXI6mDCA/AlTml4CIrMSVYSXx70DeZ/nBLSwJ9OC39o8hX7Im/jg9PpuT/9iv0Y u9aVfqbrd4n0xbk5VBsyIfb8Rf7Bbam0MtMevER4A3YCHuMZPgUYCkevPtp9XRchweaj y48g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pwVFI2DH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i6si15543222pgq.608.2022.02.09.05.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:58:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pwVFI2DH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 32D21E03A558; Wed, 9 Feb 2022 02:36:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232234AbiBIJyn (ORCPT + 99 others); Wed, 9 Feb 2022 04:54:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233679AbiBIJyi (ORCPT ); Wed, 9 Feb 2022 04:54:38 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0604DE0D58B7 for ; Wed, 9 Feb 2022 01:54:31 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 3C5BEB81FDD for ; Wed, 9 Feb 2022 09:48:03 +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-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org '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: */ -- 2.17.1