Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=89c04849e71a7f8893474e5415cfd8bcb1b65d94
Commit:     89c04849e71a7f8893474e5415cfd8bcb1b65d94
Parent:     535ae38c9f4025faadedd17fac5f11e79e1cfdb2
Author:     Dave Jones <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 6 21:55:26 2008 -0500
Committer:  Dave Jones <[EMAIL PROTECTED]>
CommitDate: Wed Feb 6 22:57:59 2008 -0500

    [CPUFREQ] Fix sparse warning in powernow-k8
    
    arch/x86/kernel/cpu/cpufreq/powernow-k8.c:1238:9: warning: symbol '__ptr' 
shadows an earlier one
    arch/x86/kernel/cpu/cpufreq/powernow-k8.c:1238:9: originally declared here
    
    Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
---
 arch/x86/kernel/cpu/cpufreq/powernow-k8.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c 
b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
index 67f04ec..c99d59d 100644
--- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
+++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
@@ -1234,8 +1234,10 @@ static unsigned int powernowk8_get (unsigned int cpu)
        struct powernow_k8_data *data;
        cpumask_t oldmask = current->cpus_allowed;
        unsigned int khz = 0;
+       unsigned int first;
 
-       data = per_cpu(powernow_data, first_cpu(per_cpu(cpu_core_map, cpu)));
+       first = first_cpu(per_cpu(cpu_core_map, cpu));
+       data = per_cpu(powernow_data, first);
 
        if (!data)
                return -EINVAL;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to