Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 234401 Details for
Bug 345931
sparse breakage triggered by rcu_read_lock() lockdep annotations
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch -- fix breakage due to rcu_read_lock lockdep annotation
local-label.patch (text/plain), 1.64 KB, created by
Jeff Layton
on 2007-10-22 20:18:23 UTC
(
hide
)
Description:
patch -- fix breakage due to rcu_read_lock lockdep annotation
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2007-10-22 20:18:23 UTC
Size:
1.64 KB
patch
obsolete
>Perform local label lookup > >This patch fix the sparse breakage triggered by >rcu_read_lock() lockdep annotations. > >Now sparse look up the local label in symbol node >name space as well, just like looking up a normal >symbol node. Now a lable symbol can be both >type SYM_LABEL or SYM_NODE with MOD_LABEL. > >Singed-Off-By: Christopher Li <sparse@chrisli.org> > >Index: sparse/parse.c >=================================================================== >--- sparse.orig/parse.c 2007-10-19 13:52:37.000000000 -0700 >+++ sparse/parse.c 2007-10-19 13:55:23.000000000 -0700 >@@ -459,6 +459,16 @@ static struct symbol *lookup_or_create_s > return sym; > } > >+static struct symbol * local_label(struct token *token) >+{ >+ struct symbol *sym = lookup_symbol(token->ident, NS_SYMBOL); >+ >+ if (sym && sym->ctype.modifiers & MOD_LABEL) >+ return sym; >+ >+ return NULL; >+} >+ > /* > * NOTE! NS_LABEL is not just a different namespace, > * it also ends up using function scope instead of the >@@ -466,6 +476,9 @@ static struct symbol *lookup_or_create_s > */ > struct symbol *label_symbol(struct token *token) > { >+ struct symbol *sym = local_label(token); >+ if (sym) >+ return sym; > return lookup_or_create_symbol(NS_LABEL, SYM_LABEL, token); > } > >Index: sparse/validation/local-label.c >=================================================================== >--- sparse.orig/validation/local-label.c 2007-10-19 13:52:40.000000000 -0700 >+++ sparse/validation/local-label.c 2007-10-19 13:52:40.000000000 -0700 >@@ -0,0 +1,8 @@ >+void f(unsigned long ip); >+static void g(void) >+{ >+ if (1) { >+ f(({ __label__ x; x: (unsigned long)&&x; })); >+ } >+ f(({ __label__ x; x: (unsigned long)&&x; })); >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 345931
: 234401