2005-10-17 00:26:21

by Ben Dooks

[permalink] [raw]
Subject: mm/ sparse cleanups

Fix the following sparse warnings from the mm directory.

The vread() and vwrite() calls have been added to the
include/linux/vmalloc.h file, as they are used by
drivers/char/mem.c. We do not bother exporting these
as drivers/char/mem.c can only be built into the kernel.

All the rest have been marked static as they are only
being used in their relevant files.

mm/slab.c:305:30: warning: symbol 'initkmem_list3' was not declared. Should it be static?
mm/page_alloc.c:369:6: warning: symbol '__free_pages_ok' was not declared. Should it be static?
mm/page_alloc.c:1138:6: warning: symbol '__get_page_state' was not declared. Should it be static?
mm/page_alloc.c:1688:6: warning: symbol 'zone_init_free_lists' was not declared. Should it be static?
mm/page_alloc.c:1699:6: warning: symbol 'zonetable_add' was not declared. Should it be static?
mm/vmalloc.c:289:6: warning: symbol '__vunmap' was not declared. Should it be static?
mm/vmalloc.c:521:6: warning: symbol 'vread' was not declared. Should it be static?
mm/vmalloc.c:559:6: warning: symbol 'vwrite' was not declared. Should it be static?

Signed-off-by: Ben Dooks <[email protected]>


Attachments:
(No filename) (1.12 kB)
2614-rc4-mm-sparse-fixes.patch (3.18 kB)
Download all attachments