diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-03-18 18:08:21 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-03-18 18:08:21 -0400 |
commit | 4b560fde06aeb342f3ff0bce924627ab722d251a (patch) | |
tree | 0ef357c410d73259731752021c2839420a1b79ad /drivers/char/drm | |
parent | 99da6d861c659bb1a961b70f50fad268b9ed5a5f (diff) |
drm: fix warning in drm_fops.c
drivers/char/drm/drm_fops.c: In function 'drm_setup':
drivers/char/drm/drm_fops.c:60: warning: comparison of distinct pointer types lacks a cast
Unfortunately PAGE_SIZE has different types on different architectures.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r-- | drivers/char/drm/drm_fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_fops.c b/drivers/char/drm/drm_fops.c index afe5f07f2e17..314abd9d6510 100644 --- a/drivers/char/drm/drm_fops.c +++ b/drivers/char/drm/drm_fops.c | |||
@@ -57,7 +57,7 @@ static int drm_setup(drm_device_t * dev) | |||
57 | dev->magicfree.next = NULL; | 57 | dev->magicfree.next = NULL; |
58 | 58 | ||
59 | /* prebuild the SAREA */ | 59 | /* prebuild the SAREA */ |
60 | sareapage = max(SAREA_MAX, PAGE_SIZE); | 60 | sareapage = max_t(unsigned, SAREA_MAX, PAGE_SIZE); |
61 | i = drm_addmap(dev, 0, sareapage, _DRM_SHM, _DRM_CONTAINS_LOCK, &map); | 61 | i = drm_addmap(dev, 0, sareapage, _DRM_SHM, _DRM_CONTAINS_LOCK, &map); |
62 | if (i != 0) | 62 | if (i != 0) |
63 | return i; | 63 | return i; |