lkml.org 
[lkml]   [2005]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[-mm patch] dummy mark_rodata_ro() should be static
On Wed, Nov 23, 2005 at 11:35:05PM +0100, Adrian Bunk wrote:

> Every inline dummy function should be static.
>...

Sorry, the patch was incomplete.

Updated patch below.

cu
Adrian


<-- snip -->


Every inline dummy function should be static.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

include/asm-i386/cacheflush.h | 2 ++
include/asm-x86_64/cacheflush.h | 3 +++
init/main.c | 2 +-
3 files changed, 6 insertions(+), 1 deletion(-)

--- linux-2.6.15-rc2-mm1/include/asm-i386/cacheflush.h.old 2005-11-24 05:55:28.000000000 +0100
+++ linux-2.6.15-rc2-mm1/include/asm-i386/cacheflush.h 2005-11-24 06:09:24.000000000 +0100
@@ -31,6 +31,8 @@
void kernel_map_pages(struct page *page, int numpages, int enable);
#endif

+#ifdef CONFIG_DEBUG_RODATA
void mark_rodata_ro(void);
+#endif

#endif /* _I386_CACHEFLUSH_H */
--- linux-2.6.15-rc2-mm1/include/asm-x86_64/cacheflush.h.old 2005-11-24 06:12:03.000000000 +0100
+++ linux-2.6.15-rc2-mm1/include/asm-x86_64/cacheflush.h 2005-11-24 06:11:01.000000000 +0100
@@ -26,6 +26,9 @@
void global_flush_tlb(void);
int change_page_attr(struct page *page, int numpages, pgprot_t prot);
int change_page_attr_addr(unsigned long addr, int numpages, pgprot_t prot);
+
+#ifdef CONFIG_DEBUG_RODATA
void mark_rodata_ro(void);
+#endif

#endif /* _X8664_CACHEFLUSH_H */
--- linux-2.6.15-rc2-mm1/init/main.c.old 2005-11-24 05:56:17.000000000 +0100
+++ linux-2.6.15-rc2-mm1/init/main.c 2005-11-24 06:09:54.000000000 +0100
@@ -101,7 +101,7 @@
static inline void acpi_early_init(void) { }
#endif
#ifndef CONFIG_DEBUG_RODATA
-inline void mark_rodata_ro(void) { }
+static inline void mark_rodata_ro(void) { }
#endif

#ifdef CONFIG_TC

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

\
 
 \ /
  Last update: 2005-11-24 06:16    [W:0.239 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site