diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-10-22 22:08:53 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-10-22 22:08:53 +0000 |
commit | 86e6325e5ab848c15c422f20133445fe6c1caa09 (patch) | |
tree | 8c4699b4ddac738ed005d5f4aedd9dae4c628bed /linux | |
parent | 4e6ddcbb698c029b407d5dc43348c6e422a36705 (diff) |
- Add DRM_GET_PRIV_WITH_RETURN macro. This can be used in shared code to
get the drm_file_t * based on the filp passed in ioctl handlers.
- Use this macro on BSD for simplification and improve its error reporting.
Make failure to find the drm_file_t * print as an error, not debug.
This failure may be part of the problem with KDE.
- Make debug and error print macros include the pid on BSD.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drm_os_linux.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drm_os_linux.h b/linux/drm_os_linux.h index 38a5769e..cf7d7c2d 100644 --- a/linux/drm_os_linux.h +++ b/linux/drm_os_linux.h @@ -83,6 +83,8 @@ typedef void irqreturn_t; /** 'free' without the overhead of DRM(free)() */ #define DRM_FREE(x,size) kfree(x) +#define DRM_GET_PRIV_WITH_RETURN(_priv, _filp) _priv = _filp->private_data + /** * Get the pointer to the SAREA. * |