diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-10 18:50:44 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-10 19:15:46 +0200 |
| commit | 78178cfb8c749a862d7df2ac09ee66b956565027 (patch) | |
| tree | 18fcf83ab4f030042c675e391cb4c9c1f2d03a36 /tools/syz-check/dwarf.go | |
| parent | d4c58caef7e5fbae992399cb3b28681694468b39 (diff) | |
tools/syz-linter: fix comments check
Turns out ast.Inspect does not visit most comments.
Walk file.Comments manually.
Update #1876
Diffstat (limited to 'tools/syz-check/dwarf.go')
| -rw-r--r-- | tools/syz-check/dwarf.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-check/dwarf.go b/tools/syz-check/dwarf.go index d3e1adb12..1f728f40a 100644 --- a/tools/syz-check/dwarf.go +++ b/tools/syz-check/dwarf.go @@ -19,7 +19,7 @@ func parseKernelObject(obj string) (map[string]*dwarf.StructType, error) { var sections []*elf.Section for _, sec := range file.Sections { // We don't need these for our purposes and dropping them speeds up parsing a lot. - //nolint:misspell + // nolint:misspell if sec.Name == ".debug_line" || strings.HasPrefix(sec.Name, ".rela.") { continue } |
