diff options
author | Thierry Reding <treding@nvidia.com> | 2014-06-04 09:18:29 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-11-13 10:43:50 +0100 |
commit | 34eab43ed2483e69bc79fd2e3aaf5adfae771907 (patch) | |
tree | 6200729d3999d2bef4c952974c4b02499fc82f5f /drivers/gpu/drm/drm_prime.c | |
parent | drm/gem: Fix typo in kerneldoc (diff) | |
download | linux-34eab43ed2483e69bc79fd2e3aaf5adfae771907.tar.xz linux-34eab43ed2483e69bc79fd2e3aaf5adfae771907.zip |
drm/prime: Use unsigned type for number of pages
The number of pages can never be negative, so an unsigned type is
enough. This also matches the type of the n_pages argument of the
sg_alloc_table_from_pages() function.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/drm_prime.c')
-rw-r--r-- | drivers/gpu/drm/drm_prime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c index 78ca30808422..e15882fd45a3 100644 --- a/drivers/gpu/drm/drm_prime.c +++ b/drivers/gpu/drm/drm_prime.c @@ -669,7 +669,7 @@ int drm_prime_fd_to_handle_ioctl(struct drm_device *dev, void *data, * the driver is responsible for mapping the pages into the * importers address space for use with dma_buf itself. */ -struct sg_table *drm_prime_pages_to_sg(struct page **pages, int nr_pages) +struct sg_table *drm_prime_pages_to_sg(struct page **pages, unsigned int nr_pages) { struct sg_table *sg = NULL; int ret; |