* [PATCHv2 0/7] mtd: Dynamic allocation of device numbers
@ 2010-01-12 23:08 Ben Hutchings
2010-01-28 16:12 ` Artem Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Ben Hutchings @ 2010-01-12 23:08 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-net-drivers, linux-mtd
This patch series removes the static array of MTD device pointers from
mtdcore and replaces it with an idr structure for dynamic allocation of
device numbers. It removes MAX_MTD_DEVICES, which is now meaningless.
Patches 1-4 are unchanged from the first version.
Patch 5 was completely replaced.
Patch 6 is unchanged from the first version.
Patch 7 is new and raises the limit on block translation devices.
Ben.
Ben Hutchings (7):
mtd: Introduce and use iteration macro for reading the MTD device
table
mtd: Use get_mtd_device_nm() to find named device in get_sb_mtd()
nandsim: Define CONFIG_NANDSIM_MAX_PARTS and use it instead of
MAX_MTD_DEVICES
mtd: Remove unnecessary comparisons with MAX_MTD_DEVICES
mtdblock: Dynamically allocate cache info structures
mtd: Replace static array of devices with an idr structure
mtd: Raise limit on block device minor numbers
drivers/mtd/devices/pmc551.c | 4 +-
drivers/mtd/mtd_blkdevs.c | 12 ++--
drivers/mtd/mtdblock.c | 74 +++++++---------
drivers/mtd/mtdchar.c | 3 -
drivers/mtd/mtdcore.c | 205 +++++++++++++++++++++--------------------
drivers/mtd/mtdcore.h | 7 ++-
drivers/mtd/mtdoops.c | 5 -
drivers/mtd/mtdsuper.c | 18 ++---
drivers/mtd/nand/nandsim.c | 7 +-
include/linux/mtd/mtd.h | 1 -
10 files changed, 161 insertions(+), 175 deletions(-)
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCHv2 0/7] mtd: Dynamic allocation of device numbers
2010-01-12 23:08 [PATCHv2 0/7] mtd: Dynamic allocation of device numbers Ben Hutchings
@ 2010-01-28 16:12 ` Artem Bityutskiy
2010-01-28 16:20 ` Ben Hutchings
0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2010-01-28 16:12 UTC (permalink / raw)
To: Ben Hutchings; +Cc: linux-mtd, linux-net-drivers, David Woodhouse
On Tue, 2010-01-12 at 23:08 +0000, Ben Hutchings wrote:
> This patch series removes the static array of MTD device pointers from
> mtdcore and replaces it with an idr structure for dynamic allocation of
> device numbers. It removes MAX_MTD_DEVICES, which is now meaningless.
>
> Patches 1-4 are unchanged from the first version.
> Patch 5 was completely replaced.
> Patch 6 is unchanged from the first version.
> Patch 7 is new and raises the limit on block translation devices.
>
> Ben.
>
> Ben Hutchings (7):
> mtd: Introduce and use iteration macro for reading the MTD device
> table
> mtd: Use get_mtd_device_nm() to find named device in get_sb_mtd()
> nandsim: Define CONFIG_NANDSIM_MAX_PARTS and use it instead of
> MAX_MTD_DEVICES
> mtd: Remove unnecessary comparisons with MAX_MTD_DEVICES
> mtdblock: Dynamically allocate cache info structures
> mtd: Replace static array of devices with an idr structure
> mtd: Raise limit on block device minor numbers
>
> drivers/mtd/devices/pmc551.c | 4 +-
> drivers/mtd/mtd_blkdevs.c | 12 ++--
> drivers/mtd/mtdblock.c | 74 +++++++---------
> drivers/mtd/mtdchar.c | 3 -
> drivers/mtd/mtdcore.c | 205 +++++++++++++++++++++--------------------
> drivers/mtd/mtdcore.h | 7 ++-
> drivers/mtd/mtdoops.c | 5 -
> drivers/mtd/mtdsuper.c | 18 ++---
> drivers/mtd/nand/nandsim.c | 7 +-
> include/linux/mtd/mtd.h | 1 -
> 10 files changed, 161 insertions(+), 175 deletions(-)
When I apply your patches and compile, I get:
make[2]: `scripts/unifdef' is up to date.
Building modules, stage 2.
Kernel: arch/x86/boot/bzImage is ready (#4)
MODPOST 150 modules
ERROR: "idr_get_next" [drivers/mtd/mtd.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Indeed, it is not exported.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCHv2 0/7] mtd: Dynamic allocation of device numbers
2010-01-28 16:12 ` Artem Bityutskiy
@ 2010-01-28 16:20 ` Ben Hutchings
2010-01-28 23:56 ` KAMEZAWA Hiroyuki
0 siblings, 1 reply; 4+ messages in thread
From: Ben Hutchings @ 2010-01-28 16:20 UTC (permalink / raw)
To: KAMEZAWA Hiroyuki
Cc: linux-mtd, linux-net-drivers, David Woodhouse, Artem Bityutskiy
On Thu, 2010-01-28 at 18:12 +0200, Artem Bityutskiy wrote:
[...]
> When I apply your patches and compile, I get:
>
> make[2]: `scripts/unifdef' is up to date.
> Building modules, stage 2.
> Kernel: arch/x86/boot/bzImage is ready (#4)
> MODPOST 150 modules
> ERROR: "idr_get_next" [drivers/mtd/mtd.ko] undefined!
> make[1]: *** [__modpost] Error 1
> make: *** [modules] Error 2
>
> Indeed, it is not exported.
This looks like an oversight from when idr_get_next() was introduced.
Is there any reason not to export it? If not, I'll add that to the
patch series.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCHv2 0/7] mtd: Dynamic allocation of device numbers
2010-01-28 16:20 ` Ben Hutchings
@ 2010-01-28 23:56 ` KAMEZAWA Hiroyuki
0 siblings, 0 replies; 4+ messages in thread
From: KAMEZAWA Hiroyuki @ 2010-01-28 23:56 UTC (permalink / raw)
To: Ben Hutchings
Cc: linux-mtd, linux-net-drivers, David Woodhouse, Artem Bityutskiy
On Thu, 28 Jan 2010 16:20:38 +0000
Ben Hutchings <bhutchings@solarflare.com> wrote:
> On Thu, 2010-01-28 at 18:12 +0200, Artem Bityutskiy wrote:
> [...]
> > When I apply your patches and compile, I get:
> >
> > make[2]: `scripts/unifdef' is up to date.
> > Building modules, stage 2.
> > Kernel: arch/x86/boot/bzImage is ready (#4)
> > MODPOST 150 modules
> > ERROR: "idr_get_next" [drivers/mtd/mtd.ko] undefined!
> > make[1]: *** [__modpost] Error 1
> > make: *** [modules] Error 2
> >
> > Indeed, it is not exported.
>
> This looks like an oversight from when idr_get_next() was introduced.
> Is there any reason not to export it? If not, I'll add that to the
> patch series.
>
Ah, sorry. plz add export.
Regards,
-Kame
> Ben.
>
> --
> Ben Hutchings, Senior Software Engineer, Solarflare Communications
> Not speaking for my employer; that's the marketing department's job.
> They asked us to note that Solarflare product names are trademarked.
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-28 23:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-12 23:08 [PATCHv2 0/7] mtd: Dynamic allocation of device numbers Ben Hutchings
2010-01-28 16:12 ` Artem Bityutskiy
2010-01-28 16:20 ` Ben Hutchings
2010-01-28 23:56 ` KAMEZAWA Hiroyuki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox