Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp248571ybh; Wed, 15 Jul 2020 00:34:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcF61XAWA46upPdZFpcJMmQnIC5U4Ri8lzU8CX4hCoS1gcil+nxz4k/9bilvHeRy0zES3Q X-Received: by 2002:a05:6402:3113:: with SMTP id dc19mr8380743edb.20.1594798483637; Wed, 15 Jul 2020 00:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594798483; cv=none; d=google.com; s=arc-20160816; b=q1Nc6+2zZhTFMfsLwGTp48Ai//TdxxGpPxbwu13ZFeveAWKgrNKj6bBrxi3IAdQ3YS 69xS16Y/qHM9XAhtf25zy9wP2WsBBS0Qw2JKRVIAK5eWMtyP+5rQih3wil2Xvxlqgf0l wULZYhTMLvKALm6GM4lw+LyI1TjIheABn0ZgH13HL+mfj9c4ZDf11NkkPdbmuLbyy2QJ cVLHuazp/XMZh/sFRLeJP4dVe6LXoDqGVyPYhSyYmsYopcsHTktJFlczZEnTachWAUER 8trf6ZlekIutd/ZRDNE1kQ+esIzzTUNPjFckt5/oDNcUq79dIdovquGocXVB+wfsWgCu VYAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wmbKlH24uvS6PFbXX3LEAN6VBDJeDWBV7/Mc/Rg+Ty0=; b=V5zvJvgO6PCmj7iQCy3NEwJT9/VhXA0NHrNE9OpVGGR6C5gsT4p/PHq1gV/XVLQ0Zu egG+mnuSIjSU5+q02cp6kInllusEKTVXdKecVIVI18gWCqkir6f+ijFG7pWC5BT1Wpao N1ttVBCsPQk1MgxM1RQyT0IXEqfdBZ3dPcmX5zfG8u3aTNd7cPCZzwZ/As6g+C6+MSuq iKpLS2odTq33vYl1LF05oGq8ctQpSP6ummmdTgsgYA475Wa+IqmL+4SeEPQdq8dWxmxd yNR7A92ysDZ1D+nfsdwv3Pxs4pagPgdWV5iRpy59IdcHxRMYzVOgm1LIdhsxFqqY5K28 /H/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XLfbeliQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si738542eju.41.2020.07.15.00.34.19; Wed, 15 Jul 2020 00:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XLfbeliQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729181AbgGOHdK (ORCPT + 99 others); Wed, 15 Jul 2020 03:33:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728888AbgGOHdJ (ORCPT ); Wed, 15 Jul 2020 03:33:09 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715EFC061755 for ; Wed, 15 Jul 2020 00:33:09 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id o11so1284038wrv.9 for ; Wed, 15 Jul 2020 00:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=wmbKlH24uvS6PFbXX3LEAN6VBDJeDWBV7/Mc/Rg+Ty0=; b=XLfbeliQBIxfzuEdJ6BSJN0hTG5AH+Aps/ocThG1hmBXHOwiBv45/K/zlKEuf1FVGq pF1HSnrGly3PhOw2wqEuut+AP/2ABNiXyggcJ8kw6Jx1tqbL5UtDS2MJ48ewoqiLF/wo Y9IL+MpB5iy9hwA/cmHZP4PAzZBnCzMQcy4Qafg+NNzv2oog5elXkFBWQXXnj0kdqd7H k1/v3yGQBi0W8YHQtFhPYH5XbXxJyJzWNojpzTYGqkF/8Lkqqs5jGMd39PtNdoJx7LAb d4g3LSArT8GxnVpNKJYmmHQ/HNyaHNhbJ4wvGjujosza+LaHlG1FIksuYvHoL+9r9BMy R4JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=wmbKlH24uvS6PFbXX3LEAN6VBDJeDWBV7/Mc/Rg+Ty0=; b=t3B9IterKpyGrMVhbiZxwtM4qF6MT4lzhRHOGuEutQOnqks7sSzoUqb5pxdDTRT9lH oQ1ve6wbTf4JmGNfITJZ1zwRK2FFMQjHiuriqQIaU7Fp44LTKbJZsHtsj8R9tCH1g9/p m0ypdNeXK1I+BqgtZ+nhRgmTkmbcH2BQrdwJAwbSuXrhpE3Wn3e6IqJQIduVTNJe0jq4 sXjlGrvsSTFfFVHjA/0aohoMDaWjxCSk8i5M4t566R4NCljAoq9eJBkttC4JqoSY3Ir+ nHFbf72lAJaAxmUSKT43p7DWLVnY/BfcxWOwaAHf0DbfKxBlQlMngWLbKSn+gHZmofXa /0Mw== X-Gm-Message-State: AOAM531bDMHqUDJceTrGiX+I9pIo14/AwPuHiG4Dwd4EBXa0YD3Lthc3 QhYq0rmrkhcKIEYNTSfWBCGWwg== X-Received: by 2002:adf:a111:: with SMTP id o17mr9606713wro.257.1594798388100; Wed, 15 Jul 2020 00:33:08 -0700 (PDT) Received: from dell ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id c194sm2143003wme.8.2020.07.15.00.33.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 00:33:07 -0700 (PDT) Date: Wed, 15 Jul 2020 08:33:05 +0100 From: Lee Jones To: Olof Johansson Cc: "Rafael J. Wysocki" , viresh kumar , Linux ARM Mailing List , Linux Kernel Mailing List , linux-pm@vger.kernel.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev Subject: Re: [PATCH 05/13] cpufreq/arch: powerpc: pasemi: Move prototypes to shared header Message-ID: <20200715073305.GY1398296@dell> References: <20200714145049.2496163-1-lee.jones@linaro.org> <20200714145049.2496163-6-lee.jones@linaro.org> <20200715063311.GP1398296@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Jul 2020, Olof Johansson wrote: > On Tue, Jul 14, 2020 at 11:33 PM Lee Jones wrote: > > > > On Tue, 14 Jul 2020, Olof Johansson wrote: > > > > > On Tue, Jul 14, 2020 at 7:50 AM Lee Jones wrote: > > > > > > > > If function callers and providers do not share the same prototypes the > > > > compiler complains of missing prototypes. Fix this by moving the > > > > already existing prototypes out to a mutually convenient location. > > > > > > > > Fixes the following W=1 kernel build warning(s): > > > > > > > > drivers/cpufreq/pasemi-cpufreq.c:109:5: warning: no previous prototype for ‘check_astate’ [-Wmissing-prototypes] > > > > 109 | int check_astate(void) > > > > | ^~~~~~~~~~~~ > > > > drivers/cpufreq/pasemi-cpufreq.c:114:6: warning: no previous prototype for ‘restore_astate’ [-Wmissing-prototypes] > > > > 114 | void restore_astate(int cpu) > > > > | ^~~~~~~~~~~~~~ > > > > > > > > Cc: Olof Johansson > > > > Cc: Michael Ellerman > > > > Cc: Benjamin Herrenschmidt > > > > Cc: Paul Mackerras > > > > Cc: linuxppc-dev@lists.ozlabs.org > > > > Signed-off-by: Lee Jones > > > > --- > > > > arch/powerpc/platforms/pasemi/pasemi.h | 15 ------------ > > > > arch/powerpc/platforms/pasemi/powersave.S | 2 ++ > > > > drivers/cpufreq/pasemi-cpufreq.c | 1 + > > > > include/linux/platform_data/pasemi.h | 28 +++++++++++++++++++++++ > > > > 4 files changed, 31 insertions(+), 15 deletions(-) > > > > create mode 100644 include/linux/platform_data/pasemi.h > > > > > > > > diff --git a/arch/powerpc/platforms/pasemi/pasemi.h b/arch/powerpc/platforms/pasemi/pasemi.h > > > > index 70b56048ed1be..528d81ef748ad 100644 > > > > --- a/arch/powerpc/platforms/pasemi/pasemi.h > > > > +++ b/arch/powerpc/platforms/pasemi/pasemi.h > > > > @@ -15,21 +15,6 @@ extern void __init pasemi_map_registers(void); > > > > extern void idle_spin(void); > > > > extern void idle_doze(void); > > > > > > > > -/* Restore astate to last set */ > > > > -#ifdef CONFIG_PPC_PASEMI_CPUFREQ > > > > -extern int check_astate(void); > > > > -extern void restore_astate(int cpu); > > > > -#else > > > > -static inline int check_astate(void) > > > > -{ > > > > - /* Always return >0 so we never power save */ > > > > - return 1; > > > > -} > > > > -static inline void restore_astate(int cpu) > > > > -{ > > > > -} > > > > -#endif > > > > - > > > > extern struct pci_controller_ops pasemi_pci_controller_ops; > > > > > > > > #endif /* _PASEMI_PASEMI_H */ > > > > diff --git a/arch/powerpc/platforms/pasemi/powersave.S b/arch/powerpc/platforms/pasemi/powersave.S > > > > index d0215d5329ca7..7747b48963286 100644 > > > > --- a/arch/powerpc/platforms/pasemi/powersave.S > > > > +++ b/arch/powerpc/platforms/pasemi/powersave.S > > > > @@ -5,6 +5,8 @@ > > > > * Maintained by: Olof Johansson > > > > */ > > > > > > > > +#include > > > > + > > > > #include > > > > #include > > > > #include > > > > diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c > > > > index c66f566a854cb..c6bb3ecc90ef3 100644 > > > > --- a/drivers/cpufreq/pasemi-cpufreq.c > > > > +++ b/drivers/cpufreq/pasemi-cpufreq.c > > > > @@ -15,6 +15,7 @@ > > > > #include > > > > #include > > > > #include > > > > +#include > > > > > > > > #include > > > > #include > > > > diff --git a/include/linux/platform_data/pasemi.h b/include/linux/platform_data/pasemi.h > > > > new file mode 100644 > > > > index 0000000000000..3fed0687fcc9a > > > > --- /dev/null > > > > +++ b/include/linux/platform_data/pasemi.h > > > > @@ -0,0 +1,28 @@ > > > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > > > +/* > > > > + * Copyright (C) 2020 Linaro Ltd. > > > > + * > > > > + * Author: Lee Jones > > > > + */ > > > > > > Absolutely not. It's neither your copyright, nor your authorship. > > > > The file was new. Anyway, the point is now moot. > > The contents was copied and pasted from other material, not originally > produced by you. > > I suggest you consult with Linaro lawyers on how to handle this if you > have to do something like it in the future. Very well. Thanks for the heads-up. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog