Fixes: 7ec72cfedf20 ("page_pool: refurbish version of page_pool code")
Signed-off-by: Fengguang Wu <fengguang...@intel.com>
---
 page_pool.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/net/core/page_pool.c b/net/core/page_pool.c
index 1bf4e17..ec1b010 100644
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
@@ -14,8 +14,8 @@
 #include <linux/page-flags.h>
 #include <linux/mm.h> /* for __put_page() */
 
-int page_pool_init(struct page_pool *pool,
-                  const struct page_pool_params *params)
+static int page_pool_init(struct page_pool *pool,
+                         const struct page_pool_params *params)
 {
        unsigned int ring_qsize = 1024; /* Default */
 
@@ -195,8 +195,8 @@ static void __page_pool_return_page(struct page_pool *pool, 
struct page *page)
         */
 }
 
-bool __page_pool_recycle_into_ring(struct page_pool *pool,
-                                  struct page *page)
+static bool __page_pool_recycle_into_ring(struct page_pool *pool,
+                                         struct page *page)
 {
        int ret;
        /* BH protection not needed if current is serving softirq */
@@ -264,7 +264,7 @@ void __page_pool_put_page(struct page_pool *pool,
 }
 EXPORT_SYMBOL(__page_pool_put_page);
 
-void __page_pool_empty_ring(struct page_pool *pool)
+static void __page_pool_empty_ring(struct page_pool *pool)
 {
        struct page *page;
 
@@ -279,7 +279,7 @@ void __page_pool_empty_ring(struct page_pool *pool)
        }
 }
 
-void __page_pool_destroy_rcu(struct rcu_head *rcu)
+static void __page_pool_destroy_rcu(struct rcu_head *rcu)
 {
        struct page_pool *pool;
 

Reply via email to