Skip to content

Commit

Permalink
lkl: follow up fixes after v6.6 merge (lkl__attribute)
Browse files Browse the repository at this point in the history
Our header parser misunderstood if a typedef statement contains
__attribute__ declartion inside lines.  An example line introduced in
the commit below triggers this issue with our parser script.

This commit fixes the issue by updating regular expression passed to
python parser.

Fixes: 224d80c ("types: Introduce [us]128")
Signed-off-by: Hajime Tazaki <[email protected]>
  • Loading branch information
thehajime committed May 15, 2024
1 parent da979d9 commit ecc3333
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/lkl/scripts/headers_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def find_headers(path):

def has_lkl_prefix(w):
return w.startswith("lkl") or w.startswith("_lkl") or w.startswith("__lkl") \
or w.startswith("LKL") or w.startswith("_LKL") or w.startswith("__LKL")
or w.startswith("LKL") or w.startswith("_LKL") or w.startswith("__LKL") \
or w.startswith("__attribute")

def find_symbols(regexp, store):
for h in headers:
Expand Down

0 comments on commit ecc3333

Please sign in to comment.