summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdswap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mtd: mtdswap: fix possible null dereferenceMaxin B. John2011-05-251-1/+7
| | | | | | | | | This patch fixes the possible null dereference of the variable "oinfo" Thanks to Coverity for spotting this. Signed-off-by: Maxin B. John <john.maxin@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
* mtd: mtdswap: fix printk format warningRandy Dunlap2011-04-011-1/+1
| | | | | | | | | | The number is actually a sizeof(), so using %zu for it builds cleanly on 32-bit or 64-bit. drivers/mtd/mtdswap.c:1456: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
* mtd: mtdswap: fix compilation warningArtem Bityutskiy2011-03-251-1/+1
| | | | | | | | | | | | Fix the following compilation warning: drivers/mtd/mtdswap.c: In function ‘mtdswap_pick_gc_eblk’: drivers/mtd/mtdswap.c:859: warning: ‘idx’ may be used uninitialized in this function drivers/mtd/mtdswap.c:859: note: ‘idx’ was declared here Initialize idx to -1 because this value means "no tree choosen". Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
* mtdswap: kill strict error handling optionYang Ruirui2011-03-251-7/+1
| | | | | | | | | | As Artem Bityutskiy suggested: this option is controversial, as we do not really have any prove it is useful. And it is too much to have it as a config parameter. So, better kill it and let the real mtdswap users decide whether it is needed or not. Signed-off-by: Yang Ruirui<ruirui.r.yang@tieto.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
* mtd: fix printf format warnings, mostly lack of %zd for size_t, in mtdswapDavid Woodhouse2011-03-111-8/+8
| | | | Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
* mtd: Add mtdswap block driverJarkko Lavinen2011-03-111-0/+1593
Add a driver for allowing an mtd device to be used as a block device for swapping. The block device is volatile, and the mapping of swapped pages is not stored on flash. Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com> Tested-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>