All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steven J. Hill" <sjhill@realitydiluted.com>
To: linux-mips@linux-mips.org
Subject: Ideas on removing a compiler warning in 'init_task.c' ...
Date: Fri, 17 Dec 2004 18:21:01 -0600	[thread overview]
Message-ID: <41C377ED.1040502@realitydiluted.com> (raw)

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

             reply	other threads:[~2004-12-18  0:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-18  0:21 Steven J. Hill [this message]
2004-12-21  0:25 ` Ideas on removing a compiler warning in 'init_task.c' Ralf Baechle

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=41C377ED.1040502@realitydiluted.com \
    --to=sjhill@realitydiluted.com \
    --cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.