diff options
| author | Randy Dunlap <rdunlap@infradead.org> | 2018-02-13 13:52:54 -0800 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-02-13 23:38:10 +0100 |
| commit | 513a6ecf20e6338fe45ff45a23499468b6ce9888 (patch) | |
| tree | f5264c113c556b92f05f122e87aca412173bc8a1 | |
| parent | fdd1645dc1a80d76dfffb621cfca778d1ce12d52 (diff) | |
| download | sparse-dev-513a6ecf20e6338fe45ff45a23499468b6ce9888.tar.gz | |
sparse: ignore indirect_branch attribute
Teach sparse about the "indirect_branch" attribute as used in
Linux kernel:
#define __noretpoline __attribute__((indirect_branch("keep")))
and tell sparse to ignore it.
This eliminates over 148K warnings (which also cause the
0day bot to send error reports uselessly).
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
| -rw-r--r-- | gcc-attr-list.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc-attr-list.h b/gcc-attr-list.h index 702b05fa..e21bec4f 100644 --- a/gcc-attr-list.h +++ b/gcc-attr-list.h @@ -62,6 +62,7 @@ GCC_ATTR(hidden) GCC_ATTR(hot) GCC_ATTR(hotpatch) GCC_ATTR(ifunc) +GCC_ATTR(indirect_branch) GCC_ATTR(init_priority) GCC_ATTR(interfacearm) GCC_ATTR(internal) |
