mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ANDROID: dma-buf: heaps: fix a warning in dmabuf page pools
dmabuf_page_pool_init_shrinker needs to be static to prevent a warning
when compiling with -Wmissing-prototypes. Change it to be static.
Fixes: e7dac4c323 ("ANDROID: dma-buf: heaps: Add a shrinker controlled page pool")
Bug: 168742043
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I64184cf4062e33c14a60b9c3d505db922f2b9c0b
This commit is contained in:
@@ -239,7 +239,7 @@ struct shrinker pool_shrinker = {
|
||||
.batch = 0,
|
||||
};
|
||||
|
||||
int dmabuf_page_pool_init_shrinker(void)
|
||||
static int dmabuf_page_pool_init_shrinker(void)
|
||||
{
|
||||
return register_shrinker(&pool_shrinker);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user