Commit 8ba95c69fe6eb65ff36b64136ae24844ddba16a1
Committed by
Jens Axboe
1 parent
ad5ebd2fa2
cciss: Make device attributes static
cciss: Make device attributes static Cc: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Alex Chiang <achiang@hp.com> Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Showing 1 changed file with 8 additions and 8 deletions Side-by-side Diff
drivers/block/cciss.c
... | ... | @@ -482,7 +482,7 @@ |
482 | 482 | |
483 | 483 | return count; |
484 | 484 | } |
485 | -DEVICE_ATTR(rescan, S_IWUSR, NULL, host_store_rescan); | |
485 | +static DEVICE_ATTR(rescan, S_IWUSR, NULL, host_store_rescan); | |
486 | 486 | |
487 | 487 | static ssize_t dev_show_unique_id(struct device *dev, |
488 | 488 | struct device_attribute *attr, |
... | ... | @@ -512,7 +512,7 @@ |
512 | 512 | sn[8], sn[9], sn[10], sn[11], |
513 | 513 | sn[12], sn[13], sn[14], sn[15]); |
514 | 514 | } |
515 | -DEVICE_ATTR(unique_id, S_IRUGO, dev_show_unique_id, NULL); | |
515 | +static DEVICE_ATTR(unique_id, S_IRUGO, dev_show_unique_id, NULL); | |
516 | 516 | |
517 | 517 | static ssize_t dev_show_vendor(struct device *dev, |
518 | 518 | struct device_attribute *attr, |
... | ... | @@ -536,7 +536,7 @@ |
536 | 536 | else |
537 | 537 | return snprintf(buf, sizeof(vendor) + 1, "%s\n", drv->vendor); |
538 | 538 | } |
539 | -DEVICE_ATTR(vendor, S_IRUGO, dev_show_vendor, NULL); | |
539 | +static DEVICE_ATTR(vendor, S_IRUGO, dev_show_vendor, NULL); | |
540 | 540 | |
541 | 541 | static ssize_t dev_show_model(struct device *dev, |
542 | 542 | struct device_attribute *attr, |
... | ... | @@ -560,7 +560,7 @@ |
560 | 560 | else |
561 | 561 | return snprintf(buf, sizeof(model) + 1, "%s\n", drv->model); |
562 | 562 | } |
563 | -DEVICE_ATTR(model, S_IRUGO, dev_show_model, NULL); | |
563 | +static DEVICE_ATTR(model, S_IRUGO, dev_show_model, NULL); | |
564 | 564 | |
565 | 565 | static ssize_t dev_show_rev(struct device *dev, |
566 | 566 | struct device_attribute *attr, |
... | ... | @@ -584,7 +584,7 @@ |
584 | 584 | else |
585 | 585 | return snprintf(buf, sizeof(rev) + 1, "%s\n", drv->rev); |
586 | 586 | } |
587 | -DEVICE_ATTR(rev, S_IRUGO, dev_show_rev, NULL); | |
587 | +static DEVICE_ATTR(rev, S_IRUGO, dev_show_rev, NULL); | |
588 | 588 | |
589 | 589 | static ssize_t cciss_show_lunid(struct device *dev, |
590 | 590 | struct device_attribute *attr, char *buf) |
... | ... | @@ -609,7 +609,7 @@ |
609 | 609 | lunid[0], lunid[1], lunid[2], lunid[3], |
610 | 610 | lunid[4], lunid[5], lunid[6], lunid[7]); |
611 | 611 | } |
612 | -DEVICE_ATTR(lunid, S_IRUGO, cciss_show_lunid, NULL); | |
612 | +static DEVICE_ATTR(lunid, S_IRUGO, cciss_show_lunid, NULL); | |
613 | 613 | |
614 | 614 | static ssize_t cciss_show_raid_level(struct device *dev, |
615 | 615 | struct device_attribute *attr, char *buf) |
... | ... | @@ -632,7 +632,7 @@ |
632 | 632 | return snprintf(buf, strlen(raid_label[raid]) + 7, "RAID %s\n", |
633 | 633 | raid_label[raid]); |
634 | 634 | } |
635 | -DEVICE_ATTR(raid_level, S_IRUGO, cciss_show_raid_level, NULL); | |
635 | +static DEVICE_ATTR(raid_level, S_IRUGO, cciss_show_raid_level, NULL); | |
636 | 636 | |
637 | 637 | static ssize_t cciss_show_usage_count(struct device *dev, |
638 | 638 | struct device_attribute *attr, char *buf) |
... | ... | @@ -651,7 +651,7 @@ |
651 | 651 | spin_unlock_irqrestore(CCISS_LOCK(h->ctlr), flags); |
652 | 652 | return snprintf(buf, 20, "%d\n", count); |
653 | 653 | } |
654 | -DEVICE_ATTR(usage_count, S_IRUGO, cciss_show_usage_count, NULL); | |
654 | +static DEVICE_ATTR(usage_count, S_IRUGO, cciss_show_usage_count, NULL); | |
655 | 655 | |
656 | 656 | static struct attribute *cciss_host_attrs[] = { |
657 | 657 | &dev_attr_rescan.attr, |