diff mbox

make 'ignored_attributes[]' static

Message ID 20161102171602.17833-1-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck Nov. 2, 2016, 5:16 p.m. UTC
And so quiets a warning from sparse about an undeclared symbol
when running on its own code.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christopher Li Nov. 17, 2016, 10:18 a.m. UTC | #1
On Thu, Nov 3, 2016 at 1:16 AM, Luc Van Oostenryck
<luc.vanoostenryck@gmail.com> wrote:
> And so quiets a warning from sparse about an undeclared symbol
> when running on its own code.

Applied.

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/parse.c b/parse.c
index 205e1264..70b3a076 100644
--- a/parse.c
+++ b/parse.c
@@ -501,7 +501,7 @@  static struct init_keyword {
 	{ "__word__",	NS_KEYWORD,	MOD_LONG,	.op = &mode_word_op },
 };
 
-const char *ignored_attributes[] = {
+static const char *ignored_attributes[] = {
 	"alias",
 	"__alias__",
 	"alloc_align",