Skip to content

Commit

Permalink
drm: kill some unused DRM_PROC macros from drmP.h
Browse files Browse the repository at this point in the history
i915_gem_proc.c appears to have been the last user of the DRM_PROC_*
macros, and it has gone away.  The macros should die as well.

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Andres Salomon authored and Dave Airlie committed Nov 18, 2009
1 parent 4a92164 commit 420a457
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/drm/drmP.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,6 @@ extern void drm_ut_debug_printk(unsigned int request_level,

#endif

#define DRM_PROC_LIMIT (PAGE_SIZE-80)

#define DRM_PROC_PRINT(fmt, arg...) \
len += sprintf(&buf[len], fmt , ##arg); \
if (len > DRM_PROC_LIMIT) { *eof = 1; return len - offset; }

#define DRM_PROC_PRINT_RET(ret, fmt, arg...) \
len += sprintf(&buf[len], fmt , ##arg); \
if (len > DRM_PROC_LIMIT) { ret; *eof = 1; return len - offset; }

/*@}*/

/***********************************************************************/
Expand Down

0 comments on commit 420a457

Please sign in to comment.