From patchwork Thu Mar 22 20:19:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 889604 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=kvm-ppc-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JReM4z3K"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 406dQS5V3Gz9s0v for ; Fri, 23 Mar 2018 07:22:56 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752201AbeCVUVB (ORCPT ); Thu, 22 Mar 2018 16:21:01 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39029 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752176AbeCVUUz (ORCPT ); Thu, 22 Mar 2018 16:20:55 -0400 Received: by mail-wm0-f65.google.com with SMTP id f125so18385486wme.4; Thu, 22 Mar 2018 13:20:54 -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=YO29PxLEm27J11q/DXw9H8eKKrUS1f8ZC2UZPg5Fk+E=; b=JReM4z3K7sArtOQbYOsQ4TfqZVXE9CANZXGsCLZ4Y6DK1Kkbq8UIGOuhPdQm7kWp2N OsXussEY9etm1LrOOXpl0zkgegdDpcYeAeeAVHcgoFsvfUSvft/jpLCUjupccWlR/TIR eP1ZF9fEygxIMQlewKbIuJbi4G6A8EIisFArfKFWejQ3tcbChzgiWDOhOrfbc/S4Kt3z 4qoxELdGDRuoV9XiuQsytID9u9vW7q1e1CPFOnK5msPayNTDCX2+bzRdu2yOjVv/p4FS JKW55sHc4PUNwrFF6NpXnlVwc0DrFccFzQLfkB98/8SMcdW2GHPimSDkIcnwozJ9U6Dy sjIA== 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=YO29PxLEm27J11q/DXw9H8eKKrUS1f8ZC2UZPg5Fk+E=; b=ecfWwmBsgnJ2oJnCjR5aLtOcvv2qGLPgVndOYQ7lzeBxZYqLHbwuqfoeq/9+jciRIg KJyR7Cnt1Q6FjyAoQXXYw13+y4dkFPG9lHpKDQL5y4Yk2ooa5vb8twycDt7ZX+l+ccaC j18fm+dO6zraGIw1a2EKHZvkD4W/pVJJAO+wMlnSdkS+JsV86DCYMJAmqAQLI4B/cPJq TxHkuIpWkPQy6EmAlJwwA32dZQoXWrMJMoAac6BHa+3CROYL1+50A3f93hUtl6IOGR8B u5VLZsIC2VmNll/LrIP1rYL30p1Ts0u1rdLv0kTvn3owWHq7ncIA0EMeK+0nuxItG7xm u56A== X-Gm-Message-State: AElRT7EJS6TZQQ8vJlQWA6oRwLzoGsM1MGXZTHfQxEJJxx4/QLuX7ZDl h+Jjy0mxuwolBL6cKEc8gXVzjbPM X-Google-Smtp-Source: AG47ELvKrfl2AVoucU38ClRI+s0fFjabHLcYve0iz39gJjRr2wT0LaS8sb8FMXUzs8AQqNY7DduoaQ== X-Received: by 10.28.171.131 with SMTP id u125mr6291347wme.19.1521750053860; Thu, 22 Mar 2018 13:20:53 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id e10sm7223809wrh.38.2018.03.22.13.20.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 13:20:53 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 536BC10C03A5; Thu, 22 Mar 2018 21:20:52 +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, kvm-ppc@vger.kernel.org Subject: [PATCH 09/19] powerpc/chrp/pci: Make some functions static Date: Thu, 22 Mar 2018 21:19:55 +0100 Message-Id: <20180322202007.23088-10-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180322202007.23088-1-malat@debian.org> References: <20180322202007.23088-1-malat@debian.org> MIME-Version: 1.0 Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org These functions can all be static, make it so. Fix warnings treated as errors with W=1: arch/powerpc/platforms/chrp/pci.c:34:5: error: no previous prototype for ‘gg2_read_config’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/pci.c:61:5: error: no previous prototype for ‘gg2_write_config’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/pci.c:97:5: error: no previous prototype for ‘rtas_read_config’ [-Werror=missing-prototypes] arch/powerpc/platforms/chrp/pci.c:112:5: error: no previous prototype for ‘rtas_write_config’ [-Werror=missing-prototypes] Signed-off-by: Mathieu Malaterre --- arch/powerpc/platforms/chrp/pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/chrp/pci.c b/arch/powerpc/platforms/chrp/pci.c index 0f512d35f7c5..84e1fedb3796 100644 --- a/arch/powerpc/platforms/chrp/pci.c +++ b/arch/powerpc/platforms/chrp/pci.c @@ -31,7 +31,7 @@ void __iomem *gg2_pci_config_base; * limit the bus number to 3 bits */ -int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, +static int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, int len, u32 *val) { volatile void __iomem *cfg_data; @@ -58,7 +58,7 @@ int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, return PCIBIOS_SUCCESSFUL; } -int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, +static int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, int len, u32 val) { volatile void __iomem *cfg_data; @@ -94,7 +94,7 @@ static struct pci_ops gg2_pci_ops = /* * Access functions for PCI config space using RTAS calls. */ -int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, +static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) { struct pci_controller *hose = pci_bus_to_host(bus); @@ -109,7 +109,7 @@ int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, return rval? PCIBIOS_DEVICE_NOT_FOUND: PCIBIOS_SUCCESSFUL; } -int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, +static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) { struct pci_controller *hose = pci_bus_to_host(bus);