From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Buesch Date: Sun, 06 Jun 2004 13:38:52 +0000 Subject: Re: udev zombies Message-Id: <200406061538.53589.mbuesch@freenet.de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_s5xwAnd+/omfND6" List-Id: References: <200406011914.13245.mbuesch@freenet.de> In-Reply-To: <200406011914.13245.mbuesch@freenet.de> To: linux-hotplug@vger.kernel.org --Boundary-00=_s5xwAnd+/omfND6 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 06 June 2004 15:16, you wrote: > It would be great, if you are able to test it another time with the reenabled > regparms. The attached patch fixes the whole stuff for me. I imported some macros from the kernel. Ok, or do you prefer other macro-names? > thanks, > Kay - -- Regards Michael Buesch [ http://www.tuxsoft.de.vu ] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAwx5sFGK1OIvVOP4RAmsvAJ44nS0AMWlCi/xWIMacdfB/hsfK2wCg3O87 VksGYDNITbTFdpH1NzF44A0= =KCFA -----END PGP SIGNATURE----- --Boundary-00=_s5xwAnd+/omfND6 Content-Type: text/x-diff; charset="iso-8859-1"; name="udev-sighandler.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="udev-sighandler.diff" ===== udevd.c 1.32 vs edited ===== --- 1.32/udevd.c 2004-05-21 06:13:45 +02:00 +++ edited/udevd.c 2004-06-06 15:27:05 +02:00 @@ -306,7 +306,7 @@ return; } -static void sig_handler(int signum) +asmlinkage static void sig_handler(int signum) { int rc; switch (signum) { @@ -325,7 +325,7 @@ goto do_write; break; default: - dbg("unhandled signal"); + dbg("unhandled signal: %d", signum); return; } ===== udev.c 1.56 vs edited ===== --- 1.56/udev.c 2004-03-25 00:21:41 +01:00 +++ edited/udev.c 2004-06-06 15:27:31 +02:00 @@ -55,7 +55,7 @@ } #endif -static void sig_handler(int signum) +asmlinkage static void sig_handler(int signum) { switch (signum) { case SIGINT: @@ -63,7 +63,7 @@ udevdb_exit(); exit(20 + signum); default: - dbg("unhandled signal"); + dbg("unhandled signal: %d", signum); } } ===== udev.h 1.57 vs edited ===== --- 1.57/udev.h 2004-04-01 04:12:12 +02:00 +++ edited/udev.h 2004-06-06 15:26:21 +02:00 @@ -40,6 +40,10 @@ /* length of public data */ #define UDEVICE_LEN (offsetof(struct udevice, bus_id)) +#define asmlinkage __attribute__((regparm(0))) +#define FASTCALL(x) x __attribute__((regparm(3))) +#define fastcall __attribute__((regparm(3))) + struct udevice { char name[NAME_SIZE]; char owner[OWNER_SIZE]; --Boundary-00=_s5xwAnd+/omfND6-- ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel