Skip to content

Commit 68be302

Browse files
JoePerchestorvalds
authored andcommitted
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: Joe Perches <joe@perches.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Luca Tettamanti <kronos.it@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6910231 commit 68be302

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/hwmon/asus_atk0110.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ static int atk_debugfs_gitm_get(void *p, u64 *val)
688688
DEFINE_SIMPLE_ATTRIBUTE(atk_debugfs_gitm,
689689
atk_debugfs_gitm_get,
690690
NULL,
691-
"0x%08llx\n")
691+
"0x%08llx\n");
692692

693693
static int atk_acpi_print(char *buf, size_t sz, union acpi_object *obj)
694694
{

‎include/linux/fs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2688,7 +2688,7 @@ static const struct file_operations __fops = { \
26882688
.read = simple_attr_read, \
26892689
.write = simple_attr_write, \
26902690
.llseek = generic_file_llseek, \
2691-
};
2691+
}
26922692

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

0 commit comments

Comments
 (0)