diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-04-23 14:29:05 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-01 20:35:07 -0400 |
commit | 502f78c8d784eabc0f75c6372f61ca796c8af707 (patch) | |
tree | f6d1f203368cd7762c696f82a2dc4f539f9667cb /drivers/gpu/drm/i915/i915_reg.h | |
parent | 516431ae669bf4e8d6e6ce5e5347e9f9739b0947 (diff) | |
download | linux-502f78c8d784eabc0f75c6372f61ca796c8af707.tar.bz2 |
i915: switch copy_perf_config_registers_or_number() to unsafe_put_user()
... and the rest of query_perf_config_data() to normal uaccess primitives
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 59e64acc2c56..3733b9e20976 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -186,7 +186,7 @@ typedef struct { #define INVALID_MMIO_REG _MMIO(0) -static inline u32 i915_mmio_reg_offset(i915_reg_t reg) +static __always_inline u32 i915_mmio_reg_offset(i915_reg_t reg) { return reg.reg; } |