diff options
author | Chirantan Ekbote <chirantan@chromium.org> | 2018-11-16 11:30:08 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-20 18:27:40 -0800 |
commit | 5c4ad02dd4865949e7f4df1a04f4c1cc603e6c64 (patch) | |
tree | 1c6afd243da6c9047a4b041a3359a1756832def2 /crosvm_plugin | |
parent | cccbe6717c5f59dd2b52fc4979bf70610b29b1b4 (diff) | |
download | crosvm-5c4ad02dd4865949e7f4df1a04f4c1cc603e6c64.tar crosvm-5c4ad02dd4865949e7f4df1a04f4c1cc603e6c64.tar.gz crosvm-5c4ad02dd4865949e7f4df1a04f4c1cc603e6c64.tar.bz2 crosvm-5c4ad02dd4865949e7f4df1a04f4c1cc603e6c64.tar.lz crosvm-5c4ad02dd4865949e7f4df1a04f4c1cc603e6c64.tar.xz crosvm-5c4ad02dd4865949e7f4df1a04f4c1cc603e6c64.tar.zst crosvm-5c4ad02dd4865949e7f4df1a04f4c1cc603e6c64.zip |
crosvm_plugin: Remove underscores in variable name
Remove the double underscore in front of `__has_extension` in crosvm.h. Double underscores in identifiers are reserved for the compiler's internal use and as it so happens, `__has_extension` is a macro that clang defines for code to determine whether the compiler supports a given feature. We shouldn't be using double underscores in any of the variable names in this header file but for now just fix the problematic one so that the code can actually compile under clang. BUG=b:80150167 TEST=Compile one of the test plugins with clang Change-Id: Ibb59e72c968a7f245bd6cc693da99f9263eedf33 Signed-off-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1341100 Reviewed-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Diffstat (limited to 'crosvm_plugin')
-rw-r--r-- | crosvm_plugin/crosvm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crosvm_plugin/crosvm.h b/crosvm_plugin/crosvm.h index 39c2453..3f58739 100644 --- a/crosvm_plugin/crosvm.h +++ b/crosvm_plugin/crosvm.h @@ -112,7 +112,7 @@ int crosvm_get_shutdown_eventfd(struct crosvm*); * Gets a bool indicating if a KVM_CAP_* enum is supported on this VM */ int crosvm_check_extension(struct crosvm*, uint32_t __extension, - bool *__has_extension); + bool *has_extension); /* * Queries x86 cpuid features which are supported by the hardware and |