From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751385AbcI0ETX (ORCPT ); Tue, 27 Sep 2016 00:19:23 -0400 Received: from mail-vk0-f52.google.com ([209.85.213.52]:34923 "EHLO mail-vk0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750778AbcI0ETN (ORCPT ); Tue, 27 Sep 2016 00:19:13 -0400 From: Jitendra Bhivare References: <1474891259-20031-1-git-send-email-baoyou.xie@linaro.org> In-Reply-To: <1474891259-20031-1-git-send-email-baoyou.xie@linaro.org> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: AQJx6Xe9XE1eFidY+8v1AGV5WvFroJ9NGStg Date: Tue, 27 Sep 2016 09:49:10 +0530 Message-ID: <8ab58b4a55f6cc0213156d536c6b15c9@mail.gmail.com> Subject: RE: [PATCH] scsi: be2iscsi: mark symbols static where possible To: Baoyou Xie , Subramanian Seetharaman , Ketan Mukadam , jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Baoyou Xie [mailto:baoyou.xie@linaro.org] > Sent: Monday, September 26, 2016 5:31 PM > To: subbu.seetharaman@broadcom.com; ketan.mukadam@broadcom.com; > jitendra.bhivare@broadcom.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; han.fei@zte.com.cn; > tang.qiang007@zte.com.cn > Subject: [PATCH] scsi: be2iscsi: mark symbols static where possible > > We get 6 warnings when building kernel with W=1: > drivers/scsi/be2iscsi/be_main.c:65:1: warning: no previous prototype for > 'beiscsi_log_enable_disp' [-Wmissing-prototypes] > drivers/scsi/be2iscsi/be_main.c:78:1: warning: no previous prototype for > 'beiscsi_log_enable_change' [-Wmissing-prototypes] > drivers/scsi/be2iscsi/be_main.c:97:1: warning: no previous prototype for > 'beiscsi_log_enable_store' [-Wmissing-prototypes] > drivers/scsi/be2iscsi/be_main.c:116:1: warning: no previous prototype for > 'beiscsi_log_enable_init' [-Wmissing-prototypes] > drivers/scsi/be2iscsi/be_main.c:4587:5: warning: no previous prototype for > 'beiscsi_iotask_v2' [-Wmissing-prototypes] > drivers/scsi/be2iscsi/be_main.c:4976:6: warning: no previous prototype for > 'beiscsi_hba_attrs_init' [-Wmissing-prototypes] > > In fact, these functions are only used in the file in which they are declared and > don't need a declaration, but can be made static. > > So this patch marks these functions with 'static'. > > Signed-off-by: Baoyou Xie > --- [JB] Looks good. Reviewed by: Jitendra Bhivare