diff options
author | Ethan Zhao <haifeng.zhao@linux.intel.com> | 2025-01-27 09:38:37 +0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-02-12 10:16:29 -0800 |
commit | a11128ce16366d455a6f937e2a2d1aa2a8b2bd45 (patch) | |
tree | 4d059e84825e94a895b379902436552207a81d31 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e9cb61055fee5f973984e2b98edd3bbc356f9c89 (diff) |
KVM: x86/cpuid: add type suffix to decimal const 48 fix building warning
The default type of a decimal constant is determined by the magnitude of
its value. If the value falls within the range of int, its type is int;
otherwise, if it falls within the range of unsigned int, its type is
unsigned int. This results in the constant 48 being of type int. In the
following min call,
g_phys_as = min(g_phys_as, 48);
This leads to a building warning/error (CONFIG_KVM_WERROR=y) caused by
the mismatch between the types of the two arguments to macro min. By
adding the suffix U to explicitly declare the type of the constant, this
issue is fixed.
Signed-off-by: Ethan Zhao <haifeng.zhao@linux.intel.com>
Link: https://lore.kernel.org/r/20250127013837.12983-1-haifeng.zhao@linux.intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions