mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase()
Subsystems (2)
PATCH 1/1 mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase()
This function is only used within this module, so it is no longer necessary to use EXPORT_SYMBOL_GPL().
This patch parallels the work done in the following patch:
https://lore.kernel.org/linux-mtd/[email protected]
Signed-off-by Dario Binacchi <[email protected]>
---
drivers/mtd/nand/core.c | 3 +-- include/linux/mtd/nand.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/mtd/nand/core.c +1 -2
@@ -129,7 +129,7 @@ EXPORT_SYMBOL_GPL(nanddev_isreserved);* * Return: 0 in case of success, a negative error code otherwise. */ -int nanddev_erase (struct nand_device *nand,const struct nand_pos *pos) +static int nanddev_erase (struct nand_device *nand,const struct nand_pos *pos) {unsigned int entry;
@@ -147,7 +147,6 @@ int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos)return nand->ops->erase (nand, pos); } -EXPORT_SYMBOL_GPL (nanddev_erase);/** * nanddev_mtd_erase() - Generic mtd->_erase() implementation for NAND devices
include/linux/mtd/nand.h +0 -1
@@ -691,7 +691,6 @@ static inline bool nanddev_io_iter_end(struct nand_device *nand,bool nanddev_isbad (struct nand_device *nand,const struct nand_pos *pos);bool nanddev_isreserved (struct nand_device *nand,const struct nand_pos *pos); -int nanddev_erase (struct nand_device *nand,const struct nand_pos *pos);int nanddev_markbad (struct nand_device *nand,const struct nand_pos *pos);/* BBT related functions */
Signature · 1 line
2.32.0
Quoted 8 lines · Dario Binacchi
This function is only used within this module, so it is no longer necessary to use
EXPORT_SYMBOL_GPL().This patch parallels the work done in the following patch:
https://lore.kernel.org/linux-mtd/[email protected]Signed-off-by Dario Binacchi <[email protected]>
Reviewed-by Michael Trimarchi <[email protected]>
Quoted 43 lines
---
drivers/mtd/nand/core.c | 3 +-- include/linux/mtd/nand.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-)drivers/mtd/nand/core.c +1
-2@@ -129,7 +129,7 @@ EXPORT_SYMBOL_GPL(nanddev_isreserved);* * Return: 0 in case of success, a negative error code otherwise. */ -int nanddev_erase (struct nand_device *nand,const struct nand_pos *pos) +static int nanddev_erase (struct nand_device *nand,const struct nand_pos *pos) {unsigned int entry;@@ -147,7 +147,6 @@ int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos)return nand->ops->erase (nand, pos); } -EXPORT_SYMBOL_GPL (nanddev_erase);/** * nanddev_mtd_erase() - Generic mtd->_erase() implementation for NAND devices include/linux/mtd/nand.h +0
-2@@ -691,7 +691,6 @@ static inline bool nanddev_io_iter_end(struct nand_device *nand,bool nanddev_isbad (struct nand_device *nand,const struct nand_pos *pos);bool nanddev_isreserved (struct nand_device *nand,const struct nand_pos *pos); -int nanddev_erase (struct nand_device *nand,const struct nand_pos *pos);int nanddev_markbad (struct nand_device *nand,const struct nand_pos *pos);/* BBT related functions */ --2.32.0
Signature · 11 lines
Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 [email protected] __________________________________ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 [email protected] www.amarulasolutions.com