All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: dgnc: make find_board_by_major static
@ 2016-10-08 19:49 ` Benoit Hiller
  0 siblings, 0 replies; 2+ messages in thread
From: Benoit Hiller @ 2016-10-08 19:49 UTC (permalink / raw)
  To: lidza.louina, markh, gregkh, driverdev-devel, devel, linux-kernel
  Cc: benoit.hiller

Fixes the following sparse warning:
drivers/staging/dgnc/dgnc_tty.c:933:19: warning: symbol 'find_board_by_major' was not declared. Should it be static?

Signed-off-by: Benoit Hiller <benoit.hiller@gmail.com>
---
 drivers/staging/dgnc/dgnc_tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index 953d931..ef9a45b 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -930,7 +930,7 @@ void dgnc_wakeup_writes(struct channel_t *ch)
 	spin_unlock_irqrestore(&ch->ch_lock, flags);
 }
 
-struct dgnc_board *find_board_by_major(unsigned int major)
+static struct dgnc_board *find_board_by_major(unsigned int major)
 {
 	int i;
 
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] staging: dgnc: make find_board_by_major static
@ 2016-10-08 19:49 ` Benoit Hiller
  0 siblings, 0 replies; 2+ messages in thread
From: Benoit Hiller @ 2016-10-08 19:49 UTC (permalink / raw)
  To: lidza.louina, markh, gregkh, driverdev-devel, devel, linux-kernel
  Cc: benoit.hiller

Fixes the following sparse warning:
drivers/staging/dgnc/dgnc_tty.c:933:19: warning: symbol 'find_board_by_major' was not declared. Should it be static?

Signed-off-by: Benoit Hiller <benoit.hiller@gmail.com>
---
 drivers/staging/dgnc/dgnc_tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index 953d931..ef9a45b 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -930,7 +930,7 @@ void dgnc_wakeup_writes(struct channel_t *ch)
 	spin_unlock_irqrestore(&ch->ch_lock, flags);
 }
 
-struct dgnc_board *find_board_by_major(unsigned int major)
+static struct dgnc_board *find_board_by_major(unsigned int major)
 {
 	int i;
 
-- 
2.10.0

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-08 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-08 19:49 [PATCH] staging: dgnc: make find_board_by_major static Benoit Hiller
2016-10-08 19:49 ` Benoit Hiller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.