+ constify-compat_get_bitmap-argument.patch added to -mm tree

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

 



The patch titled
     Constify compat_get_bitmap argument
has been added to the -mm tree.  Its filename is
     constify-compat_get_bitmap-argument.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Constify compat_get_bitmap argument
From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>

This means we can call it when the bitmap we want to fetch is declared
const.

Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Cc: Christoph Lameter <clameter@xxxxxxxxxxxx>
Cc: Paul Jackson <pj@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

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

diff -puN include/linux/compat.h~constify-compat_get_bitmap-argument include/linux/compat.h
--- a/include/linux/compat.h~constify-compat_get_bitmap-argument
+++ a/include/linux/compat.h
@@ -196,7 +196,7 @@ asmlinkage long compat_sys_select(int n,
 #define BITS_TO_COMPAT_LONGS(bits) \
 	(((bits)+BITS_PER_COMPAT_LONG-1)/BITS_PER_COMPAT_LONG)
 
-long compat_get_bitmap(unsigned long *mask, compat_ulong_t __user *umask,
+long compat_get_bitmap(unsigned long *mask, const compat_ulong_t __user *umask,
 		       unsigned long bitmap_size);
 long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask,
 		       unsigned long bitmap_size);
diff -puN kernel/compat.c~constify-compat_get_bitmap-argument kernel/compat.c
--- a/kernel/compat.c~constify-compat_get_bitmap-argument
+++ a/kernel/compat.c
@@ -678,7 +678,7 @@ int get_compat_sigevent(struct sigevent 
 		? -EFAULT : 0;
 }
 
-long compat_get_bitmap(unsigned long *mask, compat_ulong_t __user *umask,
+long compat_get_bitmap(unsigned long *mask, const compat_ulong_t __user *umask,
 		       unsigned long bitmap_size)
 {
 	int i, j;
_

Patches currently in -mm which might be from sfr@xxxxxxxxxxxxxxxx are

origin.patch
constify-compat_get_bitmap-argument.patch
create-compat_sys_migrate_pages.patch
wire-up-sys_migrate_pages.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