diff options
author | Yu-cheng Yu <yu-cheng.yu@intel.com> | 2020-01-10 00:14:52 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-02-12 17:43:34 +0300 |
commit | e70b100806d63fb79775858ea92e1a716da46186 (patch) | |
tree | ab9fcc22a0c0f9c48f0138b6efe1296b08cfb69b /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 49a91d61aed1db01097b51a24c77137eb348a0bf (diff) | |
download | linux-e70b100806d63fb79775858ea92e1a716da46186.tar.xz |
x86/fpu/xstate: Warn when checking alignment of disabled xfeatures
An XSAVES component's alignment/offset is meaningful only when the
feature is enabled. Return zero and WARN_ONCE on checking alignment of
disabled features.
Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lkml.kernel.org/r/20200109211452.27369-4-yu-cheng.yu@intel.com
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions