video: tegra: nvmap: Fix compile error in nvmap.h
Alex Waterman [Mon, 5 Aug 2013 23:04:44 +0000 (16:04 -0700)]
When page pools are disabled an inline function gets compiled that
has no default return. This generates a warning and causes main to
fail compilation.

Bug 1343106

Change-Id: I8ac23e43e7832c4cedff73d0a8735b51f0760af2
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/258377
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lael Jones <lajones@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

include/linux/nvmap.h

index 40003d8..224c554 100644 (file)
@@ -159,7 +159,7 @@ int nvmap_get_handle_param(struct nvmap_client *client,
 #ifdef CONFIG_NVMAP_PAGE_POOLS
 ulong nvmap_page_pool_get_unused_pages(void);
 #else
-static inline nvmap_page_pool_get_unused_pages(void)
+static inline int nvmap_page_pool_get_unused_pages(void)
 {
        return 0;
 }