Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5277953img; Wed, 27 Mar 2019 05:42:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT3RpD+GqIVfira95NAC9GiBAihDbtQ2g0Xn9QEMlwrqfBXO8ifVHpUFGs76Wptxr9WMOl X-Received: by 2002:a63:5057:: with SMTP id q23mr4985525pgl.30.1553690553016; Wed, 27 Mar 2019 05:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553690553; cv=none; d=google.com; s=arc-20160816; b=FdTxC2z5gggy9LRakYU7yCs7BZW0gPEOdX/fJsTFOtM7fKvp5+/Dk9mAtac2akX1kJ baowJ3F4uYfgTVKRZ7Wom1OM8cvwa1JVNF37tIEmjhpIEqqMy8q2yl5xXL0kFoZ2zkBJ B89VfH5bqlH18opsQFFP3EUIYPp+3mRhZnAbrApORDwIepu9dx9EVjlpm5z7XPr20KQw fcCWCK0mGZUr596thR37jML24NCCkBHBt/xMq3wgMq8wDKH/tHjgU6+yTzo+WA3Bx6yP p5Xviu24GgrhDtRJ4NmahAsXaytAcI4szZirP0w1o8CY5I3DK/DpzUpC/Sj/nFRZSRJx zPcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=uvv2hiludsxBisA8e3b9ZQtw2qOAcE3ONHfizS7Xnko=; b=yg2nIw8o/+IwZRC4hCzYjZHqb6QXKYqugOXUWORY1s39tYUQD8DGmeTJ/gBfMfKru9 C1ILDhkNrG3kgBwMKIONxdb8Dq8xdSAt/lWTtwNkVeWyI2ld6Orsrr4NNXNjD6fpsnga 0Z14dk9KctEtl/+0YAUPUNPQNSeP+LFJrPqitggAFNihrzrcYEAU+LhjKlvTUZkxLIbk xxIGD9y+cT8C0yP50X2MXTvhDAN1X1EKVcyvohC3Xj8e/urSUdRALftPCGQqg0X6wGaP 5U8Ad5roygmIMTJv5OnAwf6k347PBOHvJLidc0XSJbNZiekm5CxW0JVdLdWFk9KT/YiQ Arqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Mstv5TFB; dkim=pass header.i=@codeaurora.org header.s=default header.b=jsj15c9n; 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 t15si7780009pgq.235.2019.03.27.05.42.18; Wed, 27 Mar 2019 05:42:33 -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=pass header.i=@codeaurora.org header.s=default header.b=Mstv5TFB; dkim=pass header.i=@codeaurora.org header.s=default header.b=jsj15c9n; 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 S1728905AbfC0MkX (ORCPT + 99 others); Wed, 27 Mar 2019 08:40:23 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58966 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfC0MkX (ORCPT ); Wed, 27 Mar 2019 08:40:23 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6E1406110F; Wed, 27 Mar 2019 12:40:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553690421; bh=gu22IK+ceBqf34ra5I+e64bhENf1yfc3lQmxCHMao8c=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Mstv5TFBsZbqRrBQNO8YKg0S+vpdy1dwhVWIWrrHwks2ShfiRedk3n5WGHisg7DyP 7IT5vsKAj51vXr3uZC0e9sBhVbG7OShHiSv5xgyGxK5Ftcw+trJ2cxe+VHUxOl1jLR AZDbh0IJP4ulBIolW7OOdezmpyy6m7Bh/t5+vwVs= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.204.79.83] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 44CD460A42; Wed, 27 Mar 2019 12:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553690419; bh=gu22IK+ceBqf34ra5I+e64bhENf1yfc3lQmxCHMao8c=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=jsj15c9nOE1FSkXziPQKwSGDu2V+K7LHYL2BVRGA4Tuy4kxGqnZpgamAbL2DGUYfq 29M+s5I819Kx5AAmb2L0jsigS9Anu6J88FU8aapywkSTMDU7dOPAPnG57b1a2UUfeT Oy78DiHokmHo6rrytYVzkfxWm1QNe1a/eHG6e59c= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 44CD460A42 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org Subject: Re: [PATCH v2 1/2] powerpc: Make some functions static To: Mathieu Malaterre , Michael Ellerman Cc: Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20190312203140.31785-1-malat@debian.org> <20190326204720.18882-1-malat@debian.org> From: Mukesh Ojha Message-ID: <144a0b47-184c-94ab-caa7-fbf15cfb3b4d@codeaurora.org> Date: Wed, 27 Mar 2019 18:10:12 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <20190326204720.18882-1-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/27/2019 2:17 AM, Mathieu Malaterre wrote: > In commit cb9e4d10c448 ("[POWERPC] Add support for 750CL Holly board") > new functions were added. Since most of these functions can be made static, > make it so. > > Both holly_power_off and holly_halt functions were not changed since they > are unused, making them static would have triggered the following warning > (treated as error): > > arch/powerpc/platforms/embedded6xx/holly.c:244:13: error: 'holly_halt' defined but not used [-Werror=unused-function] > > Silence the following warnings triggered using W=1: > > arch/powerpc/platforms/embedded6xx/holly.c:47:5: error: no previous prototype for 'holly_exclude_device' [-Werror=missing-prototypes] > arch/powerpc/platforms/embedded6xx/holly.c:190:6: error: no previous prototype for 'holly_show_cpuinfo' [-Werror=missing-prototypes] > arch/powerpc/platforms/embedded6xx/holly.c:196:17: error: no previous prototype for 'holly_restart' [-Werror=missing-prototypes] > > Signed-off-by: Mathieu Malaterre Reviewed-by: Mukesh Ojha > --- > v2: Split the patch in two operations > > arch/powerpc/platforms/embedded6xx/holly.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/arch/powerpc/platforms/embedded6xx/holly.c b/arch/powerpc/platforms/embedded6xx/holly.c > index 0409714e8070..9d2eefef7b7b 100644 > --- a/arch/powerpc/platforms/embedded6xx/holly.c > +++ b/arch/powerpc/platforms/embedded6xx/holly.c > @@ -44,7 +44,8 @@ > > #define HOLLY_PCI_CFG_PHYS 0x7c000000 > > -int holly_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) > +static int holly_exclude_device(struct pci_controller *hose, u_char bus, > + u_char devfn) > { > if (bus == 0 && PCI_SLOT(devfn) == 0) > return PCIBIOS_DEVICE_NOT_FOUND; > @@ -187,13 +188,13 @@ static void __init holly_init_IRQ(void) > tsi108_write_reg(TSI108_MPIC_OFFSET + 0x30c, 0); > } > > -void holly_show_cpuinfo(struct seq_file *m) > +static void holly_show_cpuinfo(struct seq_file *m) > { > seq_printf(m, "vendor\t\t: IBM\n"); > seq_printf(m, "machine\t\t: PPC750 GX/CL\n"); > } > > -void __noreturn holly_restart(char *cmd) > +static void __noreturn holly_restart(char *cmd) > { > __be32 __iomem *ocn_bar1 = NULL; > unsigned long bar;