Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68be3029 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

fs.h, drivers/hwmon/asus_atk0110.c: fix DEFINE_SIMPLE_ATTRIBUTE semicolon definition and use



The DEFINE_SIMPLE_ATTRIBUTE macro should not end in a ; Fix the one use
in the kernel tree that did not have a semicolon.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 69102311
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -688,7 +688,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val)
DEFINE_SIMPLE_ATTRIBUTE(atk_debugfs_gitm,
DEFINE_SIMPLE_ATTRIBUTE(atk_debugfs_gitm,
			atk_debugfs_gitm_get,
			atk_debugfs_gitm_get,
			NULL,
			NULL,
			"0x%08llx\n")
			"0x%08llx\n");


static int atk_acpi_print(char *buf, size_t sz, union acpi_object *obj)
static int atk_acpi_print(char *buf, size_t sz, union acpi_object *obj)
{
{
+1 −1
Original line number Original line Diff line number Diff line
@@ -2688,7 +2688,7 @@ static const struct file_operations __fops = { \
	.read	 = simple_attr_read,					\
	.read	 = simple_attr_read,					\
	.write	 = simple_attr_write,					\
	.write	 = simple_attr_write,					\
	.llseek	 = generic_file_llseek,					\
	.llseek	 = generic_file_llseek,					\
};
}


static inline __printf(1, 2)
static inline __printf(1, 2)
void __simple_attr_check_format(const char *fmt, ...)
void __simple_attr_check_format(const char *fmt, ...)