From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB452C433E1 for ; Wed, 15 Jul 2020 07:33:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C76DB2067D for ; Wed, 15 Jul 2020 07:33:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XLfbeliQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729281AbgGOHdL (ORCPT ); Wed, 15 Jul 2020 03:33:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728888AbgGOHdK (ORCPT ); Wed, 15 Jul 2020 03:33:10 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FD2BC061755 for ; Wed, 15 Jul 2020 00:33:10 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f7so1349806wrw.1 for ; Wed, 15 Jul 2020 00:33:10 -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=hM091SKSvO7aEki+ShPx5ILMjs/Q5rxIkZVDYBOV96UAQKZoViWJHwiQVx7PEISrot 9WTknaHfLcrx4A1/2Tywjhdpc8mX2smd1z9ezlVl5Ac8puQ4bklDDandh+MD7v9cKKfc W6LOYRIp7sF25clgIa21zE9ds8Bu+2SPxRmPsOlaMK+3ECXwXsmMw1UGR0oe4/ETRITj xkyhC7dZ7VpPsEhVzuMwdPO1R+AyjTCpJRDsVpxYDe9eQHwMcgkxpm4QAvnz/tfV0dHE D69YA1dBfSC6eROWAQBMMFIEPfKFYl5n46gd990laF80jQA6XGaPE4Udi5PdNpRlw0ge 8dyA== X-Gm-Message-State: AOAM530pMsMVpDa57F1WtJqb9F5QcXi075XxO+T87V2zTtuhSTFv+frc 1/vKNvTUTEbKVN9I9r3qMX2BjZiSq6s= X-Google-Smtp-Source: ABdhPJx/db+3VnXHf7RP7JypvYwr4I9OcFDVh94EnRiCQpX8HDA6f6Aeq7Q8V2SEw5anyKtMc+TKsQ== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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