From aa0e1c7169962e8c003ea695613e55bd38011e61 Mon Sep 17 00:00:00 2001 From: chenzhen Date: Fri, 23 Oct 2015 10:35:44 +0800 Subject: [PATCH] rk312x, mali_400: add 'static' on DEVICE_ATTR variables. Change-Id: Icaaf3ce9626e78fe12e74587cc0812bfcfa3de2e Signed-off-by: chenzhen --- .../gpu/arm/mali400/mali/platform/rk30/mali_platform.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/arm/mali400/mali/platform/rk30/mali_platform.c b/drivers/gpu/arm/mali400/mali/platform/rk30/mali_platform.c index fb8356faf002..fd3ecab87bad 100644 --- a/drivers/gpu/arm/mali400/mali/platform/rk30/mali_platform.c +++ b/drivers/gpu/arm/mali400/mali/platform/rk30/mali_platform.c @@ -257,11 +257,11 @@ static int error_count_show(struct device *dev, return sprintf(buf, "%d\n", mali_group_error); } -DEVICE_ATTR(available_frequencies, S_IRUGO, show_available_frequencies, NULL); -DEVICE_ATTR(clock, S_IRUGO | S_IWUSR, show_clock, set_clock); -DEVICE_ATTR(dvfs_enable, S_IRUGO | S_IWUSR, show_dvfs_enable, set_dvfs_enable); -DEVICE_ATTR(utilisation, S_IRUGO, show_utilisation, NULL); -DEVICE_ATTR(error_count, 0644, error_count_show, NULL); +static DEVICE_ATTR(available_frequencies, S_IRUGO, show_available_frequencies, NULL); +static DEVICE_ATTR(clock, S_IRUGO | S_IWUSR, show_clock, set_clock); +static DEVICE_ATTR(dvfs_enable, S_IRUGO | S_IWUSR, show_dvfs_enable, set_dvfs_enable); +static DEVICE_ATTR(utilisation, S_IRUGO, show_utilisation, NULL); +static DEVICE_ATTR(error_count, 0644, error_count_show, NULL); static struct attribute *mali_sysfs_entries[] = { &dev_attr_available_frequencies.attr, -- 2.34.1