Skip to content

Commit ca91fac

Browse files
H Hartley SweetenDavid Woodhouse
authored andcommitted
mtd: local symbols should be static
The three backing_dev_info symbols are only used in this file and should be static. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 83025c8 commit ca91fac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/mtd/mtdcore.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* backing device capabilities for non-mappable devices (such as NAND flash)
4444
* - permits private mappings, copies are taken of the data
4545
*/
46-
struct backing_dev_info mtd_bdi_unmappable = {
46+
static struct backing_dev_info mtd_bdi_unmappable = {
4747
.capabilities = BDI_CAP_MAP_COPY,
4848
};
4949

@@ -52,7 +52,7 @@ struct backing_dev_info mtd_bdi_unmappable = {
5252
* - permits private mappings, copies are taken of the data
5353
* - permits non-writable shared mappings
5454
*/
55-
struct backing_dev_info mtd_bdi_ro_mappable = {
55+
static struct backing_dev_info mtd_bdi_ro_mappable = {
5656
.capabilities = (BDI_CAP_MAP_COPY | BDI_CAP_MAP_DIRECT |
5757
BDI_CAP_EXEC_MAP | BDI_CAP_READ_MAP),
5858
};
@@ -62,7 +62,7 @@ struct backing_dev_info mtd_bdi_ro_mappable = {
6262
* - permits private mappings, copies are taken of the data
6363
* - permits non-writable shared mappings
6464
*/
65-
struct backing_dev_info mtd_bdi_rw_mappable = {
65+
static struct backing_dev_info mtd_bdi_rw_mappable = {
6666
.capabilities = (BDI_CAP_MAP_COPY | BDI_CAP_MAP_DIRECT |
6767
BDI_CAP_EXEC_MAP | BDI_CAP_READ_MAP |
6868
BDI_CAP_WRITE_MAP),

0 commit comments

Comments
 (0)