summaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_ioctl.c
diff options
context:
space:
mode:
authorNed Bass <[email protected]>2014-11-06 13:34:17 -0800
committerBrian Behlendorf <[email protected]>2014-11-17 11:13:50 -0800
commit5024046763f02c11b94b832c5f54e23411949e90 (patch)
treef2cb3c27180650c8ea44f2ca2e102538daed82c8 /module/zfs/zfs_ioctl.c
parent29e57d15c8cdd5d1d7905c9045e8f40c6f9b72f4 (diff)
cstyle: allow right paren on its own line
Make the style checker script accept right parentheses on their own lines. This is motivated by the Linux tracepoints macro DECLARE_EVENT_CLASS. The code within TP_fast_assign() (a parameter of DECLARE_EVENT_CLASS) is normal C assignments terminated by semicolons. But the style checker forbids us from following a semicolon with a non-blank and from preceding a right parenthesis with white space. Therefore the closing parenthesis must go on the next line, yet the style checker foribs us from indenting it for readability. Relaxing the no-non-blank-after-semicolon rule would open the door to too many bad style practices. So instead we relax the no-white-space-before-right-paren rule if the parenthesis is on its own line. The relaxation is overriden with the -p option so we still have a way to catch misuse of this style. Signed-off-by: Ned Bass <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zfs_ioctl.c')
0 files changed, 0 insertions, 0 deletions