]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/ttm: Add limits.h
authorMaxime Ripard <maxime@cerno.tech>
Mon, 2 Nov 2020 10:50:50 +0000 (11:50 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 2 Nov 2020 10:54:44 +0000 (11:54 +0100)
commit835f53849baaad0f69f8efbcce38a426aec104e5
tree64d7d0c40625fd540656a958eee203f032319709
parent34c38e376deac5c9d298f6ac8b9766988e10fb65
drm/nouveau/ttm: Add limits.h

It seems that a recent commit broke the nouveau compilation when swiotlb is
disabled (which is the case on our ARM defconfig for example).

Daniel says

"""
Since the proper fix is maybe stuck in the usual "drm abuses swiotlb
internals" bikeshed, maybe best if we push a fix to including limits.h
in nouveau and call it done?
"""

So let's go down the simplest path to fix our build, and goes back to it
later if needed.

Link: https://patchwork.freedesktop.org/patch/397835/
Fixes: cc3f343b7bf5 ("drm/nouveu: fix swiotlb include")
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/nouveau/nouveau_ttm.c