Message ID | 20230810141947.1236730-10-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp477224vqi; Thu, 10 Aug 2023 07:57:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0M2sJmp749QV1lJftWOI9BUpGtN3FvcijVDDdXxegMtwUHFIadZWWMIpRqB3IUo+W9O3M X-Received: by 2002:a2e:8484:0:b0:2ba:6599:b433 with SMTP id b4-20020a2e8484000000b002ba6599b433mr1722465ljh.25.1691679430411; Thu, 10 Aug 2023 07:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691679430; cv=none; d=google.com; s=arc-20160816; b=z+fVUO9o1tAfV8PtjE1kuLkfnw2fMDyaEVy1iM5nF08rx1UPerYl4LVb3H8ATj6eiD BmzhrAfkk27N/u0U51yFGcZSFuI1jqJe3Org0jGJDmO2Ycbjt/JCx2ZdrW8XixrxfOwx UzJFBLHvJ/up+PtEQfa9o3nKJeZQBJWf6r19riwJ2nQiUh1wtdsMuvk8R/9k2MtS2zte qKcAnAjr8CeOr7yxKx6ayWpkAEdXEUlnSwenpT1jv56SHsR4rS+HAlqj8sn73Sc84dP+ COKuUYG6rQL9BjeoYi9doXsiy6x1iRBOXx5MwdbToUMV9YadHRI0pg5Wv9e/f1J4bpsq UjHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Xeho+Uwz9z/kUW93H0xBTVLFvkjZxBxDpKTkQl0WNEI=; fh=xuCxCHL1RixTANc3CKFx2uCP9jrBfD/pdh9Ll1izMH0=; b=IVwtsJrGNRgtZsJ+31nxgFV4LOxci1TUO7taQfYRw+5qs550n4G1ZUR6eHo8n19018 D4lCE9kLv8YW/fQin0CSvRMoMvwLocbQidIJLCumxWSX+V4m3KpyYMmbd7ridakGZgIs bAgcinu1Ra9IH0WN3frJikwXEJ4DUK/hnRvhHFoSeQtJVQ5LIuYDqnjmei2qjXLN+2c3 fNEUnoxusR2xUXBgeNXAFqRe/Yz4ex5Kir3X3r7ETRT20DzE7k07iOQ8zvv8JXbTnjnf WuocsxIAVdgsTsB5bmNL9vsyPPkAtUl1RhSftEqoTEOPwnYdwqsLdNSq8m94uA3X0jON QtOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GNv0vjpV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a170906591300b009930d9d6b4csi1563219ejq.888.2023.08.10.07.56.45; Thu, 10 Aug 2023 07:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GNv0vjpV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234865AbjHJOWZ (ORCPT <rfc822;lanlanxiyiji@gmail.com> + 99 others); Thu, 10 Aug 2023 10:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235682AbjHJOWR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Aug 2023 10:22:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 336F1270A; Thu, 10 Aug 2023 07:22:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C2F4E65DA6; Thu, 10 Aug 2023 14:22:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85856C433C7; Thu, 10 Aug 2023 14:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677335; bh=kWqVuzsH0Q6jtQzYrNt8dLcMGh1ZeB95zyVRAeHztoo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GNv0vjpVBSzAY0o+k/QbC/U9e6pdOuyj3VtnNWS+y0pG5p9v/7OPK9ufUKCeCk1vJ 6WztDoeLGqhPGJFQnjJG8Ri0WGCguaujdnWlSNLZDqIIR7MIeT1SMdT0kGqkyK5XlW HxoPY2a0HX6A76QKL6uKiR1c3dGXx2oXjRAMRlj1D7+nCgw0tLr/dJ4LNZotk2xQ7a hNZsZd2KRVfE9n8T0Z8O1mY8epSqvi3Il85a9tC6Z7S7+Jky96VwOD4Mbb3Zc5M+xP FMl1gY9Hfz5bbzXb7E4sNXgRG4DoJAIq0wkrtIpsHcfE1XhO0kLFoRR4jQbOKsCuvI 9KFQR9JKhfBlQ== From: Arnd Bergmann <arnd@kernel.org> To: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>, Helge Deller <deller@gmx.de>, Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de>, linux-parisc@vger.kernel.org Subject: [PATCH 09/17] parport: gsc: mark init function static Date: Thu, 10 Aug 2023 16:19:27 +0200 Message-Id: <20230810141947.1236730-10-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773854450544030828 X-GMAIL-MSGID: 1773854450544030828 |
Series |
-Wmissing-prototype warning fixes
|
|
Commit Message
Arnd Bergmann
Aug. 10, 2023, 2:19 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> This is only used locally, so mark it static to avoid a warning: drivers/parport/parport_gsc.c:395:5: error: no previous prototype for 'parport_gsc_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/parport/parport_gsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 8/10/23 16:19, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > This is only used locally, so mark it static to avoid a warning: > > drivers/parport/parport_gsc.c:395:5: error: no previous prototype for 'parport_gsc_init' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Helge Deller <deller@gmx.de>
diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c index 5e4475254bd0a..c7e18382dc014 100644 --- a/drivers/parport/parport_gsc.c +++ b/drivers/parport/parport_gsc.c @@ -392,7 +392,7 @@ static struct parisc_driver parport_driver __refdata = { .remove = __exit_p(parport_remove_chip), }; -int parport_gsc_init(void) +static int parport_gsc_init(void) { return register_parisc_driver(&parport_driver); }