* [PATCH] pcmcia: include cs_internal.h for missing declarations
@ 2019-10-17 11:40 Ben Dooks (Codethink)
2019-11-21 10:03 ` Dominik Brodowski
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks (Codethink) @ 2019-10-17 11:40 UTC (permalink / raw)
To: linux-kernel
Cc: Ben Dooks (Codethink),
Dominik Brodowski, Greg Kroah-Hartman, linux-kernel
Include cs_internal.h (and pcmcia/cistpl.h as required by
cs_internal.h) for the declearions of cb_alloc and cb_free
to silence the following sparse warnings;
drivers/pcmcia/cardbus.c:64:11: warning: symbol 'cb_alloc' was not declared. Should it be static?
drivers/pcmcia/cardbus.c:103:6: warning: symbol 'cb_free' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org
---
drivers/pcmcia/cardbus.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pcmcia/cardbus.c b/drivers/pcmcia/cardbus.c
index c502dfbf66e3..45c8252c8edc 100644
--- a/drivers/pcmcia/cardbus.c
+++ b/drivers/pcmcia/cardbus.c
@@ -22,7 +22,9 @@
#include <linux/pci.h>
#include <pcmcia/ss.h>
+#include <pcmcia/cistpl.h>
+#include "cs_internal.h"
static void cardbus_config_irq_and_cls(struct pci_bus *bus, int irq)
{
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pcmcia: include cs_internal.h for missing declarations
2019-10-17 11:40 [PATCH] pcmcia: include cs_internal.h for missing declarations Ben Dooks (Codethink)
@ 2019-11-21 10:03 ` Dominik Brodowski
0 siblings, 0 replies; 2+ messages in thread
From: Dominik Brodowski @ 2019-11-21 10:03 UTC (permalink / raw)
To: Ben Dooks (Codethink); +Cc: linux-kernel, Greg Kroah-Hartman, linux-kernel
On Thu, Oct 17, 2019 at 12:40:59PM +0100, Ben Dooks (Codethink) wrote:
> Include cs_internal.h (and pcmcia/cistpl.h as required by
> cs_internal.h) for the declearions of cb_alloc and cb_free
> to silence the following sparse warnings;
>
> drivers/pcmcia/cardbus.c:64:11: warning: symbol 'cb_alloc' was not declared. Should it be static?
> drivers/pcmcia/cardbus.c:103:6: warning: symbol 'cb_free' was not declared. Should it be static?
Applied to the pcmcia tree (but with ":" instead of ";")
Thanks,
Dominik
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-21 10:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17 11:40 [PATCH] pcmcia: include cs_internal.h for missing declarations Ben Dooks (Codethink)
2019-11-21 10:03 ` Dominik Brodowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).