Browse Source

amd-gpu: Don't undefine READ and WRITE

Remove the undefinition of READ and WRITE because these constants may be
used elsewhere in subsequently included header files, thus breaking them.

These constants don't actually appear to be used in the driver, so the
undefinition seems pointless.

Fixes: 4562236b3bc0 ("drm/amd/dc: Add dc display driver (v2)")
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells 6 years ago
parent
commit
1fcb748d18
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/gpu/drm/amd/display/dc/os_types.h

+ 0 - 2
drivers/gpu/drm/amd/display/dc/os_types.h

@@ -40,8 +40,6 @@
 #define LITTLEENDIAN_CPU
 #define LITTLEENDIAN_CPU
 #endif
 #endif
 
 
-#undef READ
-#undef WRITE
 #undef FRAME_SIZE
 #undef FRAME_SIZE
 
 
 #define dm_output_to_console(fmt, ...) DRM_DEBUG_KMS(fmt, ##__VA_ARGS__)
 #define dm_output_to_console(fmt, ...) DRM_DEBUG_KMS(fmt, ##__VA_ARGS__)