From: Ralf Baechle <ralf@linux-mips.org>
To: Ulrich Eckhardt <eckhardt@satorlaser.com>
Cc: linux-mips@linux-mips.org
Subject: Re: conflicting declaration of prom_getcmdline()
Date: Mon, 4 Apr 2005 07:21:05 +0100 [thread overview]
Message-ID: <20050404062105.GA4975@linux-mips.org> (raw)
In-Reply-To: <200504011028.04244.eckhardt@satorlaser.com>
On Fri, Apr 01, 2005 at 10:28:04AM +0200, Ulrich Eckhardt wrote:
> I just stumbled over arch/mips/au1000/common/prom.c, which contains a function
> defined like this:
> char* prom_getcmdline(void);
> EXPORT_SYMBOL(prom_getcmdline);
> while there are implementations that define the function as
> char* __init prom_getcmdline();
> Further, there are several declarations throughout sourcefiles and in
> include/asm-mips/mips-boards/prom.h and include/asm-mips/sgialib.h. Just grep
> for it and you'll see the mess.
>
> If anyone tells me which one is right and cares to explain why I hereby
> volunteer to create a patch. ;)
__init was introduced long after prom_getcmdline() and not all definitions
ever got updated. For prototypes where __init doesn't server any useful
purpose other than for the human reader so we generally don't use it.
You've herewith been volunteered ;-)
Ralf
next prev parent reply other threads:[~2005-04-04 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-01 8:28 conflicting declaration of prom_getcmdline() Ulrich Eckhardt
2005-04-04 6:21 ` Ralf Baechle [this message]
2005-04-04 11:20 ` Geert Uytterhoeven
2005-04-04 11:37 ` 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=20050404062105.GA4975@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=eckhardt@satorlaser.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.