fix user-mode-linux 32bit compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

on openSUSE-12.2 I tried to build a 3.4.y UML 32bit kernel
using
zypper -n install gcc-32bit
export ARCH=um
linux32 make menuconfig
time linux32 make -j8

and this only succeeded after applying the attached patch,
otherwise gcc-4.7 complains about differently typed function definitions

Ciao
Bernhard M.
- -- 
 (o_
 //\
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix
Imendörffer, HRB 16746 (AG Nürnberg)
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGiZZUACgkQSTYLOx37oWSzmwCdHm6VR7lASu+nlv7YT25csoBC
CRgAoMTSZ0uJP8zY8smBG7KjtDdpfyzN
=taF2
-----END PGP SIGNATURE-----
>From 8a07d84de59a2cb7bea884f0201c65363631108a Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bernhard+gitcommit lsmod de>
Date: Sun, 26 May 2013 21:21:33 +0200
Subject: [PATCH] fix 32-bit user-mode-linux compilation

Signed-off-by: Bernhard M. Wiedemann <bwiedemann@xxxxxxx>
---
 arch/x86/um/sys_call_table_32.c |    2 +-
 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)

diff --git a/arch/x86/um/sys_call_table_32.c b/arch/x86/um/sys_call_table_32.c
index 416bd40..e7c9b52 100644
--- a/arch/x86/um/sys_call_table_32.c
+++ b/arch/x86/um/sys_call_table_32.c
@@ -41,7 +41,7 @@
 
 typedef void (*sys_call_ptr_t)(void);
 
-extern void sys_ni_syscall(void);
+extern asmlinkage void sys_ni_syscall(void);
 
 const sys_call_ptr_t sys_call_table[] __cacheline_aligned = {
 	/*
-- 
1.7.10.4


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]