From 6a09e0235db3cfdfeabaff35825b0f2e10594e1e Mon Sep 17 00:00:00 2001 From: Peter Mitsis Date: Mon, 6 Jul 2015 11:34:51 -0400 Subject: [PATCH] Remove trailing characters from macro defintion Macro definitions must not have trailing semi-colons. Depending upon the compiler, trailing semi-colons may result in a warning when a user invokes those macros AND adds their own trailing semi-colon. Change-Id: I34e8da2b0ce7c21ce67e84fab75ea3edefe19cfe Signed-off-by: Peter Mitsis --- include/device.h | 2 +- include/init.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/device.h b/include/device.h index 6a1590e0f8d..3668eb290fa 100644 --- a/include/device.h +++ b/include/device.h @@ -56,7 +56,7 @@ __attribute__((__section__(".devconfig.init"))) = { \ .name = drv_name, .init = (init_fn), \ .config_info = (config) \ - };\ + } struct device; diff --git a/include/init.h b/include/init.h index 530d8569f5a..236b37f02ac 100644 --- a/include/init.h +++ b/include/init.h @@ -64,7 +64,7 @@ static struct device (__initconfig_##cfg_name##id) __used \ __attribute__((__section__(".initconfig" #id ".init"))) = { \ .config = &(config_##cfg_name),\ - .driver_data = data}; + .driver_data = data} /* Run on interrupt stack; no {micro,nano} kernel objects available */ #define pure_init(cfg, data) __define_initconfig(cfg, 0, data)