This change fixes below sparse error:
drivers/ssb/main.c:94:16: warning: symbol 'ssb_sdio_func_to_bus'
was not declared. Should it be static?
Cc: Michael Buesch <m@bues.ch>
Cc: netdev@vger.kernel.org
Signed-off-by: Pramod Gurav <redacted>
---
drivers/ssb/ssb_private.h | 1 +
1 file changed, 1 insertion(+)
@@ -193,6 +193,7 @@ extern struct ssb_bus *ssb_pci_dev_to_bus(struct pci_dev *pdev);intssb_for_each_bus_call(unsignedlongdata,int(*func)(structssb_bus*bus,unsignedlongdata));externstructssb_bus*ssb_pcmcia_dev_to_bus(structpcmcia_device*pdev);+structssb_bus*ssb_sdio_func_to_bus(structsdio_func*func);structssb_freeze_context{/* Pointer to the bus */
From: Paul Bolle <hidden> Date: 2014-10-01 07:29:09
On Wed, 2014-10-01 at 12:36 +0530, Pramod Gurav wrote:
quoted hunk
This change fixes below sparse error:
drivers/ssb/main.c:94:16: warning: symbol 'ssb_sdio_func_to_bus'
was not declared. Should it be static?
Cc: Michael Buesch <m@bues.ch>
Cc: netdev@vger.kernel.org
Signed-off-by: Pramod Gurav <redacted>
---
drivers/ssb/ssb_private.h | 1 +
1 file changed, 1 insertion(+)
@@ -193,6 +193,7 @@ extern struct ssb_bus *ssb_pci_dev_to_bus(struct pci_dev *pdev);intssb_for_each_bus_call(unsignedlongdata,int(*func)(structssb_bus*bus,unsignedlongdata));externstructssb_bus*ssb_pcmcia_dev_to_bus(structpcmcia_device*pdev);+structssb_bus*ssb_sdio_func_to_bus(structsdio_func*func);structssb_freeze_context{/* Pointer to the bus */
To me this looked like an odd way to silence that warning. So I dug a
bit further.
ssb_sdio_func_to_bus() was added in commit 24ea602e183c ("ssb: Implement
SDIO host bus support"). So it was added in release v2.6.32. I found no
evidence this function was ever used. Can't it be removed?
Paul Bolle
On Wednesday 01 October 2014 12:59 PM, Paul Bolle wrote:
On Wed, 2014-10-01 at 12:36 +0530, Pramod Gurav wrote:
quoted
This change fixes below sparse error:
drivers/ssb/main.c:94:16: warning: symbol 'ssb_sdio_func_to_bus'
was not declared. Should it be static?
Cc: Michael Buesch <m@bues.ch>
Cc: netdev@vger.kernel.org
Signed-off-by: Pramod Gurav <redacted>
---
drivers/ssb/ssb_private.h | 1 +
1 file changed, 1 insertion(+)
@@ -193,6 +193,7 @@ extern struct ssb_bus *ssb_pci_dev_to_bus(struct pci_dev *pdev);intssb_for_each_bus_call(unsignedlongdata,int(*func)(structssb_bus*bus,unsignedlongdata));externstructssb_bus*ssb_pcmcia_dev_to_bus(structpcmcia_device*pdev);+structssb_bus*ssb_sdio_func_to_bus(structsdio_func*func);structssb_freeze_context{/* Pointer to the bus */
To me this looked like an odd way to silence that warning. So I dug a
bit further.
ssb_sdio_func_to_bus() was added in commit 24ea602e183c ("ssb: Implement
SDIO host bus support"). So it was added in release v2.6.32. I found no
evidence this function was ever used. Can't it be removed?
Thanks Paul for review. Initially I too had greped for this function in
kernel and found noone using it. But I thought this function might be
useful in future. About removing it, may be original author can tell.
From: Michael Büsch <m@bues.ch> Date: 2014-10-01 13:27:13
On Wed, 01 Oct 2014 13:09:31 +0530
Pramod Gurav [off-list ref] wrote:
On Wednesday 01 October 2014 12:59 PM, Paul Bolle wrote:
quoted
On Wed, 2014-10-01 at 12:36 +0530, Pramod Gurav wrote:
quoted
This change fixes below sparse error:
drivers/ssb/main.c:94:16: warning: symbol 'ssb_sdio_func_to_bus'
was not declared. Should it be static?
Cc: Michael Buesch <m@bues.ch>
Cc: netdev@vger.kernel.org
Signed-off-by: Pramod Gurav <redacted>
---
drivers/ssb/ssb_private.h | 1 +
1 file changed, 1 insertion(+)
@@ -193,6 +193,7 @@ extern struct ssb_bus *ssb_pci_dev_to_bus(struct pci_dev *pdev);intssb_for_each_bus_call(unsignedlongdata,int(*func)(structssb_bus*bus,unsignedlongdata));externstructssb_bus*ssb_pcmcia_dev_to_bus(structpcmcia_device*pdev);+structssb_bus*ssb_sdio_func_to_bus(structsdio_func*func);structssb_freeze_context{/* Pointer to the bus */
To me this looked like an odd way to silence that warning. So I dug a
bit further.
ssb_sdio_func_to_bus() was added in commit 24ea602e183c ("ssb: Implement
SDIO host bus support"). So it was added in release v2.6.32. I found no
evidence this function was ever used. Can't it be removed?
Thanks Paul for review. Initially I too had greped for this function in
kernel and found noone using it. But I thought this function might be
useful in future. About removing it, may be original author can tell.