diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-13 05:50:25 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-13 05:50:25 -0500 |
commit | 29c0177e6a4ac094302bed54a1d4bbb6b740a9ef (patch) | |
tree | d8ee57c5b40baa3f53d607b719344dd20f8c85a0 /kernel/trace | |
parent | 98a79d6a50181ca1ecf7400eda01d5dc1bc0dbf0 (diff) |
cpumask: change cpumask_scnprintf, cpumask_parse_user, cpulist_parse, and cpulist_scnprintf to take pointers.
Impact: change calling convention of existing cpumask APIs
Most cpumask functions started with cpus_: these have been replaced by
cpumask_ ones which take struct cpumask pointers as expected.
These four functions don't have good replacement names; fortunately
they're rarely used, so we just change them over.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: paulus@samba.org
Cc: mingo@redhat.com
Cc: tony.luck@intel.com
Cc: ralf@linux-mips.org
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: cl@linux-foundation.org
Cc: srostedt@redhat.com
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index d86e3252f300..d2e75479dc50 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -2126,7 +2126,7 @@ tracing_cpumask_read(struct file *filp, char __user *ubuf, | |||
2126 | 2126 | ||
2127 | mutex_lock(&tracing_cpumask_update_lock); | 2127 | mutex_lock(&tracing_cpumask_update_lock); |
2128 | 2128 | ||
2129 | len = cpumask_scnprintf(mask_str, count, tracing_cpumask); | 2129 | len = cpumask_scnprintf(mask_str, count, &tracing_cpumask); |
2130 | if (count - len < 2) { | 2130 | if (count - len < 2) { |
2131 | count = -EINVAL; | 2131 | count = -EINVAL; |
2132 | goto out_err; | 2132 | goto out_err; |
@@ -2147,7 +2147,7 @@ tracing_cpumask_write(struct file *filp, const char __user *ubuf, | |||
2147 | int err, cpu; | 2147 | int err, cpu; |
2148 | 2148 | ||
2149 | mutex_lock(&tracing_cpumask_update_lock); | 2149 | mutex_lock(&tracing_cpumask_update_lock); |
2150 | err = cpumask_parse_user(ubuf, count, tracing_cpumask_new); | 2150 | err = cpumask_parse_user(ubuf, count, &tracing_cpumask_new); |
2151 | if (err) | 2151 | if (err) |
2152 | goto err_unlock; | 2152 | goto err_unlock; |
2153 | 2153 | ||