summaryrefslogtreecommitdiff
path: root/Documentation/process
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-04-06 20:11:07 -0700
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-04-15 09:15:22 +0300
commitc305fa32a39c904099b6d5e8a8ab32bc75b68bad (patch)
tree106295c6ca821b94912ef6d2b0e69d1186f98703 /Documentation/process
parent4c587421c64cadc2ddd7e4bba251a131b98543d1 (diff)
checkpatch: add command-line option for TAB size
Linux kernel coding style requires a size of 8 characters for both TAB and indentation, and such value is embedded as magic value allover the checkpatch script. This makes hard to reuse the script by other projects with different requirements in their coding style (e.g. OpenOCD [1] requires TAB size of 4 characters [2]). Replace the magic value 8 with a variable. Add a command-line option "--tab-size" to let the user select a TAB size value other than 8. [1] http://openocd.org/ [2] http://openocd.org/doc/doxygen/html/stylec.html#styleformat Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: Erik Ahlén <erik.ahlen@avalonenterprise.com> Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Joe Perches <joe@perches.com> Link: http://lkml.kernel.org/r/20200122163852.124417-3-borneo.antonio@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> (cherry-picked from commit 713a09de9ca9ac6277cb43d79967e7852238f998) Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'Documentation/process')
0 files changed, 0 insertions, 0 deletions