spi: sprd: don't mark remove function as __exit
Subsystems (2)
PATCH 1/1 spi: sprd: don't mark remove function as __exit
The __exit section is left out for built-in drivers, so a 'remove' callback must not be marked as such to avoid breaking when we unbind a device at runtime. This was pointed out by kbuild:
sprd_spi_remove' referenced in section .data' of drivers/spi/spi-sprd.o: defined in discarded section `.exit.text' of drivers/spi/spi-sprd.o
--- drivers/spi/spi-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-sprd.c +1 -1
@@ -676,7 +676,7 @@ static int sprd_spi_probe(struct platform_device *pdev)return ret; } -static int __exit sprd_spi_remove(struct platform_device *pdev) +static int sprd_spi_remove (struct platform_device *pdev) {struct spi_controller *sctlr =platform_get_drvdata (pdev);struct sprd_spi *ss =spi_controller_get_devdata (sctlr);
Signature · 1 line
2.18.0
Quoted 8 lines · Arnd Bergmann
The
__exitsection is left out for built-in drivers, so a 'remove' callback must not be marked as such to avoid breaking when we unbind a device at runtime. This was pointed out by kbuild:
sprd_spi_remove' referenced in section.data' ofdrivers/spi/spi-sprd.o: defined in discarded section `.exit.text' ofdrivers/spi/spi-sprd.oFixes e7d973a31c24 ("spi: sprd: Add SPI driver for Spreadtrum SC9860")Signed-off-by Arnd Bergmann <[email protected]>
Thanks Arnd.
Quoted 20 lines
--- drivers/spi/spi-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/spi/spi-sprd.c +1
-2@@ -676,7 +676,7 @@ static int sprd_spi_probe(struct platform_device *pdev)return ret; } -static int __exit sprd_spi_remove(struct platform_device *pdev) +static int sprd_spi_remove (struct platform_device *pdev) {struct spi_controller *sctlr =platform_get_drvdata (pdev);struct sprd_spi *ss =spi_controller_get_devdata (sctlr); --2.18.0
Signature · 2 lines
Baolin Wang Best Regards
Mark Brown
maintainerApplied "spi: sprd: don't mark remove function as __exit" to the spi tree
In reply to Arnd BergmannThe patch
spi: sprd: don't mark remove function as __exit
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
71d9a846fbcac1113b3810c06a8a3ddd936ada01Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Wed, 26 Sep 2018 14:58:21 +0200
Subject: [PATCH] spi: sprd: don't mark remove function as __exit
The __exit section is left out for built-in drivers, so a 'remove' callback must not be marked as such to avoid breaking when we unbind a device at runtime. This was pointed out by kbuild:
sprd_spi_remove' referenced in section .data' of drivers/spi/spi-sprd.o: defined in discarded section `.exit.text' of drivers/spi/spi-sprd.o
--- drivers/spi/spi-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-sprd.c +1 -1
@@ -676,7 +676,7 @@ static int sprd_spi_probe(struct platform_device *pdev)return ret; } -static int __exit sprd_spi_remove(struct platform_device *pdev) +static int sprd_spi_remove (struct platform_device *pdev) {struct spi_controller *sctlr =platform_get_drvdata (pdev);struct sprd_spi *ss =spi_controller_get_devdata (sctlr);
Signature · 1 line
2.19.0