aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2017-12-15 12:39:52 +0000
committerBoris Brezillon <[email protected]>2018-01-06 14:09:54 +0000
commitf72071b892d6f5eccf90756f3c12b1422bd4b474 (patch)
treeda54f4c67f3d7e598e03df9203e86ac40ab21bfe /scripts/gcc-plugins/randomize_layout_plugin.c
parentmtd: Do not allow MTD devices with inconsistent erase properties (diff)
downloadkernel-f72071b892d6f5eccf90756f3c12b1422bd4b474.tar.gz
kernel-f72071b892d6f5eccf90756f3c12b1422bd4b474.zip
mtd: Add an helper to make erase request aligned on ->erasesize
There's currently nothing forcing alignment of einfo->addr and einfo->len on mtd->erasesize. Since we don't know if automatically aligning those field in mtd_erase() will hurt some drivers, we add an helper function to let drivers that need such an alignment explicitly ask for it. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions