Arnd Bergmann c02216acf4 radeon: hide pointless #warning when compile testing
In randconfig testing, we sometimes get this warning:

drivers/gpu/drm/radeon/radeon_object.c: In function 'radeon_bo_create':
drivers/gpu/drm/radeon/radeon_object.c:242:2: error: #warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance thanks to write-combining [-Werror=cpp]
 #warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \

This is rather annoying since almost all other code produces no build-time
output unless we have found a real bug. We already fixed this in the
amdgpu driver in commit 31bb90f1cd08 ("drm/amdgpu: shut up #warning for
compile testing") by adding a CONFIG_COMPILE_TEST check last year and
agreed to do the same here, but both Michel and I then forgot about it
until I came across the issue again now.

For stable kernels, as this is one of very few remaining randconfig
warnings in 4.14.

Cc: stable@vger.kernel.org
Link: https://patchwork.kernel.org/patch/9550009/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-02-26 23:09:33 -05:00
..
2018-01-30 18:05:25 +01:00
2018-02-01 11:35:46 +10:00
2018-02-06 09:59:40 -08:00
2018-02-16 09:36:04 +10:00
2018-02-16 09:29:27 +10:00
2018-02-16 09:29:27 +10:00
2018-01-18 09:32:15 +10:00
2018-02-16 09:29:27 +10:00
2017-12-27 19:00:09 -05:00
2018-02-16 09:29:27 +10:00
2018-02-19 14:19:04 -05:00
2017-11-15 20:42:10 -08:00
2018-02-16 09:29:27 +10:00
2017-12-21 11:10:20 +10:00
2018-02-16 09:29:27 +10:00
2018-02-16 09:29:27 +10:00
2017-12-19 21:37:24 +10:00
2017-12-19 21:37:24 +10:00
2017-11-23 12:31:49 +02:00
2018-01-18 09:32:15 +10:00
2017-11-15 20:42:10 -08:00
2018-01-25 11:42:25 +10:00
2018-01-24 15:49:04 -05:00