Skip to content

kmod: in kernels above 6.4 bpf_xdp_pointer() is available for modules #8

kmod: in kernels above 6.4 bpf_xdp_pointer() is available for modules

kmod: in kernels above 6.4 bpf_xdp_pointer() is available for modules #8

Workflow file for this run

name: Lint
on: [push]
jobs:
check-kernel-module:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install code spell library
run: |
sudo apt update
sudo apt install codespell
- name: checkpatch
shell: bash
run: |
cd /lib/modules/$(uname -r)/build
sudo touch COPYING CREDITS MAINTAINERS README
scripts/checkpatch.pl --ignore \
LINUX_VERSION_CODE,CONSTANT_COMPARISON \
-f ${GITHUB_WORKSPACE}/src/kmod/{rex.c,rex.h,rex_trace.h} \
--codespell --codespellfile \
/usr/lib/python3/dist-packages/codespell_lib/data/dictionary.txt
- name: coccicheck
run: |
export CC=x86_64-linux-gnu-gcc-11
make -C /lib/modules/$(uname -r)/build \
C=2 CHECK=/lib/modules/$(uname -r)/build/scripts/coccicheck \
PYTHONHOME=/usr \
M=$PWD/src \
-j$(nproc) kmod/rex.o
# \
# | grep --line-buffered --color -E "WARNING|\$"