From: Satyam Sharma <satyam@infradead.org>
To: "Rafał Bilski" <rafalbilski@interia.pl>
Cc: David Woodhouse <dwmw2@infradead.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-mtd@lists.infradead.org
Subject: [PATCH] mtd: Makefile fix (was Re: [PATCH] mtdsuper: licensce = GPL)
Date: Fri, 3 Aug 2007 08:27:13 +0530 (IST) [thread overview]
Message-ID: <alpine.LFD.0.999.0708030811330.23798@enigma.security.iitk.ac.in> (raw)
In-Reply-To: <46B1FFFB.6040209@interia.pl>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2457 bytes --]
Hi,
On Thu, 2 Aug 2007, Rafał Bilski wrote:
> [...]
> CC drivers/mtd/chips/chipreg.mod.o
> LD [M] drivers/mtd/chips/chipreg.ko
> CC drivers/mtd/devices/block2mtd.mod.o
> LD [M] drivers/mtd/devices/block2mtd.ko
> CC drivers/mtd/mtd_blkdevs.mod.o
> LD [M] drivers/mtd/mtd_blkdevs.ko
> CC drivers/mtd/mtdblock.mod.o
> LD [M] drivers/mtd/mtdblock.ko
> CC drivers/mtd/mtdchar.mod.o
> LD [M] drivers/mtd/mtdchar.ko
> CC drivers/mtd/mtdcore.mod.o
> LD [M] drivers/mtd/mtdcore.ko
> CC drivers/mtd/mtdsuper.mod.o
> LD [M] drivers/mtd/mtdsuper.ko
>
> % ls *.ko
> mtd_blkdevs.ko mtdblock.ko mtdchar.ko mtdcore.ko mtdsuper.ko
Yup, I end up with the above situation myself. Please try the patch
below.
David, are mtdcore, mtdsuper, mtdpart (and I also noticed mtdbdi.c
in -mm kernel) supposed to be linked into the same module or are they
supposed to be built as separate modules?
If separate, we need to apply Rafal's patch and ensure MODULE_LICENSE
(at least) in all the above files.
If the same module, then please consider applying the patch below.
[PATCH] mtd: Makefile fix
We want drivers/mtd/{mtdcore, mtdsuper, mtdpart}.c to be built and linked
into the same mtd.ko module. Fix the Makefile to ensure this, and remove
duplicate MODULE_ declarations in mtdpart.c, as mtdcore.c already has them.
Signed-off-by: Satyam Sharma <satyam@infradead.org>
---
drivers/mtd/Makefile | 2 +-
drivers/mtd/mtdpart.c | 4 ----
2 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
index 451adcc..6d958a4 100644
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -3,9 +3,9 @@
#
# Core functionality.
+obj-$(CONFIG_MTD) += mtd.o
mtd-y := mtdcore.o mtdsuper.o
mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
-obj-$(CONFIG_MTD) += $(mtd-y)
obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o
obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 9c62368..6174a97 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -560,7 +560,3 @@ int parse_mtd_partitions(struct mtd_info *master, const char **types,
EXPORT_SYMBOL_GPL(parse_mtd_partitions);
EXPORT_SYMBOL_GPL(register_mtd_parser);
EXPORT_SYMBOL_GPL(deregister_mtd_parser);
-
-MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Nicolas Pitre <nico@cam.org>");
-MODULE_DESCRIPTION("Generic support for partitioning of MTD devices");
next prev parent reply other threads:[~2007-08-03 2:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 18:33 [PATCH] mtdsuper: licensce = GPL Rafał Bilski
2007-08-01 21:53 ` Satyam Sharma
2007-08-02 7:18 ` Rafał Bilski
2007-08-02 8:14 ` Satyam Sharma
2007-08-02 16:02 ` Rafał Bilski
2007-08-03 2:57 ` Satyam Sharma [this message]
2007-08-03 8:17 ` [PATCH] mtd: Makefile fix (was Re: [PATCH] mtdsuper: licensce = GPL) Rafał Bilski
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=alpine.LFD.0.999.0708030811330.23798@enigma.security.iitk.ac.in \
--to=satyam@infradead.org \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=rafalbilski@interia.pl \
/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
all inboxes | Powered by JetHome®