Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1653427ybm; Thu, 23 May 2019 04:49:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDiSRL3uNe9+IXOA6p68Q001QtvDRv54/9uP07dRMwdKxPlnM1kqN/9WcHt46CEtylWJzb X-Received: by 2002:a63:eb50:: with SMTP id b16mr22104663pgk.150.1558612147917; Thu, 23 May 2019 04:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558612147; cv=none; d=google.com; s=arc-20160816; b=dKPvReYCFkGfEg/fPS7lYdziUIxGzzSoxrXt37V2snmKO0zy/47HrMP51fHmC4Jzbn kxUbHGJ69m/vOtg+DAglr1xM4icoKKtfpz8II3NN0KNOXf+nWc2oAk5i+/mxDf+bW3U7 L/wEkNheyNXUlKAex7Cm+Hc/Zcwsmxyi9kipPFVK6vBuE6O5BnqADLGisgkF8DdkP39S U+PorgJe58vJaLJnDHPq6rouvnAlcr3ftEX1KCJ3WaXUdAffR0OWKpOIZVXpMbE6Rj4m 9U5zNOMtLmVgLRbmAGKr42DwA5CbK9v7+hgNL39kAYkTX5TLr6bSzK3e4GPJ9QPyXAeT tiig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9YqtCW0tbRef0Fm5cqvSOdlCFpzkVDTaJgcqIQyiBT8=; b=mgCE+kOilPbmzBAuFkQh56dKGTkc8YYsgc9b9IFFdqypYm/KKfoPPV9/+nfdQs1xI0 Ok/5RmNgelIEMZKh4RTWDg66nVnsNTw71NmMYta/Q00ynZnxsvGoLXwmH2I06mOsYBUa Yph6xzR7xgd3jSF/D2Ns4iVxaYOvIqGKiEUBISvfA08rtBgMrdZT0De4+/YcR1KSq4DD wy5HZTRv5NmEOJXpghyGd5OShS0BdTa6h7SAH8Kmzgq73GTiegK7Fok1H1hLI34nUqv9 8JVkbFGDdhF9AV+NEANvug9dJDiflMd5EsFUJL6Tgmxx2qfUwVEXaeZcFXLO2MpiofEr KXQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vIq7tLlX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e67si14678482pgc.11.2019.05.23.04.48.51; Thu, 23 May 2019 04:49:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vIq7tLlX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730589AbfEWLro (ORCPT + 99 others); Thu, 23 May 2019 07:47:44 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41276 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729949AbfEWLro (ORCPT ); Thu, 23 May 2019 07:47:44 -0400 Received: by mail-wr1-f66.google.com with SMTP id u16so2039280wrn.8; Thu, 23 May 2019 04:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9YqtCW0tbRef0Fm5cqvSOdlCFpzkVDTaJgcqIQyiBT8=; b=vIq7tLlXXXDRV0gFGARjH6SvTg2BRhRk+p7+wzeII7TToU58ZIRP19lTK0gPptdRKm 6Qzk8l9R1faq5Z7bl1f+koGGaIjDcALA+jsrK5hJAvxR6Y+4p0igiPcj4pi9U56g1DnR EK0zS6hPscmlDdrQHPgtuJQR2o2Pq7kBF5G/8npIHz1ejhYwEQlrhEjg3n4GqGXAYmh6 PUSfodzylh10zl+/38JW9GzShsYD6cxcw7009XvIoHMY4YYpDrXY085RMj20c7+YIafa DbKOw7r6H/NTN32XAvF6fUC5LjsYdimAXsRBZoTzBe98fDKZuCyVCkMxp2VYPBkh+rmK 0V7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=9YqtCW0tbRef0Fm5cqvSOdlCFpzkVDTaJgcqIQyiBT8=; b=bQLSZnv6eKEZm52uLp3Qku3RxMvhM9Vq9KolX0IvGuMatyb1eisuOAZJD2/xG13a/1 O2Dxpv8+cfV35hyX/WsRAVTVfHTkJflNWGaXcHfNoTywbVk1xkQO9VY2UJykslVuE0cF t/JAA2UgNdvwymRDjJVOqp9Rcgwu5ApZPpl93JPFfdUgvn+TnzEmZgdlOUMPq4tKyTl8 o9zPiaydIyhj5XoK362zCMmRihQ7PvO3uaplHaBzrFaDx6vQUEgh9tpyEgbe9diB6Xyf mH9tV54bLsw1fkUzOA/rYXW/qkUrCB/CXvxsULD0kTPVGUXAvZ28p4HdoBnh3x6Uvzo/ OwgA== X-Gm-Message-State: APjAAAUaiCWOiCyjxwRVeZFUUnrctIfW429oTouQHroZboXkuDtC8jqs 5+uFj4xHETytNHVPdhHsGUo= X-Received: by 2002:a5d:4b52:: with SMTP id w18mr329581wrs.262.1558612061895; Thu, 23 May 2019 04:47:41 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id x68sm9075665wmf.13.2019.05.23.04.47.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 May 2019 04:47:40 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id D6B341146D57; Thu, 23 May 2019 13:47:39 +0200 (CEST) From: Mathieu Malaterre To: Michael Ellerman Cc: Mathieu Malaterre , Benjamin Herrenschmidt , Paul Mackerras , "Rafael J. Wysocki" , Len Brown , Pavel Machek , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH] powerpc/power: Expose pfn_is_nosave prototype Date: Thu, 23 May 2019 13:47:36 +0200 Message-Id: <20190523114736.30268-1-malat@debian.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The declaration for pfn_is_nosave is only available in kernel/power/power.h. Since this function can be override in arch, expose it globally. Having a prototype will make sure to avoid warning (sometime treated as error with W=1) such as: arch/powerpc/kernel/suspend.c:18:5: error: no previous prototype for 'pfn_is_nosave' [-Werror=missing-prototypes] This moves the declaration into a globally visible header file and add missing include to avoid a warning in powerpc. Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/suspend.c | 1 + include/linux/suspend.h | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/suspend.c b/arch/powerpc/kernel/suspend.c index a531154cc0f3..9e1b6b894245 100644 --- a/arch/powerpc/kernel/suspend.c +++ b/arch/powerpc/kernel/suspend.c @@ -8,6 +8,7 @@ */ #include +#include #include #include diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 3f529ad9a9d2..2660bbdf5230 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h @@ -395,6 +395,7 @@ extern bool system_entering_hibernation(void); extern bool hibernation_available(void); asmlinkage int swsusp_save(void); extern struct pbe *restore_pblist; +int pfn_is_nosave(unsigned long pfn); #else /* CONFIG_HIBERNATION */ static inline void register_nosave_region(unsigned long b, unsigned long e) {} static inline void register_nosave_region_late(unsigned long b, unsigned long e) {} -- 2.20.1