mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ACPI: Clean up errors in acpi.h
@ 2023-10-13  2:38 chenguohua
  2023-10-18 11:23 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: chenguohua @ 2023-10-13  2:38 UTC (permalink / raw)
  To: rafael, lenb; +Cc: linux-acpi, linux-kernel

Fix the following errors reported by checkpatch:

ERROR: "foo * bar" should be "foo *bar"
ERROR: space required after that ';' (ctx:VxV)

Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>
---
 include/linux/acpi.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 9bcf5641a7cf..b55a8ac627e9 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -1421,7 +1421,7 @@ acpi_graph_get_remote_endpoint(const struct fwnode_handle *fwnode,
 }
 
 #define ACPI_DECLARE_PROBE_ENTRY(table, name, table_id, subtable, valid, data, fn) \
-	static const void * __acpi_table_##name[]			\
+	static const void *__acpi_table_##name[]			\
 		__attribute__((unused))					\
 		 = { (void *) table_id,					\
 		     (void *) subtable,					\
@@ -1429,7 +1429,7 @@ acpi_graph_get_remote_endpoint(const struct fwnode_handle *fwnode,
 		     (void *) fn,					\
 		     (void *) data }
 
-#define acpi_probe_device_table(t)	({ int __r = 0; __r;})
+#define acpi_probe_device_table(t)	({ int __r = 0; __r; })
 #endif
 
 #ifdef CONFIG_ACPI_TABLE_UPGRADE
-- 
2.17.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-18 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13  2:38 [PATCH] ACPI: Clean up errors in acpi.h chenguohua
2023-10-18 11:23 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®