Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uio: uio_fsl_elbc_gpcm: Make dev_attr_reg_br and dev_attr_reg_or static

Fix sparse warnings:

drivers/uio/uio_fsl_elbc_gpcm.c:71:1: warning:
symbol 'dev_attr_reg_br' was not declared. Should it be static?
drivers/uio/uio_fsl_elbc_gpcm.c:72:1: warning:
symbol 'dev_attr_reg_or' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org?
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

YueHaibing and committed by
Greg Kroah-Hartman
19f8d67f f1cf11c2

+2 -2
+2 -2
drivers/uio/uio_fsl_elbc_gpcm.c
··· 68 68 static ssize_t reg_store(struct device *dev, struct device_attribute *attr, 69 69 const char *buf, size_t count); 70 70 71 - DEVICE_ATTR(reg_br, S_IRUGO|S_IWUSR|S_IWGRP, reg_show, reg_store); 72 - DEVICE_ATTR(reg_or, S_IRUGO|S_IWUSR|S_IWGRP, reg_show, reg_store); 71 + static DEVICE_ATTR(reg_br, 0664, reg_show, reg_store); 72 + static DEVICE_ATTR(reg_or, 0664, reg_show, reg_store); 73 73 74 74 static ssize_t reg_show(struct device *dev, struct device_attribute *attr, 75 75 char *buf)