obmc-console: Fix bugprone-reserved-identifier
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I57ef4792b96cc55112aef4f75667e429d3188bf7
diff --git a/console-server.c b/console-server.c
index 273f3cd..4521ef7 100644
--- a/console-server.c
+++ b/console-server.c
@@ -452,6 +452,7 @@
static void handlers_init(struct console *console, struct config *config)
{
+ /* NOLINTNEXTLINE(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp) */
extern struct handler *__start_handlers, *__stop_handlers;
struct handler *handler;
int i, rc;
diff --git a/console-server.h b/console-server.h
index cbe41e9..0e58237 100644
--- a/console-server.h
+++ b/console-server.h
@@ -53,6 +53,7 @@
bool active;
};
+/* NOLINTBEGIN(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp) */
#define __handler_name(n) __handler_##n
#define _handler_name(n) __handler_name(n)
@@ -60,6 +61,7 @@
static const __attribute__((section("handlers"))) \
__attribute__((used)) struct handler * \
_handler_name(__COUNTER__) = h
+/* NOLINTEND(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp) */
int console_data_out(struct console *console, const uint8_t *data, size_t len);