lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180330195851.GA67302@lkp-sb04>
Date:   Sat, 31 Mar 2018 03:58:51 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Jesper Dangaard Brouer <brouer@...hat.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org,
        BjörnTöpel <bjorn.topel@...el.com>,
        magnus.karlsson@...el.com, eugenia@...lanox.com,
        Jason Wang <jasowang@...hat.com>,
        John Fastabend <john.fastabend@...il.com>,
        Eran Ben Elisha <eranbe@...lanox.com>,
        Saeed Mahameed <saeedm@...lanox.com>, galp@...lanox.com,
        Jesper Dangaard Brouer <brouer@...hat.com>,
        Daniel Borkmann <borkmann@...earbox.net>,
        Alexei Starovoitov <alexei.starovoitov@...il.com>,
        Tariq Toukan <tariqt@...lanox.com>
Subject: [RFC PATCH] page_pool: page_pool_init() can be static


Fixes: 7ec72cfedf20 ("page_pool: refurbish version of page_pool code")
Signed-off-by: Fengguang Wu <fengguang.wu@...el.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;
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ