diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-06-06 09:56:30 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-08 00:44:27 +0000 |
commit | cf6440c764f7d945dfdae7cc62baf94510afe0b2 (patch) | |
tree | 7af3872dad3ee597a4d03b7dc0b1b7fe2a830884 | |
parent | 8bd99cc4343e088f4cfd5171c0f8734cdb94e092 (diff) | |
download | chrome-ec-cf6440c764f7d945dfdae7cc62baf94510afe0b2.tar.gz |
include/host_command.h: Fix C++ compilation error
include/host_command.h:277:41: error: invalid suffix on literal; C++11
requires a space between literal and identifier
[-Wreserved-user-defined-literal]
__attribute__((section(".rodata.hcmds."EXPANDSTR(0x0000, command)))) \
^
BRANCH=none
BUG=b:234181908
TEST=./util/compare_build.sh -b all -j 120
=> MATCH
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I7428c6bf5fa6aa0c9440ae44d665f7d744d23c00
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3691834
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r-- | include/host_command.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/host_command.h b/include/host_command.h index 74f68f9891..3ab3d54351 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -273,7 +273,7 @@ struct host_command *zephyr_find_host_command(int command); static enum ec_status(routine)(struct host_cmd_handler_args *args); \ const struct host_command __keep __no_sanitize_address \ EXPAND(0x0000, command) \ - __attribute__((section(".rodata.hcmds."EXPANDSTR(0x0000, command)))) \ + __attribute__((section(".rodata.hcmds." EXPANDSTR(0x0000, command)))) \ = {routine, command, version_mask} /* |