mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 00/10] new partitioning helper
@ 2014-02-27 20:39 Uwe Kleine-König
  2014-02-27 20:39 ` [PATCH v2 01/10] devfs: partitioning: add missing free in error path Uwe Kleine-König
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Uwe Kleine-König @ 2014-02-27 20:39 UTC (permalink / raw)
  To: barebox

Hello,

this is v2 of the series introducing devfs_create_partitions. With the
new syntax creating partitions is easier to parse for humans, it has
support to create partitions without holes inbetween without the need to
explicitly calculate the offsets and the code generated for the callers
is smaller.

I compared the size of arch/arm/boards/a9m2410/a9m2410.o with and
without the series with the kernel's bloat-o-meter, with the following
result:

add/remove: 1/0 grow/shrink: 0/1 up/down: 84/-104 (-20)
function                                     old     new   delta
a9m2410_nand0_partitions                       -      84     +84
a9m2410_devices_init                         296     192    -104

(Well, the size advantage is a *bit* relativized by the growth of fs/devfs-core.o:

add/remove: 3/0 grow/shrink: 0/1 up/down: 508/-124 (384)
function                                     old     new   delta
__devfs_add_partition.part                     -     376    +376
devfs_create_partitions                        -     128    +128
new                                            -       4      +4
devfs_add_partition                          296     172    -124

Don't know what "new" is above.)

Compared to (implicit) v1 of this series I dropped the compound
literals and used named static arrays instead as wished by Sebastian
Hesselbarth and Sascha Hauer.

Best regards
Uwe

Uwe Kleine-König (10):
  devfs: partitioning: add missing free in error path
  devfs_add_partition: make flags parameter unsigned
  Documentation: fix example call to devfs_add_partition
  mtd/nand: constify filename parameter
  devfs: partitioning: add new helper devfs_create_partitions
  ARM: a9m2410: convert to devfs_create_partitions
  ARM: freescale-mx35-3-stack: convert to devfs_create_partitions
  ARM: pca100: convert to devfs_create_partitions
  ARM: pcm038: convert to devfs_create_partitions
  ARM: sama5d3xek: convert to devfs_create_partitions

 Documentation/porting.txt                       |  2 +-
 arch/arm/boards/a9m2410/a9m2410.c               | 27 +++++--
 arch/arm/boards/freescale-mx35-3-stack/3stack.c | 42 +++++++++--
 arch/arm/boards/pcm038/pcm038.c                 | 47 +++++++++---
 arch/arm/boards/phycard-i.MX27/pca100.c         | 26 +++++--
 arch/arm/boards/sama5d3xek/init.c               | 41 +++++++++--
 drivers/mtd/nand/nand-bb.c                      |  2 +-
 fs/devfs-core.c                                 | 97 +++++++++++++++++++++----
 include/driver.h                                | 41 ++++++++++-
 include/nand.h                                  |  4 +-
 10 files changed, 267 insertions(+), 62 deletions(-)

-- 
1.8.5.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-02-28 14:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-27 20:39 [PATCH v2 00/10] new partitioning helper Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 01/10] devfs: partitioning: add missing free in error path Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 02/10] devfs_add_partition: make flags parameter unsigned Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 03/10] Documentation: fix example call to devfs_add_partition Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 04/10] mtd/nand: constify filename parameter Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 05/10] devfs: partitioning: add new helper devfs_create_partitions Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 06/10] ARM: a9m2410: convert to devfs_create_partitions Uwe Kleine-König
2014-02-27 20:41   ` Sebastian Hesselbarth
2014-02-27 20:39 ` [PATCH v2 07/10] ARM: freescale-mx35-3-stack: " Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 08/10] ARM: pca100: " Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 09/10] ARM: pcm038: " Uwe Kleine-König
2014-02-27 20:39 ` [PATCH v2 10/10] ARM: sama5d3xek: " Uwe Kleine-König
2014-02-28  7:25 ` [PATCH v2 00/10] new partitioning helper Sascha Hauer
2014-02-28  7:45   ` Sascha Hauer
2014-02-28 14:09     ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox