fix warning: unused variable powernow-k6.c

fix warning: unused variable powernow-k6.c

Post by Joe DiMartin » Sat, 07 Jun 2003 00:30:07



simple fix to remove compiler warning

===== arch/i386/kernel/cpu/cpufreq/powernow-k6.c 1.14 vs edited =====
--- 1.14/arch/i386/kernel/cpu/cpufreq/powernow-k6.c     Mon Mar 17 05:53:03 2003

 static int powernow_k6_cpu_init(struct cpufreq_policy *policy)
 {
-       struct cpuinfo_x86 *c = cpu_data;
        unsigned int i;

        if (policy->cpu != 0)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. [PATCH][TRIVIAL] cpufreq/powernow-k6.c : eliminate unused variable

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or
higher.
# This patch includes the following deltas:
#                  ChangeSet    1.1427  -> 1.1428
#       arch/i386/kernel/cpu/cpufreq/powernow-k6.c      1.14    -> 1.15  
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------

# Eliminate a compile-time warning.
# --------------------------------------------
#
diff -Nru a/arch/i386/kernel/cpu/cpufreq/powernow-k6.c
b/arch/i386/kernel/cpu/cpufreq/powernow-k6.c
--- a/arch/i386/kernel/cpu/cpufreq/powernow-k6.c        Thu May 29 09:57:14
2003
+++ b/arch/i386/kernel/cpu/cpufreq/powernow-k6.c        Thu May 29 09:57:14

 static int powernow_k6_cpu_init(struct cpufreq_policy *policy)
 {
-       struct cpuinfo_x86 *c = cpu_data;
        unsigned int i;

        if (policy->cpu != 0)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. one big lib vs. many small libs

3. cpufreq: powernow-k6 cleanup

4. background ssh port forwarding

5. 2.4.19-pre10-ac1: Hardcoded cpu_khz in powernow-k6.c

6. NETWORK General Sniffer

7. fix warning: unused variable longrun.c

8. kicked out

9. Unused variable warning in ac97_codec.c

10. GCC: "unused variable" warning not reported

11. PATCH: split up ide-pci.c:setup_host_channel to silence unused variable warning

12. [8/8] fix unused function warning in drivers/block/floppy.c

13. warning and unused in sctp.h