mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-24 11:58:41 +00:00
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>
This commit is contained in:
parent
cccbe6717c
commit
5c4ad02dd4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue