25 May, 2011

1 commit


09 Jan, 2009

1 commit


11 Dec, 2008

1 commit

  • ARRAY_SIZE is more concise to use when the size of an array is divided by
    the size of its type or the size of its first element.

    The semantic patch that makes this change is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @i@
    @@

    #include

    @depends on i using "paren.iso"@
    type T;
    T[] E;
    @@

    - (sizeof(E)/sizeof(E[...]))
    + ARRAY_SIZE(E)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Andrew Morton
    Signed-off-by: David Woodhouse

    Julia Lawall
     

10 Dec, 2008

1 commit

  • MTD internal API presently uses 32-bit values to represent
    device size. This patch updates them to 64-bits but leaves
    the external API unchanged. Extending the external API
    is a separate issue for several reasons. First, no one
    needs it at the moment. Secondly, whether the implementation
    is done with IOCTLs, sysfs or both is still debated. Thirdly
    external API changes require the internal API to be accepted
    first.

    Note that although the MTD API will be able to support 64-bit
    device sizes, existing drivers do not and are not required
    to do so, although NAND base has been updated.

    In general, changing from 32-bit to 64-bit values cause little
    or no changes to the majority of the code with the following
    exceptions:
    - printk message formats
    - division and modulus of 64-bit values
    - NAND base support
    - 32-bit local variables used by mtdpart and mtdconcat
    - naughtily assuming one structure maps to another
    in MEMERASE ioctl

    Signed-off-by: Adrian Hunter
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Adrian Hunter
     

05 Jun, 2008

1 commit

  • Once upon a time, the MTD repository was using CVS.

    This patch therefore removes all usages of the no longer updated CVS
    keywords from the MTD code.

    This also includes code that printed them to the user.

    Signed-off-by: Adrian Bunk
    Signed-off-by: David Woodhouse

    Adrian Bunk
     

29 Jun, 2007

2 commits


09 May, 2007

1 commit


30 Nov, 2006

1 commit


29 Nov, 2006

1 commit


02 Oct, 2006

1 commit


22 Sep, 2006

1 commit

  • ioremap must be balanced by an iounmap and failing to do so can result
    in a memory leak.

    Tested (compilation only) with:
    - allmodconfig
    - Modifying drivers/mtd/maps/Kconfig and drivers/mtd/nand/Kconfig to
    make sure that the changed file is compiling without warning

    Signed-off-by: Amol Lad
    Signed-off-by: David Woodhouse

    Amol Lad
     

29 May, 2006

1 commit


12 Apr, 2006

1 commit

  • I just hit the following error and warning :
    drivers/mtd/maps/nettel.c: In function `nettel_init':
    drivers/mtd/maps/nettel.c:418: error: `ROOT_DEV' undeclared (first use in this function)
    drivers/mtd/maps/nettel.c:418: error: (Each undeclared identifier is reported only once
    drivers/mtd/maps/nettel.c:418: error: for each function it appears in.)
    drivers/mtd/maps/nettel.c:418: warning: implicit declaration of function `MKDEV'
    make[3]: *** [drivers/mtd/maps/nettel.o] Error 1
    make[2]: *** [drivers/mtd/maps] Error 2
    make[1]: *** [drivers/mtd] Error 2
    The patch fixes the missing ROOT_DEV declaration by including linux/root_dev.h
    and fixes the implicit declaration of MKDEV by including linux/kdev_t.h .

    Signed-off-by: Jesper Juhl
    Signed-off-by: David Woodhouse

    Jesper Juhl
     

01 Apr, 2006

1 commit


30 Nov, 2005

1 commit

  • The patch below fixes the following sparse warning:

    drivers/mtd/maps/nettel.c:482:27: warning: Using plain integer as NULL pointer

    Signed-off-by: Luiz Capitulino
    Signed-off-by: Thomas Gleixner

    Luiz Capitulino
     

07 Nov, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds