* [PATCH 12/12] cpumask: remove old cpu_*_map.
@ 2012-02-15 4:58 Rusty Russell
2012-02-15 9:36 ` Srivatsa S. Bhat
0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2012-02-15 4:58 UTC (permalink / raw)
To: linux-kernel
From: Rusty Russell <rusty@rustcorp.com.au>
These are obsolete: cpu_*_mask provides (const) pointers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
include/linux/cpumask.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
--- a/include/linux/cpumask.h
+++ b/include/linux/cpumask.h
@@ -763,12 +763,6 @@ static inline const struct cpumask *get_
*
*/
#ifndef CONFIG_DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
-/* These strip const, as traditionally they weren't const. */
-#define cpu_possible_map (*(cpumask_t *)cpu_possible_mask)
-#define cpu_online_map (*(cpumask_t *)cpu_online_mask)
-#define cpu_present_map (*(cpumask_t *)cpu_present_mask)
-#define cpu_active_map (*(cpumask_t *)cpu_active_mask)
-
#define cpumask_of_cpu(cpu) (*get_cpu_mask(cpu))
#define CPU_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(NR_CPUS)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 12/12] cpumask: remove old cpu_*_map.
2012-02-15 4:58 [PATCH 12/12] cpumask: remove old cpu_*_map Rusty Russell
@ 2012-02-15 9:36 ` Srivatsa S. Bhat
0 siblings, 0 replies; 2+ messages in thread
From: Srivatsa S. Bhat @ 2012-02-15 9:36 UTC (permalink / raw)
To: Rusty Russell; +Cc: linux-kernel, Venkatesh Pallipadi, akpm
On 02/15/2012 10:28 AM, Rusty Russell wrote:
> From: Rusty Russell <rusty@rustcorp.com.au>
>
> These are obsolete: cpu_*_mask provides (const) pointers.
>
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> ---
This one should be preceded by a cleanup patch in ia64.
I will revise the one I posted at https://lkml.org/lkml/2012/2/14/355
and post it soon. And then you can include my patch in your patchset...
Other than that, this looks fine.
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Regards,
Srivatsa S. Bhat
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-15 9:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-15 4:58 [PATCH 12/12] cpumask: remove old cpu_*_map Rusty Russell
2012-02-15 9:36 ` Srivatsa S. Bhat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).