+ __percpu_alloc_mask-has-to-be-__always_inline-in-up-case.patch added to -mm tree

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

 



The patch titled

     __percpu_alloc_mask() has to be __always_inline in UP case

has been added to the -mm tree.  Its filename is

     __percpu_alloc_mask-has-to-be-__always_inline-in-up-case.patch

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

------------------------------------------------------
Subject: __percpu_alloc_mask() has to be __always_inline in UP case
From: Al Viro <viro@xxxxxxxxxxxxxxxx>

...  or we'll end up with cpu_online_map being evaluated on UP.  In
modules.  cpumask.h is very careful to avoid that, and for a very good
reason.  So should we...

PS: yes, it really triggers (on alpha).

Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/percpu.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/percpu.h~__percpu_alloc_mask-has-to-be-__always_inline-in-up-case include/linux/percpu.h
--- a/include/linux/percpu.h~__percpu_alloc_mask-has-to-be-__always_inline-in-up-case
+++ a/include/linux/percpu.h
@@ -74,7 +74,7 @@ static inline int __percpu_populate_mask
 	return 0;
 }
 
-static inline void *__percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t *mask)
+static __always_inline void *__percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t *mask)
 {
 	return kzalloc(size, gfp);
 }
_

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

origin.patch
__percpu_alloc_mask-has-to-be-__always_inline-in-up-case.patch
git-netdev-all.patch
git-powerpc.patch
slab-leaks3-default-y.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