diff options
author | Sergei Trofimovich <slyfox@inbox.ru> | 2009-06-16 18:33:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 22:47:44 -0400 |
commit | 168f5ac668f63dfb64439766e3ef9e866b83719d (patch) | |
tree | ddefb5678ffc15ac6ddec66e281d3f9c8a75fa0b /include/linux/mm.h | |
parent | aca8bf323edd31ad462dc98c107c23a5c6022ca2 (diff) |
mm cleanup: shmem_file_setup: 'char *' -> 'const char *' for name argument
As function shmem_file_setup does not modify/allocate/free/pass given
filename - mark it as const.
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index f0473a88ca2e..d88d6fc530ad 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -724,7 +724,7 @@ static inline int shmem_lock(struct file *file, int lock, | |||
724 | return 0; | 724 | return 0; |
725 | } | 725 | } |
726 | #endif | 726 | #endif |
727 | struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags); | 727 | struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags); |
728 | 728 | ||
729 | int shmem_zero_setup(struct vm_area_struct *); | 729 | int shmem_zero_setup(struct vm_area_struct *); |
730 | 730 | ||