Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1497811 > unrolled thread
| Started by | Benoit Hiller <benoit.hiller@gmail.com> |
|---|---|
| First post | 2016-10-08 22:00 +0200 |
| Last post | 2016-10-08 22:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] staging: dgnc: make find_board_by_major static Benoit Hiller <benoit.hiller@gmail.com> - 2016-10-08 22:00 +0200
| From | Benoit Hiller <benoit.hiller@gmail.com> |
|---|---|
| Date | 2016-10-08 22:00 +0200 |
| Subject | [PATCH] staging: dgnc: make find_board_by_major static |
| Message-ID | <sq5WN-2Ms-1@gated-at.bofh.it> |
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
Back to top | Article view | linux.kernel
csiph-web