Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4650218img; Tue, 26 Mar 2019 13:48:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqywXp2HFFsv2RCQTtpnZwishbG0l+9BxP+88D29tXgZIkThnLY6AXTNMnn043w/baBrZZMv X-Received: by 2002:a17:902:bd96:: with SMTP id q22mr24797833pls.322.1553633339860; Tue, 26 Mar 2019 13:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553633339; cv=none; d=google.com; s=arc-20160816; b=eU1jdOX/9hBfd8zOEjlJnAkIAlFzLN6+YnFhgbJxcHq12eyFqyfzCW7iUlm2wsArYq ROLBWRgWopQj6E8dolxq4KdMPZaVkdKXDxwlZzYL7wPF4a+qMXtAelqGYVm6fA39OBkW HSYyqlil6128xQZnppbhX2jjkaTfBN62A0ZFtBIs9rqyztEZRUNIEEeH3EFhdjSNXDbr GqlOmS23OfCXxFP7emScXppsPW/HtsLxoRbvHX5GO1ZZI2MucqYH5uq2Gva1kHXlrKbP tAmjGYWXWpHYKrbMN0YejehBmeWhzMN1M9zOE3mUk6KWSyyYRZiEZMsBU4NHeFh3Bknc euOg== 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 :dkim-signature; bh=1Yoprl42VcVIg+Or9Xh6MCziR7xSFWDxzJkJwkvYVkM=; b=GYieZ+lLIUN8IWc3wPrfPWaRt0PIcKIwiN2Sa4hJ9zY31oEehkZFWGS9gq5eG+tgwC wNPlUDFR/S3oWKbBEItr+PGzSy31TqLCVRy+JR+T2e7tfOybXiGuZ0VJT8Cma2LX6RJB qlZIbqMc8ULaY+VhZTkXnSvmH1Y4Tsa3OFJw/MUEZP042MtsrJM9ghe3mP35DAC/aD4N NUytxmw2zGP+K2jKN03nWDZrrCnLRPN/qADDOejOUzeaEpZMfFaucuVl3z5+V81CTYS8 Ov9rzb5AUb435s3icVQlRIU7gCMxq3cLcb9ltWRHe2V5/+Vkq6fjXvQJWu3l0qdO7MU9 6BWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="l/OyMbMP"; 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 r13si17067427pgr.213.2019.03.26.13.48.44; Tue, 26 Mar 2019 13:48:59 -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=fail header.i=@gmail.com header.s=20161025 header.b="l/OyMbMP"; 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 S1732759AbfCZUrf (ORCPT + 99 others); Tue, 26 Mar 2019 16:47:35 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:32918 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732729AbfCZUre (ORCPT ); Tue, 26 Mar 2019 16:47:34 -0400 Received: by mail-wm1-f68.google.com with SMTP id z6so3268210wmi.0 for ; Tue, 26 Mar 2019 13:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1Yoprl42VcVIg+Or9Xh6MCziR7xSFWDxzJkJwkvYVkM=; b=l/OyMbMP6FYtklBeTYh528cFF/MOk837ueO1ug77OIPM3GBz+Av8cEaVYgUXS0HSOu Y8hALqPC2q/zcNCsoUdGKxNkLcjr0LwuBJmprNt1wGnzk8KrAexiMxEBxeQ60j17lvgq OKoj+cc0pG+YVGpLUZRXNkhDAhxkDut/ahD4UTLuG1Vy4xLNtq5KtBCBdQRRenXicjiG FHfQQjAI2KTqqU/6Y496B8xdp8c2k9KMYp859Vc+sMh9j88Pawkc8uT40uHN8YcqQtTw nN8LLoYfRTxw8wEHEMJSdbtrLxgMDFI0RaxF/SedB13kJcJQ5103nJXT2VC2I4RB0DsO /Mug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1Yoprl42VcVIg+Or9Xh6MCziR7xSFWDxzJkJwkvYVkM=; b=oLaL7RGUuohV5SOdS9dyV467fi2sW/rOjIM2HIdZzyP0G60dLwN+BTWOKdzr8unG77 ct0OW1BFIdXO1RBNN7Rk7PP9gWYTI4UxXEvtxBzQFyWzG6Tr4TjPVHkwZmdHmj4xesap loQZP/89o7tofY3mhFt/BApsBiVh3urM02KUYkn2Hjzva4xnTUi3afX+P1SLrT5HKynH Fzhx/gX5XnYDXxDLJuiUtLvUWu00/LFc7yznRkNeBU/NTZ2Q2evKC8E5cnJyjwHNub35 j42cOLZpqD7Fbbet46wmhRaDfdNL7eh9glgO6hLBN+tUJIgHqjPjAT6wtW1DhhU1s68L gq4w== X-Gm-Message-State: APjAAAVwBwcMtfDFJgpeE9GcvfhN+fREdTUy6ayY/dM9DEJgR/I/71hV GZuXSOtTObESdyzQQspd0n0= X-Received: by 2002:a7b:cf18:: with SMTP id l24mr7928405wmg.132.1553633253075; Tue, 26 Mar 2019 13:47:33 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id b11sm107391wru.61.2019.03.26.13.47.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 13:47:32 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 711FC1142374; Tue, 26 Mar 2019 21:47:21 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Cc: Mathieu Malaterre , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] powerpc: Make some functions static Date: Tue, 26 Mar 2019 21:47:18 +0100 Message-Id: <20190326204720.18882-1-malat@debian.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312203140.31785-1-malat@debian.org> References: <20190312203140.31785-1-malat@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.20.1