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>] [day] [month] [year] [list]
Date:	Fri, 13 Jun 2008 01:11:25 +0300
From:	Adrian Bunk <bunk@...nel.org>
To:	takata@...ux-m32r.org
Cc:	linux-m32r@...linux-m32r.org, linux-kernel@...r.kernel.org
Subject: [2.6 patch] m32r/mm/: cleanups

This patch contains the following cleanups:
- make the following needlessly global code static:
  - discontig.c: m32r_node_data[]
  - init.c: reservedpages_count()
- remove the following unused code:
  - mmu.S: m32r_itlb_entrys
  - mmu.S: m32r_otlb_entrys

Signed-off-by: Adrian Bunk <bunk@...nel.org>

---

 arch/m32r/mm/discontig.c |    2 +-
 arch/m32r/mm/init.c      |    2 +-
 arch/m32r/mm/mmu.S       |    3 ---
 3 files changed, 2 insertions(+), 5 deletions(-)

ca2709395882cca4328ddb10620f1a6ef4ddb070 diff --git a/arch/m32r/mm/discontig.c b/arch/m32r/mm/discontig.c
index 07c1af7..39d2e4e 100644
--- a/arch/m32r/mm/discontig.c
+++ b/arch/m32r/mm/discontig.c
@@ -22,7 +22,7 @@ struct pglist_data *node_data[MAX_NUMNODES];
 EXPORT_SYMBOL(node_data);
 static bootmem_data_t node_bdata[MAX_NUMNODES] __initdata;
 
-pg_data_t m32r_node_data[MAX_NUMNODES];
+static pg_data_t m32r_node_data[MAX_NUMNODES];
 
 /* Memory profile */
 typedef struct {
diff --git a/arch/m32r/mm/init.c b/arch/m32r/mm/init.c
index bbd97c8..2fdbc45 100644
--- a/arch/m32r/mm/init.c
+++ b/arch/m32r/mm/init.c
@@ -149,7 +149,7 @@ void __init paging_init(void)
 	hole_pages = zone_sizes_init();
 }
 
-int __init reservedpages_count(void)
+static int __init reservedpages_count(void)
 {
 	int reservedpages, nid, i;
 
diff --git a/arch/m32r/mm/mmu.S b/arch/m32r/mm/mmu.S
index 49a6d16..484b7ed 100644
--- a/arch/m32r/mm/mmu.S
+++ b/arch/m32r/mm/mmu.S
@@ -342,9 +342,6 @@ clear_tlb:
 ;;
 	jmp	r14
 
-ENTRY(m32r_itlb_entrys)
-ENTRY(m32r_otlb_entrys)
-
 #endif  /* CONFIG_MMU */
 
 	.end

--
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