Skip to content

Commit

Permalink
amd-gpu: Don't undefine READ and WRITE
Browse files Browse the repository at this point in the history
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: 4562236 ("drm/amd/dc: Add dc display driver (v2)")
Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Oct 23, 2018
1 parent 2e2d6f0 commit 1fcb748
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/amd/display/dc/os_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
#define LITTLEENDIAN_CPU
#endif

#undef READ
#undef WRITE
#undef FRAME_SIZE

#define dm_output_to_console(fmt, ...) DRM_DEBUG_KMS(fmt, ##__VA_ARGS__)
Expand Down

0 comments on commit 1fcb748

Please sign in to comment.