diff options
author | Johannes Berg <[email protected]> | 2021-12-20 11:15:22 +0100 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2022-01-14 13:30:56 +0100 |
commit | 016017a195b86d9761e91cb052438bf71207a12f (patch) | |
tree | f9a0965941d1f91345b7dcace24d3b2b330343cc /lib/test_fortify/write_overflow-strscpy.c | |
parent | 54329e6f7beea6af56c1230da293acc97d6a6ee7 (diff) |
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 <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/20211220111519.a4c8c6eff702.Ie4cf4e68698f6a9f546b83379bc52c266504424f@changeid
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions