From 579f27020c59c426a8fef8b970da9907f59809f8 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 12 Mar 2019 11:17:20 +0000 Subject: [PATCH] bpf: exclude bit fields from the check Currently we have no instruments to check the size and offsets of bit fields. * gen_bpf_attr_check.sh: Do not print bit fields. * m4/gen_bpf_attr_m4.awk: Likewise. --- gen_bpf_attr_check.sh | 2 +- m4/gen_bpf_attr_m4.awk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gen_bpf_attr_check.sh b/gen_bpf_attr_check.sh index 686027e9..f3b440ea 100755 --- a/gen_bpf_attr_check.sh +++ b/gen_bpf_attr_check.sh @@ -32,7 +32,7 @@ for struct in $(sed -n 's/^struct \([^[:space:]]\+_struct\) .*/\1/p' < "$input") enum="$enum${enum:+.}" ENUM="$ENUM${ENUM:+_}" sed -n '/^struct '"$struct"' [^{]*{/,/^};$/p' < "$input" | - sed -n 's/^[[:space:]]\+[^][;]*[[:space:]]\([^][[:space:];]\+\)\(\[[^;]*\]\)\?;$/\1/p' | + sed -n 's/^[[:space:]]\+[^][;:]*[[:space:]]\([^][[:space:];:]\+\)\(\[[^;:]*\]\)\?;$/\1/p' | while read field; do FIELD="$(printf %s "$field" |tr '[:lower:]' '[:upper:]')" cat <