drm/i915: Add i915_param charp macro magic
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Feb 2017 16:26:19 +0000 (16:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Feb 2017 10:32:35 +0000 (10:32 +0000)
commit1d6aa7a339713179e5aa15f11a70e244b2334d32
treef3993180ad2b602eb195c4a95c3233a1ee3cb8af
parent718e884a0183b09a2af8c06818df5d60f94243ce
drm/i915: Add i915_param charp macro magic

Handling the dynamic charp module parameter requires us to copy it for
the error state, or remember to lock it when reading (in case it used
with 0600).

v2: Use __always_inline and __builtin_strcmp

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170221162619.15954-1-chris@chris-wilson.co.uk
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_gpu_error.c