From: chenguohua@jari.cn
To: rafael@kernel.org, lenb@kernel.org
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ACPI: Clean up errors in acpi.h
Date: Fri, 13 Oct 2023 10:38:01 +0800 (GMT+08:00) [thread overview]
Message-ID: <547f8b.93e.18b26e5e031.Coremail.chenguohua@jari.cn> (raw)
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
next reply other threads:[~2023-10-13 2:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-13 2:38 chenguohua [this message]
2023-10-18 11:23 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=547f8b.93e.18b26e5e031.Coremail.chenguohua@jari.cn \
--to=chenguohua@jari.cn \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®