This commit is contained in:
parent
95eef6b291
commit
4f56a39589
30
kexec-tools-parse-iomem-single-warning.diff
Normal file
30
kexec-tools-parse-iomem-single-warning.diff
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
Fix compile warnings in get_memory_ranges()
|
||||||
|
|
||||||
|
This patch fixes:
|
||||||
|
|
||||||
|
kexec/arch/i386/kexec-x86-common.c: In function ‘get_memory_ranges’:
|
||||||
|
kexec/arch/i386/kexec-x86-common.c:189: \
|
||||||
|
warning: passing argument 2 of ‘parse_iomem_single’ from incompatible pointer type
|
||||||
|
kexec/arch/i386/kexec-x86-common.c:189: \
|
||||||
|
warning: passing argument 3 of ‘parse_iomem_single’ from incompatible pointer type
|
||||||
|
|
||||||
|
Yes, that was my own code. :-(
|
||||||
|
|
||||||
|
|
||||||
|
Signed-off-by: Bernhard Walle <bwalle@suse.de>
|
||||||
|
|
||||||
|
---
|
||||||
|
kexec/arch/i386/kexec-x86-common.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/kexec/arch/i386/kexec-x86-common.c
|
||||||
|
+++ b/kexec/arch/i386/kexec-x86-common.c
|
||||||
|
@@ -181,7 +181,7 @@ int get_memory_ranges(struct memory_rang
|
||||||
|
* subset of user defined values.
|
||||||
|
*/
|
||||||
|
if (kexec_flags & KEXEC_ON_CRASH) {
|
||||||
|
- unsigned long long start, end;
|
||||||
|
+ uint64_t start, end;
|
||||||
|
|
||||||
|
ret = parse_iomem_single("Crash kernel\n", &start, &end);
|
||||||
|
if (ret != 0) {
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 26 10:05:49 CET 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
- Fix compile warning.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 24 23:00:59 CET 2008 - bwalle@suse.de
|
Mon Nov 24 23:00:59 CET 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ PreReq: %insserv_prereq %fillup_prereq
|
|||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: Tools for fast kernel loading
|
Summary: Tools for fast kernel loading
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: 46
|
Release: 47
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: kexec-bootloader
|
Source1: kexec-bootloader
|
||||||
Source2: kexec-bootloader.8.txt
|
Source2: kexec-bootloader.8.txt
|
||||||
@ -50,6 +50,7 @@ Patch11: %{name}-no-vga-output.diff
|
|||||||
Patch12: %{name}-spell.diff
|
Patch12: %{name}-spell.diff
|
||||||
Patch13: %{name}-xen-static.diff
|
Patch13: %{name}-xen-static.diff
|
||||||
Patch14: %{name}-proc-iomem-xen.diff
|
Patch14: %{name}-proc-iomem-xen.diff
|
||||||
|
Patch15: %{name}-parse-iomem-single-warning.diff
|
||||||
Url: http://ftp.kernel.org/pub/linux/kernel/people/horms/kexec-tools/
|
Url: http://ftp.kernel.org/pub/linux/kernel/people/horms/kexec-tools/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
@ -94,6 +95,7 @@ Authors:
|
|||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
%patch13 -p1
|
%patch13 -p1
|
||||||
%patch14 -p1
|
%patch14 -p1
|
||||||
|
%patch15 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{?suse_update_config -f}
|
%{?suse_update_config -f}
|
||||||
@ -161,6 +163,8 @@ install -m 0755 kexec.init ${RPM_BUILD_ROOT}/etc/init.d/kexec
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 26 2008 bwalle@suse.de
|
||||||
|
- Fix compile warning.
|
||||||
* Mon Nov 24 2008 bwalle@suse.de
|
* Mon Nov 24 2008 bwalle@suse.de
|
||||||
- Read memory map from /proc/iomem instead of /sys/firmware/memmap
|
- Read memory map from /proc/iomem instead of /sys/firmware/memmap
|
||||||
when running under Xen.
|
when running under Xen.
|
||||||
|
Loading…
Reference in New Issue
Block a user