drm/i915: Do not spam log with missing arch support
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 31 Jan 2022 16:59:26 +0000 (08:59 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 3 Feb 2022 09:06:56 +0000 (01:06 -0800)
commitd30b9ae93bf57414160503d3cc62735adeb61557
tree52fb5fd4df56d02719b31bf1877d8e1582db50a6
parent22ba60f617bd1cfbfae72f73c93ef9507a305c59
drm/i915: Do not spam log with missing arch support

Following what was done in drm_cache.c, when the stub for
remap_io_mapping() was added in commit 67c430bbaae1 ("drm/i915: Skip
remap_io_mapping() for non-x86 platforms"), it included a log message
with pr_err().  However just the warning is already enough and switching
to WARN_ONCE() allows us to keep the log message while avoiding log
spam.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220131165926.3230642-4-lucas.demarchi@intel.com
drivers/gpu/drm/i915/i915_mm.h