Skip to content

Commit

Permalink
drm/radeon: fix warning due to PAGE_SIZE max
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Dec 29, 2008
1 parent 57a6297 commit bdf539a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ int radeon_master_create(struct drm_device *dev, struct drm_master *master)
return -ENOMEM;

/* prebuild the SAREA */
sareapage = max(SAREA_MAX, PAGE_SIZE);
sareapage = max_t(unsigned long, SAREA_MAX, PAGE_SIZE);
ret = drm_addmap(dev, 0, sareapage, _DRM_SHM, _DRM_CONTAINS_LOCK|_DRM_DRIVER,
&master_priv->sarea);
if (ret) {
Expand Down

0 comments on commit bdf539a

Please sign in to comment.