* [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe()
@ 2014-07-20 11:59 Viresh Kumar
2014-07-20 11:59 ` [PATCH 2/2] PCI: spear: Remove spear13xx_pcie_remove() Viresh Kumar
2014-07-20 19:26 ` [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe() Olof Johansson
0 siblings, 2 replies; 8+ messages in thread
From: Viresh Kumar @ 2014-07-20 11:59 UTC (permalink / raw)
To: linux-arm-kernel
Following compilation warning occurs when compiled with:
CONFIG_DEBUG_SECTION_MISMATCH=y
WARNING: drivers/pci/host/built-in.o(.data+0xc0): Section mismatch in
reference from the variable spear13xx_pcie_driver to the function
.init.text:spear13xx_pcie_probe()
Both .probe() and pcie_init() are marked with __init, but spear13xx_pcie_driver
isn't. And so section mismatch.
Fix it by marking spear13xx_pcie_driver with __initdata.
Fixes: 51b66a6 (PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx)
Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
Olof/Arnd,
Let me know if a PULL request is required for this, otherwise just apply them
directly.
drivers/pci/host/pcie-spear13xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c
index 99738e4..67315ea 100644
--- a/drivers/pci/host/pcie-spear13xx.c
+++ b/drivers/pci/host/pcie-spear13xx.c
@@ -382,7 +382,7 @@ static const struct of_device_id spear13xx_pcie_of_match[] = {
};
MODULE_DEVICE_TABLE(of, spear13xx_pcie_of_match);
-static struct platform_driver spear13xx_pcie_driver = {
+static struct platform_driver spear13xx_pcie_driver __initdata = {
.probe = spear13xx_pcie_probe,
.remove = spear13xx_pcie_remove,
.driver = {
--
2.0.0.rc2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] PCI: spear: Remove spear13xx_pcie_remove()
2014-07-20 11:59 [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe() Viresh Kumar
@ 2014-07-20 11:59 ` Viresh Kumar
2014-07-20 19:26 ` [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe() Olof Johansson
1 sibling, 0 replies; 8+ messages in thread
From: Viresh Kumar @ 2014-07-20 11:59 UTC (permalink / raw)
To: linux-arm-kernel
Following compilation warning occurs when compiled with:
CONFIG_DEBUG_SECTION_MISMATCH=y
WARNING: vmlinux.o(.init.data+0x3338): Section mismatch in reference from the
variable spear13xx_pcie_driver to the function
.exit.text:spear13xx_pcie_remove()
This driver isn't allowed to unload, and so doesn't have a *_exit() routine. But
it still has spear13xx_pcie_remove() marked with __exit.
As this driver can't unload, .remove() would never be called, right? So get rid
of it.
Fixes: 51b66a6 (PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx)
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
drivers/pci/host/pcie-spear13xx.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c
index 67315ea..6dea9e4 100644
--- a/drivers/pci/host/pcie-spear13xx.c
+++ b/drivers/pci/host/pcie-spear13xx.c
@@ -365,17 +365,6 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev)
return ret;
}
-static int __exit spear13xx_pcie_remove(struct platform_device *pdev)
-{
- struct spear13xx_pcie *spear13xx_pcie = platform_get_drvdata(pdev);
-
- clk_disable_unprepare(spear13xx_pcie->clk);
-
- phy_exit(spear13xx_pcie->phy);
-
- return 0;
-}
-
static const struct of_device_id spear13xx_pcie_of_match[] = {
{ .compatible = "st,spear1340-pcie", },
{},
@@ -384,7 +373,6 @@ MODULE_DEVICE_TABLE(of, spear13xx_pcie_of_match);
static struct platform_driver spear13xx_pcie_driver __initdata = {
.probe = spear13xx_pcie_probe,
- .remove = spear13xx_pcie_remove,
.driver = {
.name = "spear-pcie",
.owner = THIS_MODULE,
--
2.0.0.rc2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe()
2014-07-20 11:59 [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe() Viresh Kumar
2014-07-20 11:59 ` [PATCH 2/2] PCI: spear: Remove spear13xx_pcie_remove() Viresh Kumar
@ 2014-07-20 19:26 ` Olof Johansson
2014-07-21 0:12 ` Viresh Kumar
1 sibling, 1 reply; 8+ messages in thread
From: Olof Johansson @ 2014-07-20 19:26 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Jul 20, 2014 at 05:29:47PM +0530, Viresh Kumar wrote:
> Following compilation warning occurs when compiled with:
> CONFIG_DEBUG_SECTION_MISMATCH=y
>
> WARNING: drivers/pci/host/built-in.o(.data+0xc0): Section mismatch in
> reference from the variable spear13xx_pcie_driver to the function
> .init.text:spear13xx_pcie_probe()
>
> Both .probe() and pcie_init() are marked with __init, but spear13xx_pcie_driver
> isn't. And so section mismatch.
>
> Fix it by marking spear13xx_pcie_driver with __initdata.
>
> Fixes: 51b66a6 (PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx)
Please use 12 significant digits, since 7 might not be sufficient later
on in time. I've fixed it up here.
> Reported-by: Olof Johansson <olof@lixom.net>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
> Olof/Arnd,
>
> Let me know if a PULL request is required for this, otherwise just apply them
> directly.
I've applied both of these on top of next/drivers, where your previous branch
was. No need for a pull request.
-Olof
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe()
2014-07-20 19:26 ` [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe() Olof Johansson
@ 2014-07-21 0:12 ` Viresh Kumar
2014-07-21 0:21 ` Olof Johansson
2014-07-21 2:15 ` Rob Herring
0 siblings, 2 replies; 8+ messages in thread
From: Viresh Kumar @ 2014-07-21 0:12 UTC (permalink / raw)
To: linux-arm-kernel
On 21 July 2014 00:56, Olof Johansson <olof@lixom.net> wrote:
> Please use 12 significant digits, since 7 might not be sufficient later
> on in time. I've fixed it up here.
I surely didn't knew this and haven't seen other maintainers do this
as well.. And thought, whatever "git log --online" gives would be
enough.
Will take care of this in future.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe()
2014-07-21 0:12 ` Viresh Kumar
@ 2014-07-21 0:21 ` Olof Johansson
2014-07-21 0:27 ` Viresh Kumar
2014-07-21 2:15 ` Rob Herring
1 sibling, 1 reply; 8+ messages in thread
From: Olof Johansson @ 2014-07-21 0:21 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Jul 20, 2014 at 5:12 PM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> On 21 July 2014 00:56, Olof Johansson <olof@lixom.net> wrote:
>> Please use 12 significant digits, since 7 might not be sufficient later
>> on in time. I've fixed it up here.
>
> I surely didn't knew this and haven't seen other maintainers do this
> as well.. And thought, whatever "git log --online" gives would be
> enough.
>
> Will take care of this in future.
Oh, sorry, I got distracted by my kid waking up so the email was a bit short. :)
The easiest way of doing it is to switch to 12 by default. In your .gitconfig:
[core]
abbrev = 12
-Olof
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe()
2014-07-21 0:21 ` Olof Johansson
@ 2014-07-21 0:27 ` Viresh Kumar
0 siblings, 0 replies; 8+ messages in thread
From: Viresh Kumar @ 2014-07-21 0:27 UTC (permalink / raw)
To: linux-arm-kernel
On 21 July 2014 05:51, Olof Johansson <olof@lixom.net> wrote:
> Oh, sorry, I got distracted by my kid waking up so the email was a bit short. :)
I can understand, mine is 14 months :)
> The easiest way of doing it is to switch to 12 by default. In your .gitconfig:
>
> [core]
> abbrev = 12
Oh, that will be extremely useful. Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe()
2014-07-21 0:12 ` Viresh Kumar
2014-07-21 0:21 ` Olof Johansson
@ 2014-07-21 2:15 ` Rob Herring
2014-07-21 4:28 ` Viresh Kumar
1 sibling, 1 reply; 8+ messages in thread
From: Rob Herring @ 2014-07-21 2:15 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Jul 20, 2014 at 7:12 PM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> On 21 July 2014 00:56, Olof Johansson <olof@lixom.net> wrote:
>> Please use 12 significant digits, since 7 might not be sufficient later
>> on in time. I've fixed it up here.
>
> I surely didn't knew this and haven't seen other maintainers do this
> as well.. And thought, whatever "git log --online" gives would be
> enough.
The Fixes tag is new and the format is documented in SubmittingPatches
IIRC. I believe it is also supposed to be quotes rather than
parentheses around the commit message if we want to be really picky.
Rob
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe()
2014-07-21 2:15 ` Rob Herring
@ 2014-07-21 4:28 ` Viresh Kumar
0 siblings, 0 replies; 8+ messages in thread
From: Viresh Kumar @ 2014-07-21 4:28 UTC (permalink / raw)
To: linux-arm-kernel
On 21 July 2014 07:45, Rob Herring <robherring2@gmail.com> wrote:
> The Fixes tag is new and the format is documented in SubmittingPatches
Yeah, just saw that for the first time :)
> IIRC. I believe it is also supposed to be quotes rather than
> parentheses around the commit message if we want to be really picky.
Actually both: ("$subject")
I never saw the doc and picked how it was done by Rafael for cpufreq stuff.
Though he was correctly adding 12 digits of the sha key, but the quotes
were missing :)
I will take care of this now.
--
viresh
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-07-21 4:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-20 11:59 [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe() Viresh Kumar
2014-07-20 11:59 ` [PATCH 2/2] PCI: spear: Remove spear13xx_pcie_remove() Viresh Kumar
2014-07-20 19:26 ` [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe() Olof Johansson
2014-07-21 0:12 ` Viresh Kumar
2014-07-21 0:21 ` Olof Johansson
2014-07-21 0:27 ` Viresh Kumar
2014-07-21 2:15 ` Rob Herring
2014-07-21 4:28 ` Viresh Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox