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]
Date:	Mon, 21 Dec 2015 23:47:48 +0000
From:	Al Viro <viro@...IV.linux.org.uk>
To:	linux-kernel@...r.kernel.org
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>
Subject: [POC][PATCH 75/83] kill __get_free_page()

From: Al Viro <viro@...iv.linux.org.uk>

Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
---
 drivers/acpi/apei/ghes.c | 2 +-
 include/linux/gfp.h      | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index 1d074de..3c02819 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -223,7 +223,7 @@ static int ghes_estatus_pool_expand(unsigned long len)
 		return 0;
 	pages = (ghes_estatus_pool_size_request - size) / PAGE_SIZE;
 	for (i = 0; i < pages; i++) {
-		addr = __get_free_page(GFP_KERNEL);
+		addr = (unsigned long)get_free_page(GFP_KERNEL);
 		if (!addr)
 			return -ENOMEM;
 		ret = gen_pool_add(ghes_estatus_pool, addr, PAGE_SIZE, -1);
diff --git a/include/linux/gfp.h b/include/linux/gfp.h
index bb1626a..c929a04 100644
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -485,9 +485,6 @@ void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask);
 #define get_free_page(gfp_mask) \
 		get_free_pages((gfp_mask), 0)
 
-#define __get_free_page(gfp_mask) \
-		__get_free_pages((gfp_mask), 0)
-
 #define get_dma_pages(gfp_mask, order) \
 		get_free_pages((gfp_mask) | GFP_DMA, (order))
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ