Skip to content

Commit 0ae8f47

Browse files
Jiapeng Chongmartinkpetersen
authored andcommitted
scsi: mpt3sas: Make mpt3sas_dev_attrs static
This symbol is not used outside of mpt3sas_ctl.c, mark it static. Fixes the following sparse warning: drivers/scsi/mpt3sas/mpt3sas_ctl.c:3988:18: warning: symbol 'mpt3sas_dev_attrs' was not declared. Should it be static? Link: https://lore.kernel.org/r/[email protected] Fixes: 1bb3ca2 ("scsi: mpt3sas: Switch to attribute groups") Reported-by: Abaci Robot <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 3d8fa78 commit 0ae8f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/mpt3sas/mpt3sas_ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3985,7 +3985,7 @@ sas_ncq_prio_enable_store(struct device *dev,
39853985
}
39863986
static DEVICE_ATTR_RW(sas_ncq_prio_enable);
39873987

3988-
struct attribute *mpt3sas_dev_attrs[] = {
3988+
static struct attribute *mpt3sas_dev_attrs[] = {
39893989
&dev_attr_sas_address.attr,
39903990
&dev_attr_sas_device_handle.attr,
39913991
&dev_attr_sas_ncq_prio_supported.attr,

0 commit comments

Comments
 (0)