]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: fix compilation on ARCH=um
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Dec 2021 10:15:22 +0000 (11:15 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Jan 2022 12:30:56 +0000 (13:30 +0100)
commita1adc5d0b3fd062c1e3468b0cb6b2b0fcd6dce0e
treef9a0965941d1f91345b7dcace24d3b2b330343cc
parent45c41bcf2d54cd6410786b469cb25729be253e29
drm/ttm: fix compilation on ARCH=um

Even if it's probably not really useful, it can get selected
by e.g. randconfig builds, and then failing to compile is an
annoyance. Unfortunately, it's hard to fix in Kconfig, since
DRM_TTM is selected by many things that don't really depend
on any specific architecture, and just depend on PCI (which
is indeed now available in ARCH=um via simulation/emulation).

Fix this in the code instead by just ifdef'ing the relevant
two lines that depend on "real X86".

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211220111519.a4c8c6eff702.Ie4cf4e68698f6a9f546b83379bc52c266504424f@changeid
drivers/gpu/drm/ttm/ttm_module.c