scripts: add const_structs.checkpatch for checkpatch.pl
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 18 Nov 2020 20:45:38 +0000 (21:45 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 18 Nov 2020 20:50:58 +0000 (21:50 +0100)
commit7e7470b517ca956c80c9f81252467633a4624ad5
treeacacfb7f97c0d9e658cd9d1c2ef6ea33197f1f7e
parent6fdd4187e0b1b5aacbe0130d8c343c7eb4b2f2e7
scripts: add const_structs.checkpatch for checkpatch.pl

Kernel has separated the structs that are reported to be const in
checkpatch.pl into a file of its own, const_structs.checkpatch.

This file has been missing after the recent update of checkpatch.pl,
leading to the following message:

  No structs that should be const will be found - file
  '/data/openwrt/scripts/const_structs.checkpatch': No such file
  or directory

This commit adds the relevant file from v5.10-rc4.

Fixes: 086ee09bbcac ("scripts: Update checkpatch.pl to 2020-06-11")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
scripts/const_structs.checkpatch [new file with mode: 0644]