Message ID | 20230810141947.1236730-8-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 z4csp469356vqi; Thu, 10 Aug 2023 07:42:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7He0QJihFyOpDgeGU9h21PTnqnrGIgTObNuIL6t9d+ZqFKdl51hc5rbjUbkYc3XdZ8cOu X-Received: by 2002:a05:6a00:13a2:b0:680:98c:c593 with SMTP id t34-20020a056a0013a200b00680098cc593mr3806173pfg.7.1691678578751; Thu, 10 Aug 2023 07:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691678578; cv=none; d=google.com; s=arc-20160816; b=kDiHHgyFwcnVkNalMvjTXhZg9cW8XbDIWVt1pTVulG/Ciq5bCIDb6s21im/dmn+aO4 Q84ENea55fp0hsxtli/Fqlo40FyOajtjzxvoNHKkAOQFB6esY4q/5UVV5frYoO5ke7DB zbxtcb9zjmAoshEw6wfmW7uIO9jU0g4C7lEl8EVW6QmNiykW2U8Z9F1FWadUwt3Eqpor eGugxbQ+H1YBkIBWhdLVZMYuBpKAYvyzVL4K1GGs2CkkYMJK/U5Qn47uqIB40kuA573X t1H4GdcXLOU8HmQGvxu77bxplXc+8Gu1d98+Go6UsOoKDfuWTSUjZdddKZlV6Wmn6f6x d8rA== 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=lo3qp1wpEjo76AGlCo0cbpBnezqrWC1zoaBpT2NqJA4=; fh=vm6DTEtmzEbWmCXgxKi9hfElrLHPQojyHK6CjNj+AcY=; b=xrwpv0FNDIlvhRUp+xEYMO4wUJ9pCvBJGRsmfFprq+WBPOP/iP0n2vAeEC1wxqaH+b 4bLhZ2ieRtmuCR3lnEQ5Vp8GYJqQjiQbSpxKeC4ai7NIDQKYmdc/tdjp4I5wBXKcdqoq dRqB5lsrnO6hqW3mxiyfGoSaMbUnCeuFnon4NGBetLLBPd0ilMvufr2E59DOqsRqz9da 4ppxbhJhcOJt6KEUBnzVdILUVfaDyTB/b0JtRraYd5o1S+BnQSyy8r985nt6Sp4NcNd1 Lokiuxza5lyc3KOZq6XpONpMvwdX/W7M9LVnAGRqew5syzHsQH5AkjAgytEP1VDNOE2p iI/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mmE6w9Za; 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 z125-20020a633383000000b0056378bcb15fsi1650160pgz.503.2023.08.10.07.42.44; Thu, 10 Aug 2023 07:42:58 -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=mmE6w9Za; 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 S235639AbjHJOWG (ORCPT <rfc822;lanlanxiyiji@gmail.com> + 99 others); Thu, 10 Aug 2023 10:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235627AbjHJOWF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Aug 2023 10:22:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AACFD26BD; Thu, 10 Aug 2023 07:22:03 -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 47E6965D5E; Thu, 10 Aug 2023 14:22:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAD67C433C7; Thu, 10 Aug 2023 14:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677322; bh=Pw5U4R34UHo1qa7FlbT6kKqWNZNNPz53PW/3LnYPzmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mmE6w9ZangEwJyl0bzL8nVZ6jjDHA5th1gO/E9ADy/Y1nZ75eRfOWyryiExAFP9pA ja9lflXZ0jCaVYmfWfhNuhWgIx/Vm+0GLyWIYL3F9sYVWjy+q3rTsDzqCy9ltZURDH jV8gflzc0nvW9glXOMtVeeDSHEdhTNjGWxSY7uOyMUUkTpeWRQRkJCSoIA0TvOAwO+ /yt00dCblwGj1tHgh0BhYZ441q/nReP8wvFhAJAYbKe2axRSbhSJRJ7NxP7bQaPFDY GpXf8uYqnqoVZehsfNcueXe4cgdWCB3sNK2RygVCQuhX3x1IAH1RMAfW+Et/uJXNnB qLwUD30C9dadQ== From: Arnd Bergmann <arnd@kernel.org> To: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com> Cc: Arnd Bergmann <arnd@arndb.de>, Rob Herring <robh@kernel.org>, Bart Van Assche <bvanassche@acm.org>, Jack Wang <jinpu.wang@ionos.com>, linux-scsi@vger.kernel.org Subject: [PATCH 07/17] scsi: qlogicpti: mark qlogicpti_info() static Date: Thu, 10 Aug 2023 16:19:25 +0200 Message-Id: <20230810141947.1236730-8-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: 1773853557500900949 X-GMAIL-MSGID: 1773853557500900949 |
Series |
-Wmissing-prototype warning fixes
|
|
Commit Message
Arnd Bergmann
Aug. 10, 2023, 2:19 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The qlogicpti_info() function is only used in this file and should be static to avoid a warning: drivers/scsi/qlogicpti.c:846:13: error: no previous prototype for 'qlogicpti_info' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/scsi/qlogicpti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, Aug 10, 2023 at 4:22 PM Arnd Bergmann <arnd@kernel.org> wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > The qlogicpti_info() function is only used in this file and should > be static to avoid a warning: > > drivers/scsi/qlogicpti.c:846:13: error: no previous prototype for 'qlogicpti_info' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> lgtm Reviewed-by: Jack Wang <jinpu.wang@ionos.com> > --- > drivers/scsi/qlogicpti.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c > index f88a5421c483f..3b95f7a6216fe 100644 > --- a/drivers/scsi/qlogicpti.c > +++ b/drivers/scsi/qlogicpti.c > @@ -843,7 +843,7 @@ static int qpti_map_queues(struct qlogicpti *qpti) > return 0; > } > > -const char *qlogicpti_info(struct Scsi_Host *host) > +static const char *qlogicpti_info(struct Scsi_Host *host) > { > static char buf[80]; > struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; > -- > 2.39.2 >
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index f88a5421c483f..3b95f7a6216fe 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c @@ -843,7 +843,7 @@ static int qpti_map_queues(struct qlogicpti *qpti) return 0; } -const char *qlogicpti_info(struct Scsi_Host *host) +static const char *qlogicpti_info(struct Scsi_Host *host) { static char buf[80]; struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata;