Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Ideas on removing a compiler warning in 'init_task.c' ...
@ 2004-12-18  0:21 Steven J. Hill
  2004-12-21  0:25 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Steven J. Hill @ 2004-12-18  0:21 UTC (permalink / raw)
  To: linux-mips

I am trying to clean up a few compiler warnings. Here is one remaining
one:

   CC      arch/mips/kernel/init_task.o
   arch/mips/kernel/init_task.c:15: warning: initialization makes integer from 
pointer without a cast

which has to do with this line:

   static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);

I actually broke out the macro and it is complaining about the initialization
of 'action' member in the 'sighand_struct' defined in 'include/linux/sched.h'.

   struct sighand_struct {
           atomic_t                count;
           struct k_sigaction      action[_NSIG];
           spinlock_t              siglock;
   };

I do not see this when compiling x86 code and the MIPS structure is
not that drastically different IMHO. Anyone have some ideas on this
one?

-Steve

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ideas on removing a compiler warning in 'init_task.c' ...
  2004-12-18  0:21 Ideas on removing a compiler warning in 'init_task.c' Steven J. Hill
@ 2004-12-21  0:25 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2004-12-21  0:25 UTC (permalink / raw)
  To: Steven J. Hill; +Cc: linux-mips

On Fri, Dec 17, 2004 at 06:21:01PM -0600, Steven J. Hill wrote:

> I actually broke out the macro and it is complaining about the 
> initialization
> of 'action' member in the 'sighand_struct' defined in 
> 'include/linux/sched.h'.
> 
>   struct sighand_struct {
>           atomic_t                count;
>           struct k_sigaction      action[_NSIG];
>           spinlock_t              siglock;
>   };
> 
> I do not see this when compiling x86 code and the MIPS structure is
> not that drastically different IMHO. Anyone have some ideas on this
> one?

The members of struct sigaction are ordered differently on MIPS.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-21  0:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-18  0:21 Ideas on removing a compiler warning in 'init_task.c' Steven J. Hill
2004-12-21  0:25 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox