diff options
| author | 2020-11-18 17:11:46 -0800 | |
|---|---|---|
| committer | 2021-04-29 14:54:54 -0400 | |
| commit | cf63561cbae71bc141346aa74783ebf0a7c52fbf (patch) | |
| tree | 1a16b513e30b8b6428d4c005c98028b96280929a /drivers/gpu/drm/ast/ast_main.c | |
| parent | gpu: drm: vmwgfx: convert comma to semicolon (diff) | |
| download | linux-dev-cf63561cbae71bc141346aa74783ebf0a7c52fbf.tar.xz linux-dev-cf63561cbae71bc141346aa74783ebf0a7c52fbf.zip | |
drm/vmwgfx: use min_t to replace min
Use min_t to replace min, min_t is a bit fast because min use
twice typeof.
This patch also fix check_patch.pl warning:
WARNING: min() should probably be min_t(unsigned long, num_pages,
VMW_PPN_PER_REMAP)
+unsigned long nr = min(num_pages, (unsigned long)
VMW_PPN_PER_REMAP);
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201119011146.107587-1-bernard@vivo.com
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
0 files changed, 0 insertions, 0 deletions
