From: "Juha Yrjölä" <juha.yrjola@nokia.com>
To: linux-mtd@lists.infradead.org
Subject: [PATCH] Remove staticness from mtdpart_setup()
Date: Mon, 20 Sep 2004 12:14:16 +0300 [thread overview]
Message-ID: <1095671656.24922.88.camel@two.research.nokia.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 388 bytes --]
Hi,
Attached is a patch that removes the static and __init keywords from
mtdpart_setup(), so that the mtdpart partition definitions can come from
other sources than the kernel command line. This is useful if you have
another way of passing information to the kernel, e.g. the ATAG
mechanism on ARM kernels, and do not want to override CONFIG_CMDLINE
from the bootloader.
Cheers,
Juha
[-- Attachment #2: mtdpart-staticness-patch.diff --]
[-- Type: text/x-patch, Size: 431 bytes --]
===== drivers/mtd/cmdlinepart.c 1.8 vs edited =====
--- 1.8/drivers/mtd/cmdlinepart.c 2004-08-03 13:17:08 +03:00
+++ edited/drivers/mtd/cmdlinepart.c 2004-09-20 11:36:46 +03:00
@@ -339,7 +339,7 @@
* main.c::checksetup(). Note that we can not yet kmalloc() anything,
* so we only save the commandline for later processing.
*/
-static int __init mtdpart_setup(char *s)
+int mtdpart_setup(char *s)
{
cmdline = s;
return 1;
reply other threads:[~2004-09-20 9:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1095671656.24922.88.camel@two.research.nokia.com \
--to=juha.yrjola@nokia.com \
--cc=linux-mtd@lists.infradead.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