Skip to contentSkip to conversation

mm/memory.c: EXPORT_UNUSED_SYMBOL

PATCH In review Adrian Bunk 2 participants 2 messages Jun 30, 2006 – Jul 1, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/memory.c: EXPORT_UNUSED_SYMBOL

This patch marks an unused export as EXPORT_UNUSED_SYMBOL.

mm/memory.c renamed from mm/memory.c.old +1 -1
@@ -1863,7 +1863,7 @@
 
 	return 0;
 }
-EXPORT_SYMBOL(vmtruncate_range);
+EXPORT_UNUSED_SYMBOL(vmtruncate_range);  /*  June 2006  */
 
 /* 
  * Primitive swap readahead code. We simply read an aligned block of
#1 lore raw

mm/memory.c line 1866

Quoted 2 lines · On Fri, 30 Jun 2006 13:32:40 +0200 Adrian Bunk <[email protected]> wrote:
mm/memory.c renamed from mm/memory.c.old +1 -1
-EXPORT_SYMBOL(vmtruncate_range);
+EXPORT_UNUSED_SYMBOL(vmtruncate_range);  /*  June 2006  */

vmtruncate_range() is a sensible-looking API, but it's purely for MADV_REMOVE and I don't think it's a thing we intended that filesystems be using, and I don't think that it's a thing which we want to be supporting as an export unless there's a good reason.

So yes, let's give this a try.