Linux PARISC architecture development
 help / color / mirror / Atom feed
From: "Berthold Gunreben" <b.gunreben@web.de>
To: parisc-linux@parisc-linux.org
Subject: Re: [parisc-linux] parisc-linux.org kernel
Date: Wed, 9 Apr 2003 09:36:55 +0200	[thread overview]
Message-ID: <200304090736.h397asq19152@mailgate5.cinetic.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 978 bytes --]

grundler@dsl2.external.hp.com (Grant Grundler) schrieb am 09.04.03 07:50:28:  
> me too - I'd rather see you working on something you care about.  
> I'm very happy to see you (and several others) taking good care of 2.5.  
> And I think it's a bit much for anyone to do both - that's mostly why I  
> *haven't* been doing much with 2.5.  
  
Speaking of 2.5, I now have a running kernel 2.5.66-pa2 compiled with gcc version 3.3  
20030226 (prerelease). To be able to boot, I had to remove EISA support. There are some  
minor flaws like  
  
process `host' is using obsolete setsockopt SO_BSDCOMPAT  
  
lines in dmesg, but the system is up and running for 5 days now. I'll attach the small  
diff with signal casts, that was necessary to run the kernel. 
  
Berthold  
______________________________________________________________________________
UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an
UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sig_cast.diff --]
[-- Type: text/x-diff; name="sig_cast.diff", Size: 7484 bytes --]

--- arch/parisc/kernel/signal.c	2003/04/03 09:47:45	1.1
+++ arch/parisc/kernel/signal.c	2003/04/03 09:52:29
@@ -377,7 +377,7 @@
 give_sigsegv:
 	DBG(("setup_rt_frame sending SIGSEGV\n"));
 	if (sig == SIGSEGV)
-		ka->sa.sa_handler = SIG_DFL;
+		ka->sa.sa_handler = (void *) SIG_DFL;
 	si.si_signo = SIGSEGV;
 	si.si_errno = 0;
 	si.si_code = SI_KERNEL;
@@ -406,7 +406,7 @@
 		return 0;
 
 	if (ka->sa.sa_flags & SA_ONESHOT)
-		ka->sa.sa_handler = SIG_DFL;
+		ka->sa.sa_handler = (void *) SIG_DFL;
 
 	if (!(ka->sa.sa_flags & SA_NODEFER)) {
 		spin_lock_irq(&current->sighand->siglock);
--- drivers/char/n_tty.c	2003/04/03 09:47:53	1.1
+++ drivers/char/n_tty.c	2003/04/03 09:52:56
@@ -808,7 +808,7 @@
 int is_ignored(int sig)
 {
 	return (sigismember(&current->blocked, sig) ||
-	        current->sighand->action[sig-1].sa.sa_handler == SIG_IGN);
+	        current->sighand->action[sig-1].sa.sa_handler == (void *) SIG_IGN);
 }
 
 static void n_tty_set_termios(struct tty_struct *tty, struct termios * old)
--- fs/ncpfs/sock.c	2003/04/03 09:48:02	1.1
+++ fs/ncpfs/sock.c	2003/04/03 09:53:29
@@ -757,9 +757,9 @@
 			   What if we've blocked it ourselves?  What about
 			   alarms?  Why, in fact, are we mucking with the
 			   sigmask at all? -- r~ */
-			if (current->sighand->action[SIGINT - 1].sa.sa_handler == SIG_DFL)
+			if (current->sighand->action[SIGINT - 1].sa.sa_handler == (void *) SIG_DFL)
 				mask |= sigmask(SIGINT);
-			if (current->sighand->action[SIGQUIT - 1].sa.sa_handler == SIG_DFL)
+			if (current->sighand->action[SIGQUIT - 1].sa.sa_handler == (void *) SIG_DFL)
 				mask |= sigmask(SIGQUIT);
 		}
 		siginitsetinv(&current->blocked, mask);
--- fs/proc/array.c	2003/04/03 09:48:15	1.1
+++ fs/proc/array.c	2003/04/03 09:54:26
@@ -213,9 +213,9 @@
 
 	k = p->sighand->action;
 	for (i = 1; i <= _NSIG; ++i, ++k) {
-		if (k->sa.sa_handler == SIG_IGN)
+		if (k->sa.sa_handler == (void *) SIG_IGN)
 			sigaddset(ign, i);
-		else if (k->sa.sa_handler != SIG_DFL)
+		else if (k->sa.sa_handler != (void *) SIG_DFL)
 			sigaddset(catch, i);
 	}
 }
--- kernel/signal.c	2003/04/03 09:48:23	1.1
+++ kernel/signal.c	2003/04/03 09:56:19
@@ -139,12 +139,12 @@
 		(((sig) < SIGRTMIN)  && T(sig, SIG_KERNEL_STOP_MASK))
 
 #define sig_user_defined(t, signr) \
-	(((t)->sighand->action[(signr)-1].sa.sa_handler != SIG_DFL) &&	\
-	 ((t)->sighand->action[(signr)-1].sa.sa_handler != SIG_IGN))
+	(((t)->sighand->action[(signr)-1].sa.sa_handler != (void *) SIG_DFL) &&	\
+	 ((t)->sighand->action[(signr)-1].sa.sa_handler != (void *) SIG_IGN))
 
 #define sig_fatal(t, signr) \
 	(!T(signr, SIG_KERNEL_IGNORE_MASK|SIG_KERNEL_STOP_MASK) && \
-	 (t)->sighand->action[(signr)-1].sa.sa_handler == SIG_DFL)
+	 (t)->sighand->action[(signr)-1].sa.sa_handler == (void *) SIG_DFL)
 
 static inline int sig_ignored(struct task_struct *t, int sig)
 {
@@ -166,8 +166,8 @@
 
 	/* Is it explicitly or implicitly ignored? */
 	handler = t->sighand->action[sig-1].sa.sa_handler;
-	return   handler == SIG_IGN ||
-		(handler == SIG_DFL && sig_kernel_ignore(sig));
+	return   handler == (void *) SIG_IGN ||
+		(handler == (void *) SIG_DFL && sig_kernel_ignore(sig));
 }
 
 /*
@@ -361,8 +361,8 @@
 	int i;
 	struct k_sigaction *ka = &t->sighand->action[0];
 	for (i = _NSIG ; i != 0 ; i--) {
-		if (force_default || ka->sa.sa_handler != SIG_IGN)
-			ka->sa.sa_handler = SIG_DFL;
+		if (force_default || ka->sa.sa_handler != (void *) SIG_IGN)
+			ka->sa.sa_handler = (void *) SIG_DFL;
 		ka->sa.sa_flags = 0;
 		sigemptyset(&ka->sa.sa_mask);
 		ka++;
@@ -796,8 +796,8 @@
 	int ret;
 
 	spin_lock_irqsave(&t->sighand->siglock, flags);
-	if (t->sighand->action[sig-1].sa.sa_handler == SIG_IGN)
-		t->sighand->action[sig-1].sa.sa_handler = SIG_DFL;
+	if (t->sighand->action[sig-1].sa.sa_handler == (void *) SIG_IGN)
+		t->sighand->action[sig-1].sa.sa_handler = (void *) SIG_DFL;
 	sigdelset(&t->blocked, sig);
 	recalc_sigpending_tsk(t);
 	ret = specific_send_sig_info(sig, info, t);
@@ -812,8 +812,8 @@
 	unsigned long int flags;
 
 	spin_lock_irqsave(&t->sighand->siglock, flags);
-	if (t->sighand->action[sig-1].sa.sa_handler == SIG_IGN)
-		t->sighand->action[sig-1].sa.sa_handler = SIG_DFL;
+	if (t->sighand->action[sig-1].sa.sa_handler == (void *) SIG_IGN)
+		t->sighand->action[sig-1].sa.sa_handler = (void *) SIG_DFL;
 	sigdelset(&t->blocked, sig);
 	recalc_sigpending_tsk(t);
 	specific_send_sig_info(sig, (void *)2, t);
@@ -1267,7 +1267,7 @@
 	psig = tsk->parent->sighand;
 	spin_lock_irqsave(&psig->siglock, flags);
 	if (sig == SIGCHLD && tsk->state != TASK_STOPPED &&
-	    (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN ||
+	    (psig->action[SIGCHLD-1].sa.sa_handler == (void *) SIG_IGN ||
 	     (psig->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDWAIT))) {
 		/*
 		 * We are exiting and our parent doesn't care.  POSIX.1
@@ -1285,7 +1285,7 @@
 		 * it, just use SIG_IGN instead).
 		 */
 		tsk->exit_signal = -1;
-		if (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN)
+		if (psig->action[SIGCHLD-1].sa.sa_handler == (void *) SIG_IGN)
 			sig = 0;
 	}
 	if (sig > 0 && sig <= _NSIG)
@@ -1333,7 +1333,7 @@
 
 	sighand = parent->sighand;
 	spin_lock_irqsave(&sighand->siglock, flags);
-	if (sighand->action[SIGCHLD-1].sa.sa_handler != SIG_IGN &&
+	if (sighand->action[SIGCHLD-1].sa.sa_handler != (void *) SIG_IGN &&
 	    !(sighand->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDSTOP))
 		__group_send_sig_info(SIGCHLD, &info, parent);
 	/*
@@ -1567,9 +1567,9 @@
 		}
 
 		ka = &current->sighand->action[signr-1];
-		if (ka->sa.sa_handler == SIG_IGN) /* Do nothing.  */
+		if (ka->sa.sa_handler == (void *) SIG_IGN) /* Do nothing.  */
 			continue;
-		if (ka->sa.sa_handler != SIG_DFL) /* Run the handler.  */
+		if (ka->sa.sa_handler != (void *) SIG_DFL) /* Run the handler.  */
 			return signr;
 
 		/*
@@ -2017,8 +2017,8 @@
 		 *   (for example, SIGCHLD), shall cause the pending signal to
 		 *   be discarded, whether or not it is blocked"
 		 */
-		if (act->sa.sa_handler == SIG_IGN ||
-		    (act->sa.sa_handler == SIG_DFL &&
+		if (act->sa.sa_handler == (void *) SIG_IGN ||
+		    (act->sa.sa_handler == (void *) SIG_DFL &&
 		     sig_kernel_ignore(sig))) {
 			/*
 			 * This is a fairly rare case, so we only take the
--- kernel/workqueue.c	2003/04/03 09:48:44	1.1
+++ kernel/workqueue.c	2003/04/03 09:56:48
@@ -183,7 +183,7 @@
 	complete(&startup->done);
 
 	/* Install a handler so SIGCLD is delivered */
-	sa.sa.sa_handler = SIG_IGN;
+	sa.sa.sa_handler = (void *) SIG_IGN;
 	sa.sa.sa_flags = 0;
 	siginitset(&sa.sa.sa_mask, sigmask(SIGCHLD));
 	do_sigaction(SIGCHLD, &sa, (struct k_sigaction *)0);
--- net/sunrpc/clnt.c	2003/04/03 09:48:54	1.1
+++ net/sunrpc/clnt.c	2003/04/03 09:57:10
@@ -255,9 +255,9 @@
 	/* Turn off various signals */
 	if (clnt->cl_intr) {
 		struct k_sigaction *action = current->sighand->action;
-		if (action[SIGINT-1].sa.sa_handler == SIG_DFL)
+		if (action[SIGINT-1].sa.sa_handler == (void *) SIG_DFL)
 			sigallow |= sigmask(SIGINT);
-		if (action[SIGQUIT-1].sa.sa_handler == SIG_DFL)
+		if (action[SIGQUIT-1].sa.sa_handler == (void *) SIG_DFL)
 			sigallow |= sigmask(SIGQUIT);
 	}
 	spin_lock_irqsave(&current->sighand->siglock, irqflags);
--- scripts/kconfig/mconf.c	2003/04/03 09:49:04	1.1
+++ scripts/kconfig/mconf.c	2003/04/03 09:57:47
@@ -213,7 +213,7 @@
 	sigaddset(&sset, SIGINT);
 	sigprocmask(SIG_BLOCK, &sset, &osset);
 
-	signal(SIGINT, SIG_DFL);
+	signal(SIGINT, (void *) SIG_DFL);
 
 	sa.sa_handler = winch_handler;
 	sigemptyset(&sa.sa_mask);

             reply	other threads:[~2003-04-09  7:37 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-09  7:36 Berthold Gunreben [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-18  8:17 [parisc-linux] parisc-linux.org kernel Joel Soete
2003-04-18 11:40 ` Joel Soete
2003-04-16 16:44 Joel Soete
2003-04-16 16:50 ` Matthew Wilcox
2003-04-16 10:13 Joel Soete
2003-04-16 11:06 ` Alan Cox
2003-04-14 11:52 Joel Soete
2003-04-14 11:54 ` Matthew Wilcox
2003-04-14 12:53   ` Joel Soete
     [not found] <20030410155223.GA5254@dsl2.external.hp.com>
2003-04-11  5:40 ` Joel Soete
2003-04-11  9:41   ` Joel Soete
2003-04-11 15:58   ` Grant Grundler
2003-04-12 20:30     ` Joel Soete
2003-04-14 12:13     ` Joel Soete
2003-04-14 11:39       ` Alan Cox
2003-04-14 13:53         ` Joel Soete
2003-04-14 15:42           ` Joel Soete
2003-04-15 16:32         ` Joel Soete
2003-04-15 15:54           ` Alan Cox
2003-04-15 16:41           ` Randolph Chung
2003-04-15 16:47             ` Matthew Wilcox
2003-04-15 16:52               ` Joel Soete
2003-04-14 14:18       ` Michael Wood
2003-04-08 16:53 Alexander Gabert
2003-04-08 16:58 ` Matthew Wilcox
2003-04-08 17:06   ` Alexander Gabert
2003-04-08 17:08     ` Matthew Wilcox
2003-04-09  5:49       ` Grant Grundler
2003-04-09  7:54         ` Alexander Gabert
2003-04-09 15:47           ` Grant Grundler
2003-04-09 17:23           ` pageexec
2003-04-09 17:40             ` Matthew Wilcox
2003-04-09 18:20               ` pageexec
2003-04-09 17:48             ` Matthew Wilcox
2003-04-10  5:50             ` Grant Grundler
2003-04-10 11:19               ` Matthew Wilcox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200304090736.h397asq19152@mailgate5.cinetic.de \
    --to=b.gunreben@web.de \
    --cc=parisc-linux@parisc-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox