Re: [PATCH] [SCSI] qla4xxx: mark symbols static where possible

From: Martin K. Petersen
Date: Fri Sep 02 2016 - 06:08:57 EST


>>>>> "Baoyou" == Baoyou Xie <baoyou.xie@xxxxxxxxxx> writes:

Baoyou> We get 1 warning when build kernel with W=1:
Baoyou> drivers/scsi/qla4xxx/ql4_nx.c:1846:10: warning: no previous
Baoyou> prototype for 'ql4_84xx_ipmdio_rd_reg' [-Wmissing-prototypes]

Baoyou> In fact, this function is only used in the file in which it is
Baoyou> declared and don't need a declaration, but can be made static.
Baoyou> so this patch marks this function with 'static'.

Applied to 4.9/scsi-queue.

--
Martin K. Petersen Oracle Linux Engineering