From patchwork Sun Sep 4 06:47:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75346 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp1668676qga; Sat, 3 Sep 2016 23:47:52 -0700 (PDT) X-Received: by 10.66.17.227 with SMTP id r3mr10711699pad.48.1472971672005; Sat, 03 Sep 2016 23:47:52 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e64si21801914pfg.292.2016.09.03.23.47.51 for ; Sat, 03 Sep 2016 23:47:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752106AbcIDGrv (ORCPT ); Sun, 4 Sep 2016 02:47:51 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34701 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbcIDGru (ORCPT ); Sun, 4 Sep 2016 02:47:50 -0400 Received: by mail-pa0-f41.google.com with SMTP id to9so14220270pac.1 for ; Sat, 03 Sep 2016 23:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=BZWki6lfH6D8Tt1SMy9BMkc09m+V8zjp6kjOlO2JVmk=; b=TRRFvJSxHLInr/UZxLCG2p7rBJecDCqfCRDyFl+CcoX8+5E997NBeCC+TceEB5AKQT IDMlRG1/X0GU26n4Igid1J+rP+3GSYE4MOO0ZGIODwFvzitVnI0EIz+JDR3q+TFAOYiX VIqkD/QNrtMCE4ANqJANo0y3qyNCbudoNIWKY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BZWki6lfH6D8Tt1SMy9BMkc09m+V8zjp6kjOlO2JVmk=; b=CnlZFQ1K1xjauyTne+DT/sWUg2FlwFpObJrTN7R/vASglXWshsBF96TY9soV/ejM8e 3fuGSEld9Pbx+KdFbOV/bKbmm0xq/leqOJt37Ujc1ysyc62B4sE7X7CUh0S6Y6LyESYu itH4qJ8hdhqFbxtSj+0E6SjSH3YZD3kDVdG22koppurGDuEuckJaDlWyxcYwCjZgpx+Y CeT7RaPbV4wEJwGdpyrcilK9x3GQt8unfplwjj3feX+c0/tpKFvvuUFvUAATpe/XaKxw xend+GNMMP7/k2H6KvflYw+dmvgPhqJUFl0RG46SL0C1NTxoJC8FSdamWP6f117asSbC +sYA== X-Gm-Message-State: AE9vXwN1wO1WB/g4dSC2giOx4l+9ZyI9qq/++2wMHRpviGkwlzxmczbf3H9eJ/3w/qyct5i6 X-Received: by 10.67.30.195 with SMTP id kg3mr36502417pad.143.1472971669592; Sat, 03 Sep 2016 23:47:49 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.154]) by smtp.gmail.com with ESMTPSA id b134sm25430085pfb.55.2016.09.03.23.47.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Sep 2016 23:47:49 -0700 (PDT) From: Baoyou Xie To: aacraid@microsemi.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] [SCSI] aacraid: mark aac_src_select_comm() static Date: Sun, 4 Sep 2016 14:47:10 +0800 Message-Id: <1472971630-4765-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/scsi/aacraid/src.c:616:5: warning: no previous prototype for 'aac_src_select_comm' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/scsi/aacraid/src.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.c index 28f8b8a..0c45388 100644 --- a/drivers/scsi/aacraid/src.c +++ b/drivers/scsi/aacraid/src.c @@ -613,7 +613,7 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled) * @dev: Adapter * @comm: communications method */ -int aac_src_select_comm(struct aac_dev *dev, int comm) +static int aac_src_select_comm(struct aac_dev *dev, int comm) { switch (comm) { case AAC_COMM_MESSAGE: