projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d8658
)
scsi: sd: make sd_devt_release() static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 8 Feb 2017 16:24:24 +0000
(16:24 +0000)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 23 Feb 2017 00:13:54 +0000
(19:13 -0500)
Fixes the following sparse warning:
drivers/scsi/sd.c:3087:6: warning:
symbol 'sd_devt_release' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/sd.c
b/drivers/scsi/sd.c
index cb6e68dd6df09d1576a353a60bce7e898a0382b5..b9b32f5811e074e5466b07ccab45ebf7045856f3 100644
(file)
--- a/
drivers/scsi/sd.c
+++ b/
drivers/scsi/sd.c
@@
-3084,7
+3084,7
@@
struct sd_devt {
struct disk_devt disk_devt;
};
-void sd_devt_release(struct disk_devt *disk_devt)
+
static
void sd_devt_release(struct disk_devt *disk_devt)
{
struct sd_devt *sd_devt = container_of(disk_devt, struct sd_devt,
disk_devt);