[PATCH] sparse: Add more ignored attributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This adds more ignored gcc-style attributes.

externally_visible is a standard gcc attribute.
signal is an AVR8 attribute used to define interrupt service routines.

Ignore these attributes, as they are currently not useful for sparse checking.

Signed-off-by: Michael Buesch <mb@xxxxxxxxx>

---

Index: sparse/parse.c
===================================================================
--- sparse.orig/parse.c	2009-11-24 23:44:37.000000000 +0100
+++ sparse/parse.c	2009-11-25 14:21:39.000000000 +0100
@@ -541,6 +541,10 @@ static struct init_keyword {
 	{ "__warning__",	NS_KEYWORD,	.op = &ignore_attr_op },
 	{ "bounded",	NS_KEYWORD,	.op = &ignore_attr_op },
 	{ "__bounded__",	NS_KEYWORD,	.op = &ignore_attr_op },
+	{ "externally_visible",	NS_KEYWORD,	.op = &ignore_attr_op },
+	{ "__externally_visible__",	NS_KEYWORD,	.op = &ignore_attr_op },
+	{ "signal",	NS_KEYWORD,	.op = &ignore_attr_op },
+	{ "__signal__",	NS_KEYWORD,	.op = &ignore_attr_op },
 };
 
 void init_parser(int stream)

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

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux