parisc-linux.org kernel
[email protected] (Grant Grundler) schrieb am 09.04.03 07:50:28:
Quoted 4 lines
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
parisc/kernel/signal.c +2 -2
@@ -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 (¤t->sighand->siglock);
char/n_tty.c +1 -1
@@ -808,7 +808,7 @@int is_ignored (int sig) {return (sigismember (¤t->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)
ncpfs/sock.c +2 -2
@@ -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 (¤t->blocked, mask);
proc/array.c +2 -2
@@ -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); } }
signal.c +18 -18
@@ -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 = ¤t->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
workqueue.c +1 -1
@@ -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 );
sunrpc/clnt.c +2 -2
@@ -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 (¤t->sighand->siglock, irqflags);
kconfig/mconf.c +1 -1
@@ -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);