tpm/tpm-sysfs: active_show() can be static
authorFengguang Wu <fengguang.wu@intel.com>
Sat, 7 Dec 2013 15:10:26 +0000 (16:10 +0100)
committerPeter Huewe <peterhuewe@gmx.de>
Mon, 6 Jan 2014 13:37:25 +0000 (14:37 +0100)
so we make it static

CC: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
CC: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm-sysfs.c

index c3503cb70a379264345bf467fc50e8772f6c53bf..01730a27ae076c03307be46f9edd4a838cffb04e 100644 (file)
@@ -148,7 +148,7 @@ static ssize_t enabled_show(struct device *dev, struct device_attribute *attr,
 }
 static DEVICE_ATTR_RO(enabled);
 
-ssize_t active_show(struct device *dev, struct device_attribute *attr,
+static ssize_t active_show(struct device *dev, struct device_attribute *attr,
                    char *buf)
 {
        cap_t cap;