mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-22 09:54:41 +07:00
style: format bpf c code using kernel checkpatch.pl (#477)
This commit is contained in:
parent
49f576e37d
commit
d31d8802ce
23
.github/workflows/lint.yml
vendored
Normal file
23
.github/workflows/lint.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "**/*.c"
|
||||
- "**/*.h"
|
||||
- ".github/workflows/lint.yml"
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Perl
|
||||
uses: shogo82148/actions-setup-perl@v1
|
||||
with:
|
||||
perl-version: "5.38"
|
||||
|
||||
- name: Run lint
|
||||
run: make ebpf-lint
|
3
Makefile
3
Makefile
@ -96,4 +96,7 @@ ebpf: submodule clean-ebpf
|
||||
go generate ./control/control.go && \
|
||||
go generate ./trace/trace.go && echo trace > $(BUILD_TAGS_FILE) || echo > $(BUILD_TAGS_FILE)
|
||||
|
||||
ebpf-lint:
|
||||
./scripts/checkpatch.pl --no-tree --strict --no-summary --show-types --color=always control/kern/tproxy.c --ignore COMMIT_COMMENT_SYMBOL,NOT_UNIFIED_DIFF,COMMIT_LOG_LONG_LINE,LONG_LINE_COMMENT,VOLATILE,ASSIGN_IN_IF,PREFER_DEFINED_ATTRIBUTE_MACRO,CAMELCASE,LEADING_SPACE
|
||||
|
||||
## End Ebpf
|
||||
|
File diff suppressed because it is too large
Load Diff
7805
scripts/checkpatch.pl
Executable file
7805
scripts/checkpatch.pl
Executable file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user