rpms/kernel/devel kernel.spec, 1.23, 1.24 linux-2.6-compile-fixes.patch, 1.154, 1.155

Dave Jones (davej) fedora-extras-commits at redhat.com
Sat Jul 21 00:30:55 UTC 2007


Author: davej

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20467

Modified Files:
	kernel.spec linux-2.6-compile-fixes.patch 
Log Message:
fix ppc build


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- kernel.spec	20 Jul 2007 20:45:45 -0000	1.23
+++ kernel.spec	21 Jul 2007 00:30:23 -0000	1.24
@@ -1206,7 +1206,7 @@
 #
 # misc small stuff to make things compile or otherwise improve performance
 #
-#ApplyPatch linux-2.6-compile-fixes.patch
+ApplyPatch linux-2.6-compile-fixes.patch
 
 # core dump enhancement
 #ApplyPatch linux-2.6-elf-core-sysctl.patch

linux-2.6-compile-fixes.patch:

Index: linux-2.6-compile-fixes.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/linux-2.6-compile-fixes.patch,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -r1.154 -r1.155
--- linux-2.6-compile-fixes.patch	20 Jul 2007 19:52:27 -0000	1.154
+++ linux-2.6-compile-fixes.patch	21 Jul 2007 00:30:23 -0000	1.155
@@ -5,3 +5,22 @@
 # to do a compile to figure out what your diff is fixing. Thanks.
 #
 
+
+pmu_battery fails to compile as a module.
+
+ERROR: "pmu_batteries" [drivers/power/pmu_battery.ko] undefined!
+ERROR: "pmu_battery_count" [drivers/power/pmu_battery.ko] undefined!
+ERROR: "pmu_power_flags" [drivers/power/pmu_battery.ko] undefined!
+
+Signed-off-by: Dave Jones <davej at redhat.com>
+
+--- linux-2.6.22.noarch/drivers/macintosh/via-pmu.c~	2007-07-20 20:28:59.000000000 -0400
++++ linux-2.6.22.noarch/drivers/macintosh/via-pmu.c	2007-07-20 20:29:16.000000000 -0400
+@@ -171,6 +171,7 @@ int pmu_battery_count;
+ int pmu_cur_battery;
+ unsigned int pmu_power_flags = PMU_PWR_AC_PRESENT;
+ struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
++EXPORT_SYMBOL(pmu_batteries);
+ static int query_batt_timer = BATTERY_POLLING_COUNT;
+ static struct adb_request batt_req;
+ static struct proc_dir_entry *proc_pmu_batt[PMU_MAX_BATTERIES];




More information about the scm-commits mailing list