Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5183229ybi; Tue, 28 May 2019 08:51:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOSotAry117jRsC9gDMNnBZL7lMjQCpLPsYIMKaRvZwiQiW/Ysug33VQJr1ob43D9xBUGG X-Received: by 2002:a65:614d:: with SMTP id o13mr47759667pgv.309.1559058712423; Tue, 28 May 2019 08:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559058712; cv=none; d=google.com; s=arc-20160816; b=tnnQgX1rHpqDjBdytm+uUUhKQt3S27EqmXz9ohOrD2SEbDU+q1aRzeGxm+YN+KcqOP rkFv2I54LsXv1jWwaCUSc36wuGs5yf0XYIekQwk0hQFNGGBc6vZ7+xpvpBqeb4+deyO+ ySD43nx/AEo2YRbkioovnxSVponf+QcX1+WnWhNZCoAzFi/Af8RK3a6BiaYImLZF5D4f cslgB+JUHNWuW13milhv7QQjHDzWLZXSJecyR0GG/pZAYnS7I4eX7TMEc3GRCaZqxsTC 59mT8RlC9lILD7vYdLx2GHRB9mjDN/eO6GIaFyxC16bQN+gwCNMYrYQRipxyGrcyd3Wk CirA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RIINjOdbgAAoX9+kzMkj3NO/Utpp3Iv7ZiJILdWUQgQ=; b=fuNUksvdkkmDMjSdaiIZAi4RDvrZ2o6Mdse4+oudaFCVIavA80NqgST/un93S/08qk CJLZhol6Cx6cGDxCx0QkMl5JbtetLgEnuIzERV7O/MhcY3SSbogEGPSGa07T33AN1y+r 7MRW5e0f7vDlWVWVa64pOiXhViyPVjjVSW+WxBDVqpJmMxlUcXwvWfkCVGWYVJljOtii FATDT5qfJZtIFToriboCX7BdRttRKEhj8BdF206xIKP3vQgQXLiFtib+NzYVe/11TLzE dtuUEj/JH5L+kSge5+jxaT/KUYkIadRC4akRUki27IomODXXuaz4pQ8B9KT94Bp2LsE/ vOxw== ARC-Authentication-Results: i=1; mx.google.com; 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 t125si23207149pgc.528.2019.05.28.08.51.35; Tue, 28 May 2019 08:51:52 -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; 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 S1726841AbfE1PtC (ORCPT + 99 others); Tue, 28 May 2019 11:49:02 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:59632 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbfE1PtC (ORCPT ); Tue, 28 May 2019 11:49:02 -0400 Received: from 79.184.255.225.ipv4.supernova.orange.pl (79.184.255.225) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.213) id f088da01f68d15dd; Tue, 28 May 2019 17:48:59 +0200 From: "Rafael J. Wysocki" To: Michael Ellerman Cc: Mathieu Malaterre , Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , Pavel Machek , Len Brown , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v2] powerpc/power: Expose pfn_is_nosave prototype Date: Tue, 28 May 2019 17:48:58 +0200 Message-ID: <7467366.tOSDWnDKPa@kreacher> In-Reply-To: <875zpvqsy9.fsf@concordia.ellerman.id.au> References: <20190523114736.30268-1-malat@debian.org> <1929721.iDiXxTFbjN@kreacher> <875zpvqsy9.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, May 28, 2019 3:16:30 AM CEST Michael Ellerman wrote: > "Rafael J. Wysocki" writes: > > On Friday, May 24, 2019 12:44:18 PM CEST Mathieu Malaterre wrote: > >> 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 on powerpc. Also remove the > >> duplicated prototypes since not required anymore. > >> > >> Cc: Christophe Leroy > >> Signed-off-by: Mathieu Malaterre > >> --- > >> v2: As suggestion by christophe remove duplicates prototypes > >> > >> arch/powerpc/kernel/suspend.c | 1 + > >> arch/s390/kernel/entry.h | 1 - > >> include/linux/suspend.h | 1 + > >> kernel/power/power.h | 2 -- > >> 4 files changed, 2 insertions(+), 3 deletions(-) > >> > >> diff --git a/kernel/power/power.h b/kernel/power/power.h > >> index 9e58bdc8a562..44bee462ff57 100644 > >> --- a/kernel/power/power.h > >> +++ b/kernel/power/power.h > >> @@ -75,8 +75,6 @@ static inline void hibernate_reserved_size_init(void) {} > >> static inline void hibernate_image_size_init(void) {} > >> #endif /* !CONFIG_HIBERNATION */ > >> > >> -extern int pfn_is_nosave(unsigned long); > >> - > >> #define power_attr(_name) \ > >> static struct kobj_attribute _name##_attr = { \ > >> .attr = { \ > >> > > > > With an ACK from the powerpc maintainers, I could apply this one. > > Sent. Thanks!