Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp327103pxb; Thu, 5 Nov 2020 00:40:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxfZOToGQrkLFYcfkzgx8PLrp7rmsOu1kzl/UK0BIDBXXtcwDF8dW8SeAamvH9Jr8xZLay X-Received: by 2002:a50:fa92:: with SMTP id w18mr1425282edr.44.1604565629189; Thu, 05 Nov 2020 00:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604565629; cv=none; d=google.com; s=arc-20160816; b=XtlE7CFAABQZ3ViTRolM20oq7Dr3IoMkQn00gL4yRQuIxDy3KyVg8z3K1CUUVjhaQG D7pybvADlLkHJCe0S4qrMMfwlAzjEJaBn+PffV4S3voq+hWtTr30049Q5Qhj1LP/D75b 2CUjHBSIXMnTGV3x8WbeFcYEcOYBR7r8jShm9/AvaR6XSV8t5I9x+Yqv/1jkkE+z0HfZ rcpY00hrXpgUVM4iHqVQtazChP1t7Upq2itz8Dh1DGjj2r+Bpd2+vABvypcBvmzPxE7H XPEStGBSjbDi7LYkvyys5y5wAXJ72ItVK0ouD4VjEtO/o4R2wmBxxWp35ngoGDZwbJgf /M4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=otFckZIXS18ZjK9MEqOur4ngqmLv0/zND2eNmr8zaUU=; b=SwtC4XLjswf2IVQNHjRXgfn5UC8fMg5AgzqX6nUpAhIXyOvKpr3IgC7XV12bx/3kJ/ Lfq+uUjm6VN9ABV99j1lDDJTRqt0GUN9unK2S6rT2vKkzbePLU5JiyTugaQn5o8+Tyse snMGNpTnpEAhT+sXMCNLPmz6iSDsTd2M3ALkh8Cca5SDGc99l8wpBoxkVF1rleW0+z/Z vYEPLa1G8gMkyzb53CFNUFRGAKCUF94lNd2FRXzD+uXXFx0NqFSa8fK/rs6VqFyrf7Et D22AGx1u54iXrmvzomMr589pux6xdQw4M9bO4eRth2zF/w0mQMDz0M3QK88SamsO8YYz IcVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UV5ABRhp; 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 k20si622516edk.392.2020.11.05.00.40.06; Thu, 05 Nov 2020 00:40:29 -0800 (PST) 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=UV5ABRhp; 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 S1726849AbgKEIit (ORCPT + 99 others); Thu, 5 Nov 2020 03:38:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725287AbgKEIis (ORCPT ); Thu, 5 Nov 2020 03:38:48 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52611C0613CF for ; Thu, 5 Nov 2020 00:38:48 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id x12so710545wrm.8 for ; Thu, 05 Nov 2020 00:38:48 -0800 (PST) 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=otFckZIXS18ZjK9MEqOur4ngqmLv0/zND2eNmr8zaUU=; b=UV5ABRhpQmAOptW3q1HYavNDWUwFaOf0baHBw+piJrIQg6p8VaXGRwzK5j/6sU5U8X x61Wh6IPT1RBrtmP2cFfZhtbUxG2tLh/v5W+WDLlkbFg49OEY78P1+VONAsJp0SBfjD1 6TGpBEyJuLkqoOwETI9ONmtRjINrlM0zqgwH1h1ILZL0xKW3l2vlrKKaAhwJLeHEBSWm re5Vy8ilPX8FGyBup2ufBo6ROWI6OZAwRk6DYIaVW27nq3npXGpbFWyout+PukZTGD8z 7wTzcRtpKdxrToRCO0t5CMsfKcnFHfdogfVzfKCjjZ4V6aaOYDYkX07w/bYPd2WwXDu4 9rig== 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=otFckZIXS18ZjK9MEqOur4ngqmLv0/zND2eNmr8zaUU=; b=WjlKzVPbCDujyIrd3duZshXyi9RIcvLO8s3f7IN3qP19BjfgOqLxTfK9A3FYoW1Llu AAjKohpO9s3M87xDevooxdAskfDlN3jX9pdqQuPRErnoe2ldnENuigpfNZQdwKlUbjIR jUBR4Vn9paFhrQcKTZNTcY2yNj36b2FYkwLaCVsWDuMF9QLLzJgQuhQ43Z+5+gtxOZlP SKuwfoSGlyhqgGDgT2XGgNM/NC7tnH5KLRHAvHvj5zElVoOJPCvTgLIaqwwb8V9RtZq0 Z5QTg8mVwNvNFI5GbH31lqVFxSZQ4yKHG0kDLc7wO6oPujBTi5xR8KzqksaC7TVCefIT mxuQ== X-Gm-Message-State: AOAM5313oAePBUXoW6eqxD6SlacnXrdubWP+OhCBbJYbAteR6GuidZkg CYT1E8xm1YVNDX73byKymlnY9A== X-Received: by 2002:adf:e443:: with SMTP id t3mr1544244wrm.14.1604565527069; Thu, 05 Nov 2020 00:38:47 -0800 (PST) Received: from dell ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id w1sm1485228wro.44.2020.11.05.00.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 00:38:46 -0800 (PST) Date: Thu, 5 Nov 2020 08:38:44 +0000 From: Lee Jones To: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, Paul Mackerras , linux-kernel@vger.kernel.org Subject: Re: [PATCH 31/36] powerpc: asm: hvconsole: Move 'hvc_vio_init_early's prototype to shared location Message-ID: <20201105083844.GX4488@dell> References: <20201104193549.4026187-1-lee.jones@linaro.org> <20201104193549.4026187-32-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 05 Nov 2020, Christophe Leroy wrote: > > > Le 04/11/2020 à 20:35, Lee Jones a écrit : > > Fixes the following W=1 kernel build warning(s): > > > > drivers/tty/hvc/hvc_vio.c:385:13: warning: no previous prototype for ‘hvc_vio_init_early’ [-Wmissing-prototypes] > > 385 | void __init hvc_vio_init_early(void) > > | ^~~~~~~~~~~~~~~~~~ > > > > Cc: Michael Ellerman > > Cc: Benjamin Herrenschmidt > > Cc: Paul Mackerras > > Cc: linuxppc-dev@lists.ozlabs.org > > Signed-off-by: Lee Jones > > --- > > arch/powerpc/include/asm/hvconsole.h | 3 +++ > > arch/powerpc/platforms/pseries/pseries.h | 3 --- > > arch/powerpc/platforms/pseries/setup.c | 1 + > > 3 files changed, 4 insertions(+), 3 deletions(-) > > > > diff --git a/arch/powerpc/include/asm/hvconsole.h b/arch/powerpc/include/asm/hvconsole.h > > index 999ed5ac90531..936a1ee1ac786 100644 > > --- a/arch/powerpc/include/asm/hvconsole.h > > +++ b/arch/powerpc/include/asm/hvconsole.h > > @@ -24,5 +24,8 @@ > > extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); > > extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count); > > +/* Provided by HVC VIO */ > > +extern void hvc_vio_init_early(void); > > + > > Declaring a prototype 'extern' is pointless. Don't add new misuse of 'extern' keyword. No new code (misuse or otherwise) is being added in this patch. It's just moved from one place to another. I can also strip out 'extern' if it's preferred. > > #endif /* __KERNEL__ */ > > #endif /* _PPC64_HVCONSOLE_H */ > > diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h > > index 13fa370a87e4e..7be5b054dfc36 100644 > > --- a/arch/powerpc/platforms/pseries/pseries.h > > +++ b/arch/powerpc/platforms/pseries/pseries.h > > @@ -43,9 +43,6 @@ extern void pSeries_final_fixup(void); > > /* Poweron flag used for enabling auto ups restart */ > > extern unsigned long rtas_poweron_auto; > > -/* Provided by HVC VIO */ > > -extern void hvc_vio_init_early(void); > > - > > /* Dynamic logical Partitioning/Mobility */ > > extern void dlpar_free_cc_nodes(struct device_node *); > > extern void dlpar_free_cc_property(struct property *); > > diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c > > index 633c45ec406da..6999b83f06612 100644 > > --- a/arch/powerpc/platforms/pseries/setup.c > > +++ b/arch/powerpc/platforms/pseries/setup.c > > @@ -71,6 +71,7 @@ > > #include > > #include > > #include > > +#include > > #include "pseries.h" > > #include "../../../../drivers/pci/pci.h" > > > > Christophe -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog