[merged] mm-cleanup-shmem_file_setup-char-const-char-for-name-argument.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     mm cleanup: shmem_file_setup: 'char *' -> 'const char *' for name argument
has been removed from the -mm tree.  Its filename was
     mm-cleanup-shmem_file_setup-char-const-char-for-name-argument.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: mm cleanup: shmem_file_setup: 'char *' -> 'const char *' for name argument
From: Sergei Trofimovich <slyfox@xxxxxxxx>

As function shmem_file_setup does not modify/allocate/free/pass given
filename - mark it as const.

Signed-off-by: Sergei Trofimovich <slyfox@xxxxxxxx>
Cc: Hugh Dickins <hugh.dickins@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/mm.h |    2 +-
 mm/shmem.c         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -puN include/linux/mm.h~mm-cleanup-shmem_file_setup-char-const-char-for-name-argument include/linux/mm.h
--- a/include/linux/mm.h~mm-cleanup-shmem_file_setup-char-const-char-for-name-argument
+++ a/include/linux/mm.h
@@ -724,7 +724,7 @@ static inline int shmem_lock(struct file
 	return 0;
 }
 #endif
-struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags);
+struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags);
 
 int shmem_zero_setup(struct vm_area_struct *);
 
diff -puN mm/shmem.c~mm-cleanup-shmem_file_setup-char-const-char-for-name-argument mm/shmem.c
--- a/mm/shmem.c~mm-cleanup-shmem_file_setup-char-const-char-for-name-argument
+++ a/mm/shmem.c
@@ -2612,7 +2612,7 @@ int shmem_unuse(swp_entry_t entry, struc
  * @size: size to be set for the file
  * @flags: VM_NORESERVE suppresses pre-accounting of the entire object size
  */
-struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
+struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags)
 {
 	int error;
 	struct file *file;
_

Patches currently in -mm which might be from slyfox@xxxxxxxx are

origin.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux