scripts: Add coccinelle file to use BIT macro

This commit is contained in:
Tim Crawford
2021-02-23 20:05:17 -07:00
committed by Jeremy Soller
parent 7888f214bb
commit 9a3ecba010
3 changed files with 34 additions and 0 deletions

11
scripts/spatch.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-only
spatch \
--sp-file ./scripts/coccinelle/bit-macro.cocci \
--macro-file ./scripts/coccinelle/macros.h \
--no-includes \
--include-headers \
--preprocess \
--in-place \
--dir src/