treewide: remove editor modelines and cruft
Subsystems (33)
PATCH 1/1 treewide: remove editor modelines and cruft
The section "19) Editor modelines and other cruft" in Documentation/process/coding-style.rst clearly says, "Do not include any of these in source files."
I recently receive a patch to explicitly add a new one.
Let's do treewide cleanups, otherwise some people follow the existing code and attempt to upstream their favoriate editor setups.
It is even nicer if scripts/checkpatch.pl can check it.
If we like to impose coding style in an editor-independent manner, I think editorconfig (patch [1]) is a saner solution.
[1] https://lore.kernel.org/lkml/[email protected]/
---
You might wonder if I worked on this huge patch manually or generated it by a tool. I wrote a Python script to generate this patch, but not from a scratch. I contributed a similar tool to U-Boot some years ago.
(https://github.com/u-boot/u-boot/commit/8ba1f5de4571566be12efaffdad404a506b978e3)
I reused and modified it.
For completeness, this is the code I wrote (ugly since this is not intended for upstream)
#!/usr/bin/env python3
import copy
import os
import re
import sys
pattern_local_variables = re.compile(r'Local (V|v)ariables') pattern_end = re.compile(r'End:')pattern_blank = re.compile(r'^\s*$') # empty linepattern_comment_begin = re.compile(r'^(\s*)/\*') pattern_comment_end = re.compile(r'\*/$') pattern_comment_null = re.compile(r' \*$') pattern_dash = re.compile(r'---------------')
def extend_matched_lines(lines, matched, pre_patterns, post_patterns, extend_pre,
extend_post):
extended_matched = []
j = matched[0]
for i in matched:
if i == 0 or i < j:
continue
j = i
while j in matched:
j += 1
if j >= len(lines):
break
for p in pre_patterns:
if p.search(lines[i - 1]):
break
else:
# not matched
continue
for p in post_patterns:
if p.search(lines[j]):
break
else:
# not matched
continue
if extend_pre:
extended_matched.append(i - 1)
if extend_post:
extended_matched.append(j)
matched += extended_matched
matched.sort()
def cleanup_one_file(filepath, patterns):
#print(filepath)
with open(filepath) as f:
lines = f.readlines()
matched = []
for i, line in enumerate(lines):
if i - 1 in matched and lines[i - 1][-2:] == '\\\n':
matched.append(i)
continue
for pattern in patterns:
if pattern.search(line):
#print("hit {}".format(line), end='')
m = pattern_comment_begin.match(line)
if m and not pattern_comment_end.search(line):
#print("replace {}".format(line), end='')
lines[i] = m.group(1) + '/*\n'
if i + 1 < len(lines) and pattern_comment_end.search(lines[i + 1]):
matched.append(i)
matched.append(i + 1)
else:
matched.append(i)
break
if not matched:
return
while True:
old_matched = copy.copy(matched) extend_matched_lines(lines, matched, [pattern_local_variables],
[pattern_end], True, True)
extend_matched_lines(lines, matched, [pattern_comment_begin],
[pattern_comment_end], True, True)
extend_matched_lines(lines, matched, [pattern_blank, pattern_dash],
[pattern_comment_end], True, False)
extend_matched_lines(lines, matched, [pattern_comment_begin, pattern_comment_null],
[pattern_comment_null], False, True)
extend_matched_lines(lines, matched, [pattern_blank],
[pattern_blank], False, True)
if matched == old_matched:
break
# remove blank lines at the end of file
if matched and matched[-1] == len(lines) -1:
i = matched[-1] - 1
while i >= 0 and (i in matched or pattern_blank.search(lines[i])):
matched.append(i)
i -= 1
matched.sort()
with open(filepath, 'w') as f:
for i, line in enumerate(lines):
if i not in matched:
f.write(line)
def main():
cwd = os.getcwd()
if len(sys.argv) > 1:
topdir = os.path.join(cwd, sys.argv[1])
else:
topdir = cwd
exclude_dirs = [ os.path.join(cwd, d) for d in ('.git', 'Documentation') ]
# patterns to remove
strings = ('c-indent-level:', 'tab-width:',
'vim:', 'version-control:', 'c-basic-offset:',
'indent-tabs-mode:', 'c-file-style:', 'fill-column:', 'kept-new-versions:', 'ispell-local-dictionary', r'mode: (C|c)$', 'Emacs about preferred coding style', 'c-indentation-style:', 'mode-name: ',
'c-brace-imaginary-offset:', 'c-brace-offset:', 'c-argdecl-indent:', 'c-set-style:', 'c-label-offset:', 'c-continued-statement-offset:', 'c-continued-brace-offset:', 'Overrides for Emacs so that we almost follow',
'Emacs will notice this stuff', 'adjust the settings for this buffer only', 'Overrides for Emacs so that we follow', 'Make Linus happy',
r'^ \* of the file.$'
)
patterns = []
for s in strings:
patterns.append(re.compile(s))
for dirpath, dirnames, filenames in os.walk(topdir, topdown=True):
# Prune unwanted directories.
if dirpath in exclude_dirs:
dirnames[:] = []
continue
for filename in filenames:
if filename.endswith(('.c', '.h', '.py', '.sh')):
cleanup_one_file(os.path.join(dirpath, filename), patterns)
if __name__ == '__main__':
main()
arch/m68k/atari/time.c | 7 ------- arch/parisc/include/asm/pdc_chassis.h | 1 - arch/um/drivers/cow.h | 7 ------- drivers/auxdisplay/panel.c | 7 ------- drivers/gpu/drm/qxl/qxl_drv.c | 1 - drivers/media/usb/pwc/pwc-uncompress.c | 3 --- drivers/net/ethernet/adaptec/starfire.c | 8 -------- drivers/net/ethernet/amd/atarilance.c | 8 -------- drivers/net/ethernet/amd/pcnet32.c | 7 ------- .../intersil/orinoco/orinoco_nortel.c | 8 -------- .../wireless/intersil/orinoco/orinoco_pci.c | 8 -------- .../wireless/intersil/orinoco/orinoco_plx.c | 8 -------- .../wireless/intersil/orinoco/orinoco_tmd.c | 8 -------- drivers/parport/parport_ip32.c | 12 ----------- drivers/platform/x86/dell/dell_rbu.c | 3 --- drivers/scsi/53c700.c | 1 - drivers/scsi/53c700.h | 1 - drivers/scsi/ch.c | 6 ------ drivers/scsi/ips.c | 20 ------------------- drivers/scsi/ips.h | 20 ------------------- drivers/scsi/lasi700.c | 1 - drivers/scsi/megaraid/mbox_defs.h | 2 -- drivers/scsi/megaraid/mega_common.h | 2 -- drivers/scsi/megaraid/megaraid_mbox.c | 2 -- drivers/scsi/megaraid/megaraid_mbox.h | 2 -- drivers/scsi/qla1280.c | 12 ----------- drivers/scsi/sni_53c710.c | 1 - drivers/staging/comedi/drivers/ni_routes.c | 1 - drivers/staging/comedi/drivers/ni_routes.h | 1 - .../drivers/ni_routing/ni_device_routes.c | 1 - .../drivers/ni_routing/ni_device_routes.h | 1 - .../drivers/ni_routing/ni_device_routes/all.h | 1 - .../ni_routing/ni_device_routes/pci-6070e.c | 1 - .../ni_routing/ni_device_routes/pci-6220.c | 1 - .../ni_routing/ni_device_routes/pci-6221.c | 1 - .../ni_routing/ni_device_routes/pci-6229.c | 1 - .../ni_routing/ni_device_routes/pci-6251.c | 1 - .../ni_routing/ni_device_routes/pci-6254.c | 1 - .../ni_routing/ni_device_routes/pci-6259.c | 1 - .../ni_routing/ni_device_routes/pci-6534.c | 1 - .../ni_routing/ni_device_routes/pci-6602.c | 1 - .../ni_routing/ni_device_routes/pci-6713.c | 1 - .../ni_routing/ni_device_routes/pci-6723.c | 1 - .../ni_routing/ni_device_routes/pci-6733.c | 1 - .../ni_routing/ni_device_routes/pxi-6030e.c | 1 - .../ni_routing/ni_device_routes/pxi-6224.c | 1 - .../ni_routing/ni_device_routes/pxi-6225.c | 1 - .../ni_routing/ni_device_routes/pxi-6251.c | 1 - .../ni_routing/ni_device_routes/pxi-6733.c | 1 - .../ni_routing/ni_device_routes/pxie-6251.c | 1 - .../ni_routing/ni_device_routes/pxie-6535.c | 1 - .../ni_routing/ni_device_routes/pxie-6738.c | 1 - .../drivers/ni_routing/ni_route_values.c | 1 - .../drivers/ni_routing/ni_route_values.h | 1 - .../drivers/ni_routing/ni_route_values/all.h | 1 - .../ni_routing/ni_route_values/ni_660x.c | 1 - .../ni_routing/ni_route_values/ni_eseries.c | 1 - .../ni_routing/ni_route_values/ni_mseries.c | 1 - .../ni_routing/tools/convert_c_to_py.c | 1 - .../ni_routing/tools/convert_csv_to_c.py | 7 ------- .../ni_routing/tools/convert_py_to_csv.py | 1 - .../ni_routing/tools/csv_collection.py | 1 - .../ni_routing/tools/make_blank_csv.py | 1 - .../drivers/ni_routing/tools/ni_names.py | 1 - .../comedi/drivers/tests/example_test.c | 1 - .../comedi/drivers/tests/ni_routes_test.c | 1 - .../staging/comedi/drivers/tests/unittest.h | 1 - drivers/video/fbdev/matrox/matroxfb_base.c | 9 --------- drivers/video/fbdev/vga16fb.c | 10 ---------- fs/configfs/configfs_internal.h | 4 +--- fs/configfs/dir.c | 4 +--- fs/configfs/file.c | 4 +--- fs/configfs/inode.c | 4 +--- fs/configfs/item.c | 4 +--- fs/configfs/mount.c | 4 +--- fs/configfs/symlink.c | 4 +--- fs/nfs/dir.c | 7 ------- fs/nfs/nfs4proc.c | 6 ------ fs/nfs/nfs4renewd.c | 6 ------ fs/nfs/nfs4state.c | 6 ------ fs/nfs/nfs4xdr.c | 6 ------ fs/nfsd/nfs4proc.c | 6 ------ fs/nfsd/nfs4xdr.c | 6 ------ fs/nfsd/xdr4.h | 6 ------ fs/ocfs2/acl.c | 4 +--- fs/ocfs2/acl.h | 4 +--- fs/ocfs2/alloc.c | 4 +--- fs/ocfs2/alloc.h | 4 +--- fs/ocfs2/aops.c | 4 +--- fs/ocfs2/aops.h | 4 +--- fs/ocfs2/blockcheck.c | 4 +--- fs/ocfs2/blockcheck.h | 4 +--- fs/ocfs2/buffer_head_io.c | 4 +--- fs/ocfs2/buffer_head_io.h | 4 +--- fs/ocfs2/cluster/heartbeat.c | 4 +--- fs/ocfs2/cluster/heartbeat.h | 4 +--- fs/ocfs2/cluster/masklog.c | 4 +--- fs/ocfs2/cluster/masklog.h | 4 +--- fs/ocfs2/cluster/netdebug.c | 4 +--- fs/ocfs2/cluster/nodemanager.c | 4 +--- fs/ocfs2/cluster/nodemanager.h | 4 +--- fs/ocfs2/cluster/ocfs2_heartbeat.h | 4 +--- fs/ocfs2/cluster/ocfs2_nodemanager.h | 4 +--- fs/ocfs2/cluster/quorum.c | 4 +--- fs/ocfs2/cluster/quorum.h | 4 +--- fs/ocfs2/cluster/sys.c | 4 +--- fs/ocfs2/cluster/sys.h | 4 +--- fs/ocfs2/cluster/tcp.c | 4 +--- fs/ocfs2/cluster/tcp.h | 4 +--- fs/ocfs2/cluster/tcp_internal.h | 4 +--- fs/ocfs2/dcache.c | 4 +--- fs/ocfs2/dcache.h | 4 +--- fs/ocfs2/dir.c | 4 +--- fs/ocfs2/dir.h | 4 +--- fs/ocfs2/dlm/dlmapi.h | 4 +--- fs/ocfs2/dlm/dlmast.c | 4 +--- fs/ocfs2/dlm/dlmcommon.h | 4 +--- fs/ocfs2/dlm/dlmconvert.c | 4 +--- fs/ocfs2/dlm/dlmconvert.h | 4 +--- fs/ocfs2/dlm/dlmdebug.c | 4 +--- fs/ocfs2/dlm/dlmdebug.h | 4 +--- fs/ocfs2/dlm/dlmdomain.c | 4 +--- fs/ocfs2/dlm/dlmdomain.h | 4 +--- fs/ocfs2/dlm/dlmlock.c | 4 +--- fs/ocfs2/dlm/dlmmaster.c | 4 +--- fs/ocfs2/dlm/dlmrecovery.c | 4 +--- fs/ocfs2/dlm/dlmthread.c | 4 +--- fs/ocfs2/dlm/dlmunlock.c | 4 +--- fs/ocfs2/dlmfs/dlmfs.c | 4 +--- fs/ocfs2/dlmfs/userdlm.c | 4 +--- fs/ocfs2/dlmfs/userdlm.h | 4 +--- fs/ocfs2/dlmglue.c | 4 +--- fs/ocfs2/dlmglue.h | 4 +--- fs/ocfs2/export.c | 4 +--- fs/ocfs2/export.h | 4 +--- fs/ocfs2/extent_map.c | 4 +--- fs/ocfs2/extent_map.h | 4 +--- fs/ocfs2/file.c | 4 +--- fs/ocfs2/file.h | 4 +--- fs/ocfs2/filecheck.c | 4 +--- fs/ocfs2/filecheck.h | 4 +--- fs/ocfs2/heartbeat.c | 4 +--- fs/ocfs2/heartbeat.h | 4 +--- fs/ocfs2/inode.c | 4 +--- fs/ocfs2/inode.h | 4 +--- fs/ocfs2/journal.c | 4 +--- fs/ocfs2/journal.h | 4 +--- fs/ocfs2/localalloc.c | 4 +--- fs/ocfs2/localalloc.h | 4 +--- fs/ocfs2/locks.c | 4 +--- fs/ocfs2/locks.h | 4 +--- fs/ocfs2/mmap.c | 4 +--- fs/ocfs2/move_extents.c | 4 +--- fs/ocfs2/move_extents.h | 4 +--- fs/ocfs2/namei.c | 4 +--- fs/ocfs2/namei.h | 4 +--- fs/ocfs2/ocfs1_fs_compat.h | 4 +--- fs/ocfs2/ocfs2.h | 4 +--- fs/ocfs2/ocfs2_fs.h | 4 +--- fs/ocfs2/ocfs2_ioctl.h | 4 +--- fs/ocfs2/ocfs2_lockid.h | 4 +--- fs/ocfs2/ocfs2_lockingver.h | 4 +--- fs/ocfs2/refcounttree.c | 4 +--- fs/ocfs2/refcounttree.h | 4 +--- fs/ocfs2/reservations.c | 4 +--- fs/ocfs2/reservations.h | 4 +--- fs/ocfs2/resize.c | 4 +--- fs/ocfs2/resize.h | 4 +--- fs/ocfs2/slot_map.c | 4 +--- fs/ocfs2/slot_map.h | 4 +--- fs/ocfs2/stack_o2cb.c | 4 +--- fs/ocfs2/stack_user.c | 4 +--- fs/ocfs2/stackglue.c | 4 +--- fs/ocfs2/stackglue.h | 4 +--- fs/ocfs2/suballoc.c | 4 +--- fs/ocfs2/suballoc.h | 4 +--- fs/ocfs2/super.c | 4 +--- fs/ocfs2/super.h | 4 +--- fs/ocfs2/symlink.c | 4 +--- fs/ocfs2/symlink.h | 4 +--- fs/ocfs2/sysfile.c | 4 +--- fs/ocfs2/sysfile.h | 4 +--- fs/ocfs2/uptodate.c | 4 +--- fs/ocfs2/uptodate.h | 4 +--- fs/ocfs2/xattr.c | 4 +--- fs/ocfs2/xattr.h | 4 +--- fs/reiserfs/procfs.c | 10 ---------- include/linux/configfs.h | 4 +--- include/linux/genl_magic_func.h | 1 - include/linux/genl_magic_struct.h | 1 - include/uapi/linux/if_bonding.h | 11 ---------- include/uapi/linux/nfs4.h | 6 ------ include/xen/interface/elfnote.h | 10 ---------- include/xen/interface/hvm/hvm_vcpu.h | 10 ---------- include/xen/interface/io/xenbus.h | 10 ---------- samples/configfs/configfs_sample.c | 2 -- tools/usb/hcd-tests.sh | 2 -- 197 files changed, 110 insertions(+), 673 deletions(-)
arch/m68k/atari/time.c +0 -7
@@ -317,10 +317,3 @@ int atari_tt_hwclk( int op, struct rtc_time *t )return (0 ); } - -/* -* Local variables: -* c-indent-level: 4 -* tab-width: 8 -* End: -*/
arch/parisc/include/asm/pdc_chassis.h +0 -1
@@ -365,4 +365,3 @@ void parisc_pdc_chassis_init(void); PDC_CHASSIS_EOM_SET )#endif /* _PARISC_PDC_CHASSIS_H */ -/* vim: set ts=8 */
arch/um/drivers/cow.h +0 -7
@@ -24,10 +24,3 @@ extern void cow_sizes(int version, __u64 size, int sectorsize, int align, int *data_offset_out);#endif - -/* -* --------------------------------------------------------------------------- -* Local variables: -* c-file-style: "linux" -* End: -*/
drivers/auxdisplay/panel.c +0 -7
@@ -1737,10 +1737,3 @@ module_init(panel_init_module);module_exit (panel_cleanup_module);MODULE_AUTHOR ("Willy Tarreau" );MODULE_LICENSE ("GPL" ); - -/* -* Local variables: -* c-indent-level: 4 -* tab-width: 8 -* End: -*/
drivers/gpu/drm/qxl/qxl_drv.c +0 -1
@@ -1,4 +1,3 @@ -/* vim: set ts=8 sw=8 tw=78 ai noexpandtab */ /* qxl_drv.c -- QXL driver -*- linux-c -*- * * Copyright 2011 Red Hat, Inc.
drivers/media/usb/pwc/pwc-uncompress.c +0 -3
@@ -9,9 +9,6 @@Please send bug reports and support requests to <[email protected]>. The decompression routines have been implemented by reverse-engineering the Nemosoft binary pwcx module. Caveat emptor. - - -vim: set ts=8: */ #include <asm/current.h>
drivers/net/ethernet/adaptec/starfire.c +0 -8
@@ -2070,11 +2070,3 @@ static void __exit starfire_cleanup (void)module_init (starfire_init);module_exit (starfire_cleanup); - - -/* -* Local variables: -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/
drivers/net/ethernet/amd/atarilance.c +0 -8
@@ -1156,11 +1156,3 @@ static void __exit atarilance_module_exit(void)module_init (atarilance_module_init);module_exit (atarilance_module_exit);#endif /* MODULE */ - - -/* -* Local variables: -* c-indent-level: 4 -* tab-width: 4 -* End: -*/
drivers/net/ethernet/amd/pcnet32.c +0 -7
@@ -3029,10 +3029,3 @@ static void __exit pcnet32_cleanup_module(void)module_init (pcnet32_init_module);module_exit (pcnet32_cleanup_module); - -/* -* Local variables: -* c-indent-level: 4 -* tab-width: 8 -* End: -*/
drivers/net/wireless/intersil/orinoco/orinoco_nortel.c +0 -8
@@ -312,11 +312,3 @@ static void __exit orinoco_nortel_exit(void)module_init (orinoco_nortel_init);module_exit (orinoco_nortel_exit); - -/* -* Local variables: -* c-indent-level: 8 -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/
drivers/net/wireless/intersil/orinoco/orinoco_pci.c +0 -8
@@ -255,11 +255,3 @@ static void __exit orinoco_pci_exit(void)module_init (orinoco_pci_init);module_exit (orinoco_pci_exit); - -/* -* Local variables: -* c-indent-level: 8 -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/
drivers/net/wireless/intersil/orinoco/orinoco_plx.c +0 -8
@@ -360,11 +360,3 @@ static void __exit orinoco_plx_exit(void)module_init (orinoco_plx_init);module_exit (orinoco_plx_exit); - -/* -* Local variables: -* c-indent-level: 8 -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/
drivers/net/wireless/intersil/orinoco/orinoco_tmd.c +0 -8
@@ -235,11 +235,3 @@ static void __exit orinoco_tmd_exit(void)module_init (orinoco_tmd_init);module_exit (orinoco_tmd_exit); - -/* -* Local variables: -* c-indent-level: 8 -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/
drivers/parport/parport_ip32.c +0 -12
@@ -2224,15 +2224,3 @@ MODULE_PARM_DESC(features,", bit 2: hardware SPP mode" ", bit 3: hardware EPP mode" ", bit 4: hardware ECP mode"); - -/*--- Inform (X)Emacs about preferred coding style ---------------------*/ -/* -* Local Variables: -* mode: c -* c-file-style: "linux" -* indent-tabs-mode: t -* tab-width: 8 -* fill-column: 78 -* ispell-local-dictionary: "american" -* End: -*/
drivers/platform/x86/dell/dell_rbu.c +0 -3
@@ -675,6 +675,3 @@ static __exit void dcdrbu_exit(void)module_exit (dcdrbu_exit);module_init (dcdrbu_init); - -/* vim:noet:ts=8:sw=8 -*/
drivers/scsi/53c700.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8 -*- */ /* NCR (or Symbios) 53c700 and 53c700-66 Driver *
drivers/scsi/53c700.h +0 -1
@@ -1,5 +1,4 @@/* SPDX-License-Identifier: GPL-2.0 */ -/* -*- mode: c; c-basic-offset: 8 -*- */ /* Driver for 53c700 and 53c700-66 chips from NCR and Symbios *
drivers/scsi/ch.c +0 -6
@@ -1058,9 +1058,3 @@ static void __exit exit_ch_module(void)module_init (init_ch_module);module_exit (exit_ch_module); - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
drivers/scsi/ips.c +0 -20
@@ -7099,23 +7099,3 @@ ips_init_phase2(int index)MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("IBM ServeRAID Adapter Driver " IPS_VER_STRING );MODULE_VERSION (IPS_VER_STRING ); - - -/* -* Overrides for Emacs so that we almost follow Linus's tabbing style. -* Emacs will notice this stuff at the end of the file and automatically -* adjust the settings for this buffer only. This must remain at the end -* of the file. -* --------------------------------------------------------------------------- -* Local variables: -* c-indent-level: 2 -* c-brace-imaginary-offset: 0 -* c-brace-offset: -2 -* c-argdecl-indent: 2 -* c-label-offset: -2 -* c-continued-statement-offset: 2 -* c-continued-brace-offset: 0 -* indent-tabs-mode: nil -* tab-width: 8 -* End: -*/
drivers/scsi/ips.h +0 -20
@@ -1211,23 +1211,3 @@ typedef struct {IPS_COMPAT_TAMPA , \ IPS_COMPAT_KEYWEST \ } - - -/* -* Overrides for Emacs so that we almost follow Linus's tabbing style. -* Emacs will notice this stuff at the end of the file and automatically -* adjust the settings for this buffer only. This must remain at the end -* of the file. -* --------------------------------------------------------------------------- -* Local variables: -* c-indent-level: 2 -* c-brace-imaginary-offset: 0 -* c-brace-offset: -2 -* c-argdecl-indent: 2 -* c-label-offset: -2 -* c-continued-statement-offset: 2 -* c-continued-brace-offset: 0 -* indent-tabs-mode: nil -* tab-width: 8 -* End: -*/
drivers/scsi/lasi700.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8 -*- */ /* PARISC LASI driver for the 53c700 chip *
drivers/scsi/megaraid/mbox_defs.h +0 -2
@@ -781,5 +781,3 @@ typedef struct { } __attribute__ ((packed)) mbox_sgl32;#endif // _MRAID_MBOX_DEFS_H_ - -/* vim: set ts=8 sw=8 tw=78: */
drivers/scsi/megaraid/mega_common.h +0 -2
@@ -282,5 +282,3 @@ struct mraid_pci_blk { };#endif // _MEGA_COMMON_H_ - -// vim: set ts=8 sw=8 tw=78:
drivers/scsi/megaraid/megaraid_mbox.c +0 -2
@@ -4068,5 +4068,3 @@ megaraid_sysfs_show_ldnum(struct device *dev, struct device_attribute *attr, cha*/ module_init (megaraid_init);module_exit (megaraid_exit); - -/* vim: set ts=8 sw=8 tw=78 ai si: */
drivers/scsi/megaraid/megaraid_mbox.h +0 -2
@@ -230,5 +230,3 @@ typedef struct {#define WROUTDOOR (rdev, value) writel(value, (rdev)->baseaddr + 0x2C)#endif // _MEGARAID_H_ - -// vim: set ts=8 sw=8 tw=78:
drivers/scsi/qla1280.c +0 -12
@@ -4403,15 +4403,3 @@ MODULE_FIRMWARE("qlogic/1040.bin");MODULE_FIRMWARE ("qlogic/1280.bin" );MODULE_FIRMWARE ("qlogic/12160.bin" );MODULE_VERSION (QLA1280_VERSION ); - -/* -* Overrides for Emacs so that we almost follow Linus's tabbing style. -* Emacs will notice this stuff at the end of the file and automatically -* adjust the settings for this buffer only. This must remain at the end -* of the file. -* --------------------------------------------------------------------------- -* Local variables: -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/
drivers/scsi/sni_53c710.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8 -*- */ /* SNI RM driver *
drivers/staging/comedi/drivers/ni_routes.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routes.c * Route information for NI boards.
drivers/staging/comedi/drivers/ni_routes.h +0 -1
@@ -1,5 +1,4 @@/* SPDX-License-Identifier: GPL-2.0+ */ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routes.h * Route information for NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes.h +0 -1
@@ -1,5 +1,4 @@/* SPDX-License-Identifier: GPL-2.0+ */ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/all.h +0 -1
@@ -1,5 +1,4 @@/* SPDX-License-Identifier: GPL-2.0+ */ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/all.h * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6220.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6220.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6221.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6221.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6229.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6229.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6251.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6251.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6254.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6254.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6259.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6259.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6534.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6534.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6602.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6602.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6713.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6713.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6723.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6723.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6733.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pci-6733.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6030e.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pxi-6030e.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6224.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pxi-6224.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6225.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pxi-6225.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6251.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pxi-6251.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxi-6733.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pxi-6733.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxie-6251.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pxie-6251.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxie-6535.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pxie-6535.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxie-6738.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_device_routes/pxie-6738.c * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_route_values.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_route_values.c * Route information for NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_route_values.h +0 -1
@@ -1,5 +1,4 @@/* SPDX-License-Identifier: GPL-2.0+ */ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_route_values.h * Route information for NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_route_values/all.h +0 -1
@@ -1,5 +1,4 @@/* SPDX-License-Identifier: GPL-2.0+ */ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_route_values/all.h * List of valid routes for specific NI boards.
drivers/staging/comedi/drivers/ni_routing/ni_route_values/ni_660x.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_route_values/ni_660x.c * Route information for NI_660X boards.
drivers/staging/comedi/drivers/ni_routing/ni_route_values/ni_eseries.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_route_values/ni_eseries.c * Route information for NI_ESERIES boards.
drivers/staging/comedi/drivers/ni_routing/ni_route_values/ni_mseries.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/ni_route_values/ni_mseries.c * Route information for NI_MSERIES boards.
drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ #include <stdint.h> #include <stdbool.h>
drivers/staging/comedi/drivers/ni_routing/tools/convert_csv_to_c.py +0 -7
@@ -1,6 +1,5 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0+ -# vim: ts=2:sw=2:et:tw=80:nowrap # This is simply to aide in creating the entries in the order of the value of # the device-global NI signal/terminal constants defined in comedi.h
@@ -123,7 +122,6 @@ class DeviceRoutes(CSVCollection): output_file_top = """\ // SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/{filename} * List of valid routes for specific NI boards.
@@ -155,7 +153,6 @@ class DeviceRoutes(CSVCollection): extern_header = """\ /* SPDX-License-Identifier: GPL-2.0+ */ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/{filename} * List of valid routes for specific NI boards.
@@ -193,7 +190,6 @@ class DeviceRoutes(CSVCollection): single_output_file_top = """\ // SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/{filename} * List of valid routes for specific NI boards.
@@ -299,7 +295,6 @@ class RouteValues(CSVCollection): output_file_top = """\ // SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/{filename} * Route information for NI boards.
@@ -337,7 +332,6 @@ class RouteValues(CSVCollection): extern_header = """\ /* SPDX-License-Identifier: GPL-2.0+ */ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/{filename} * List of valid routes for specific NI boards.
@@ -375,7 +369,6 @@ class RouteValues(CSVCollection): single_output_file_top = """\ // SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/ni_routing/{filename} * Route information for {sheet} boards.
drivers/staging/comedi/drivers/ni_routing/tools/convert_py_to_csv.py +0 -1
@@ -1,6 +1,5 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0+ -# vim: ts=2:sw=2:et:tw=80:nowrap from os import path import os, csv
drivers/staging/comedi/drivers/ni_routing/tools/csv_collection.py +0 -1
@@ -1,5 +1,4 @@ # SPDX-License-Identifier: GPL-2.0+ -# vim: ts=2:sw=2:et:tw=80:nowrap import os, csv, glob
drivers/staging/comedi/drivers/ni_routing/tools/make_blank_csv.py +0 -1
@@ -1,6 +1,5 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0+ -# vim: ts=2:sw=2:et:tw=80:nowrap from os import path import os, csv
drivers/staging/comedi/drivers/ni_routing/tools/ni_names.py +0 -1
@@ -1,5 +1,4 @@ # SPDX-License-Identifier: GPL-2.0+ -# vim: ts=2:sw=2:et:tw=80:nowrap """ This file helps to extract string names of NI signals as included in comedi.h between NI_NAMES_BASE and NI_NAMES_BASE+NI_NUM_NAMES.
drivers/staging/comedi/drivers/tests/example_test.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/tests/example_test.c * Example set of unit tests.
drivers/staging/comedi/drivers/tests/ni_routes_test.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/tests/ni_routes_test.c * Unit tests for NI routes (ni_routes.c module).
drivers/staging/comedi/drivers/tests/unittest.h +0 -1
@@ -1,5 +1,4 @@/* SPDX-License-Identifier: GPL-2.0+ */ -/* vim: set ts=8 sw=8 noet tw=80 nowrap: */ /* * comedi/drivers/tests/unittest.h * Simple framework for unittests for comedi drivers.
drivers/video/fbdev/matrox/matroxfb_base.c +0 -9
@@ -2608,12 +2608,3 @@ EXPORT_SYMBOL(matroxfb_register_driver);EXPORT_SYMBOL (matroxfb_unregister_driver);EXPORT_SYMBOL (matroxfb_wait_for_sync);EXPORT_SYMBOL (matroxfb_enable_irq); - -/* -* Overrides for Emacs so that we follow Linus's tabbing style. -* --------------------------------------------------------------------------- -* Local variables: -* c-basic-offset: 8 -* End: -*/ -
drivers/video/fbdev/vga16fb.c +0 -10
@@ -1451,13 +1451,3 @@ MODULE_DESCRIPTION("Legacy VGA framebuffer device driver");MODULE_LICENSE ("GPL" );module_init (vga16fb_init);module_exit (vga16fb_exit); - - -/* -* Overrides for Emacs so that we follow Linus's tabbing style. -* --------------------------------------------------------------------------- -* Local variables: -* c-basic-offset: 8 -* End: -*/ -
fs/configfs/configfs_internal.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset:8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * configfs_internal.h - Internal stuff for configfs * * Based on sysfs:
fs/configfs/dir.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dir.c - Operations for configfs directories. * * Based on sysfs:
fs/configfs/file.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * file.c - operations for regular (text) files. * * Based on sysfs:
fs/configfs/inode.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * inode.c - basic inode and dentry operations. * * Based on sysfs:
fs/configfs/item.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * item.c - library routines for handling generic config items * * Based on kobject:
fs/configfs/mount.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * mount.c - operations for initializing and mounting configfs. * * Based on sysfs:
fs/configfs/symlink.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * symlink.c - operations for configfs symlinks. * * Based on sysfs:
fs/nfs/dir.c +0 -7
@@ -3004,10 +3004,3 @@ int nfs_permission(struct user_namespace *mnt_userns, goto out; }EXPORT_SYMBOL_GPL (nfs_permission); - -/* -* Local variables: -* version-control: t -* kept-new-versions: 5 -* End: -*/
fs/nfs/nfs4proc.c +0 -6
@@ -10427,9 +10427,3 @@ const struct xattr_handler *nfs4_xattr_handlers[] = {#endif NULL }; - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
fs/nfs/nfs4renewd.c +0 -6
@@ -149,9 +149,3 @@ void nfs4_set_lease_period(struct nfs_client *clp,/* Cap maximum reconnect timeout at 1/2 lease period */ rpc_set_connect_timeout (clp->cl_rpcclient, lease, lease >>1 ); } - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
fs/nfs/nfs4state.c +0 -6
@@ -2695,9 +2695,3 @@ static int nfs4_run_state_manager(void *ptr)module_put_and_exit (0 );return 0 ; } - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
fs/nfs/nfs4xdr.c +0 -6
@@ -7629,9 +7629,3 @@ const struct rpc_version nfs_version4 = { .procs = nfs4_procedures, .counts = nfs_version4_counts, }; - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
fs/nfsd/nfs4proc.c +0 -6
@@ -3329,9 +3329,3 @@ const struct svc_version nfsd_version4 = { .vs_rpcb_optnl = true, .vs_need_cong_ctrl = true, }; - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
fs/nfsd/nfs4xdr.c +0 -6
@@ -5448,9 +5448,3 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p)nfsd4_sequence_done (resp);return 1 ; } - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
fs/nfsd/xdr4.h +0 -6
@@ -866,9 +866,3 @@ struct nfsd4_operation {#endif - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
fs/ocfs2/acl.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * acl.c * * Copyright (C) 2004, 2008 Oracle. All rights reserved.
fs/ocfs2/acl.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * acl.h * * Copyright (C) 2004, 2008 Oracle. All rights reserved.
fs/ocfs2/alloc.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * alloc.c * * Extent allocs and frees
fs/ocfs2/alloc.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * alloc.h * * Function prototypes
fs/ocfs2/aops.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * Copyright (C) 2002, 2004 Oracle. All rights reserved. */
fs/ocfs2/aops.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * Copyright (C) 2002, 2004, 2005 Oracle. All rights reserved. */
fs/ocfs2/blockcheck.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * blockcheck.c * * Checksum and ECC codes for the OCFS2 userspace library.
fs/ocfs2/blockcheck.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * blockcheck.h * * Checksum and ECC codes for the OCFS2 userspace library.
fs/ocfs2/buffer_head_io.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * io.c * * Buffer cache handling
fs/ocfs2/buffer_head_io.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs2_buffer_head.h * * Buffer cache handling functions defined
fs/ocfs2/cluster/heartbeat.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * Copyright (C) 2004, 2005 Oracle. All rights reserved. */
fs/ocfs2/cluster/heartbeat.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * heartbeat.h * * Function prototypes
fs/ocfs2/cluster/masklog.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * Copyright (C) 2004, 2005 Oracle. All rights reserved. */
fs/ocfs2/cluster/masklog.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * Copyright (C) 2005 Oracle. All rights reserved. */
fs/ocfs2/cluster/netdebug.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * netdebug.c * * debug functionality for o2net
fs/ocfs2/cluster/nodemanager.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * Copyright (C) 2004, 2005 Oracle. All rights reserved. */
fs/ocfs2/cluster/nodemanager.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * nodemanager.h * * Function prototypes
fs/ocfs2/cluster/ocfs2_heartbeat.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs2_heartbeat.h * * On-disk structures for ocfs2_heartbeat
fs/ocfs2/cluster/ocfs2_nodemanager.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs2_nodemanager.h * * Header describing the interface between userspace and the kernel
fs/ocfs2/cluster/quorum.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* -* vim: noexpandtab sw=8 ts=8 sts=0: +/* * * Copyright (C) 2005 Oracle. All rights reserved. */
fs/ocfs2/cluster/quorum.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * Copyright (C) 2005 Oracle. All rights reserved. */
fs/ocfs2/cluster/sys.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * sys.c * * OCFS2 cluster sysfs interface
fs/ocfs2/cluster/sys.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * sys.h * * Function prototypes for o2cb sysfs interface
fs/ocfs2/cluster/tcp.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* -* vim: noexpandtab sw=8 ts=8 sts=0: +/* * * Copyright (C) 2004 Oracle. All rights reserved. *
fs/ocfs2/cluster/tcp.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * tcp.h * * Function prototypes
fs/ocfs2/cluster/tcp_internal.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * Copyright (C) 2005 Oracle. All rights reserved. */
fs/ocfs2/dcache.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dcache.c * * dentry cache handling code
fs/ocfs2/dcache.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dcache.h * * Function prototypes
fs/ocfs2/dir.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dir.c * * Creates, reads, walks and deletes directory-nodes
fs/ocfs2/dir.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dir.h * * Function prototypes
fs/ocfs2/dlm/dlmapi.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmapi.h * * externally exported dlm interfaces
fs/ocfs2/dlm/dlmast.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmast.c * * AST and BAST functionality for local and remote nodes
fs/ocfs2/dlm/dlmcommon.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmcommon.h * * Copyright (C) 2004 Oracle. All rights reserved.
fs/ocfs2/dlm/dlmconvert.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmconvert.c * * underlying calls for lock conversion
fs/ocfs2/dlm/dlmconvert.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmconvert.h * * Copyright (C) 2004 Oracle. All rights reserved.
fs/ocfs2/dlm/dlmdebug.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmdebug.c * * debug functionality for the dlm
fs/ocfs2/dlm/dlmdebug.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmdebug.h * * Copyright (C) 2008 Oracle. All rights reserved.
fs/ocfs2/dlm/dlmdomain.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmdomain.c * * defines domain join / leave apis
fs/ocfs2/dlm/dlmdomain.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmdomain.h * * Copyright (C) 2004 Oracle. All rights reserved.
fs/ocfs2/dlm/dlmlock.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmlock.c * * underlying calls for lock creation
fs/ocfs2/dlm/dlmmaster.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmmod.c * * standalone DLM module
fs/ocfs2/dlm/dlmrecovery.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmrecovery.c * * recovery stuff
fs/ocfs2/dlm/dlmthread.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmthread.c * * standalone DLM module
fs/ocfs2/dlm/dlmunlock.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmunlock.c * * underlying calls for unlocking locks
fs/ocfs2/dlmfs/dlmfs.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmfs.c * * Code which implements the kernel side of a minimal userspace
fs/ocfs2/dlmfs/userdlm.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * userdlm.c * * Code which implements the kernel side of a minimal userspace
fs/ocfs2/dlmfs/userdlm.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * userdlm.h * * Userspace dlm defines
fs/ocfs2/dlmglue.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmglue.c * * Code which implements an OCFS2 specific interface to our DLM.
fs/ocfs2/dlmglue.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * dlmglue.h * * description here
fs/ocfs2/export.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * export.c * * Functions to facilitate NFS exporting
fs/ocfs2/export.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * export.h * * Function prototypes
fs/ocfs2/extent_map.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * extent_map.c * * Block/Cluster mapping functions
fs/ocfs2/extent_map.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * extent_map.h * * In-memory file extent mappings for OCFS2.
fs/ocfs2/file.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * file.c * * File open, close, extend, truncate
fs/ocfs2/file.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * file.h * * Function prototypes
fs/ocfs2/filecheck.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * filecheck.c * * Code which implements online file check.
fs/ocfs2/filecheck.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * filecheck.h * * Online file check.
fs/ocfs2/heartbeat.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * heartbeat.c * * Register ourselves with the heartbaet service, keep our node maps
fs/ocfs2/heartbeat.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * heartbeat.h * * Function prototypes
fs/ocfs2/inode.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * inode.c * * vfs' aops, fops, dops and iops
fs/ocfs2/inode.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * inode.h * * Function prototypes
fs/ocfs2/journal.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * journal.c * * Defines functions of journalling api
fs/ocfs2/journal.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * journal.h * * Defines journalling api and structures.
fs/ocfs2/localalloc.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * localalloc.c * * Node local data allocation
fs/ocfs2/localalloc.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * localalloc.h * * Function prototypes
fs/ocfs2/locks.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * locks.c * * Userspace file locking support
fs/ocfs2/locks.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * locks.h * * Function prototypes for Userspace file locking support
fs/ocfs2/mmap.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * mmap.c * * Code to deal with the mess that is clustered mmap.
fs/ocfs2/move_extents.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * move_extents.c * * Copyright (C) 2011 Oracle. All rights reserved.
fs/ocfs2/move_extents.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * move_extents.h * * Copyright (C) 2011 Oracle. All rights reserved.
fs/ocfs2/namei.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * namei.c * * Create and rename file, directory, symlinks
fs/ocfs2/namei.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * namei.h * * Function prototypes
fs/ocfs2/ocfs1_fs_compat.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs1_fs_compat.h * * OCFS1 volume header definitions. OCFS2 creates valid but unmountable
fs/ocfs2/ocfs2.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs2.h * * Defines macros and structures used in OCFS2
fs/ocfs2/ocfs2_fs.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs2_fs.h * * On-disk structures for OCFS2.
fs/ocfs2/ocfs2_ioctl.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs2_ioctl.h * * Defines OCFS2 ioctls.
fs/ocfs2/ocfs2_lockid.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs2_lockid.h * * Defines OCFS2 lockid bits.
fs/ocfs2/ocfs2_lockingver.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * ocfs2_lockingver.h * * Defines OCFS2 Locking version values.
fs/ocfs2/refcounttree.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * refcounttree.c * * Copyright (C) 2009 Oracle. All rights reserved.
fs/ocfs2/refcounttree.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * refcounttree.h * * Copyright (C) 2009 Oracle. All rights reserved.
fs/ocfs2/reservations.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * reservations.c * * Allocation reservations implementation
fs/ocfs2/reservations.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * reservations.h * * Allocation reservations function prototypes and structures.
fs/ocfs2/resize.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * resize.c * * volume resize.
fs/ocfs2/resize.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * resize.h * * Function prototypes
fs/ocfs2/slot_map.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * slot_map.c * * Copyright (C) 2002, 2004 Oracle. All rights reserved.
fs/ocfs2/slot_map.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * slotmap.h * * description here
fs/ocfs2/stack_o2cb.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * stack_o2cb.c * * Code which interfaces ocfs2 with the o2cb stack.
fs/ocfs2/stack_user.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * stack_user.c * * Code which interfaces ocfs2 with fs/dlm and a userspace stack.
fs/ocfs2/stackglue.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * stackglue.c * * Code which implements an OCFS2 specific interface to underlying
fs/ocfs2/stackglue.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * stackglue.h * * Glue to the underlying cluster stack.
fs/ocfs2/suballoc.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * suballoc.c * * metadata alloc and free
fs/ocfs2/suballoc.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * suballoc.h * * Defines sub allocator api
fs/ocfs2/super.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * super.c * * load/unload driver, mount/dismount volumes
fs/ocfs2/super.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * super.h * * Function prototypes
fs/ocfs2/symlink.c +1 -3
@@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * linux/cluster/ssi/cfs/symlink.c * * This program is free software; you can redistribute it and/or
fs/ocfs2/symlink.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * symlink.h * * Function prototypes
fs/ocfs2/sysfile.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * sysfile.c * * Initialize, read, write, etc. system files.
fs/ocfs2/sysfile.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * sysfile.h * * Function prototypes
fs/ocfs2/uptodate.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * uptodate.c * * Tracking the up-to-date-ness of a local buffer_head with respect to
fs/ocfs2/uptodate.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * uptodate.h * * Cluster uptodate tracking
fs/ocfs2/xattr.c +1 -3
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-only -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * xattr.c * * Copyright (C) 2004, 2008 Oracle. All rights reserved.
fs/ocfs2/xattr.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-only */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * xattr.h * * Copyright (C) 2004, 2008 Oracle. All rights reserved.
fs/reiserfs/procfs.c +0 -10
@@ -488,13 +488,3 @@ int reiserfs_proc_info_global_done(void)* (available at http://www.namesys.com/legalese.html) * */ - -/* -* Make Linus happy. -* Local variables: -* c-indentation-style: "K&R" -* mode-name: "LC" -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/
include/linux/configfs.h +1 -3
@@ -1,7 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -*- mode: c; c-basic-offset: 8; -*- -* vim: noexpandtab sw=8 ts=8 sts=0: -* +/* * configfs.h - definitions for the device driver filesystem * * Based on sysfs:
include/linux/genl_magic_func.h +0 -1
@@ -404,4 +404,3 @@ s_fields \/* }}}1 */ #endif /* GENL_MAGIC_FUNC_H */ -/* vim: set foldmethod=marker foldlevel=1 nofoldenable : */
include/linux/genl_magic_struct.h +0 -1
@@ -283,4 +283,3 @@ enum { \/* }}}1 */ #endif /* GENL_MAGIC_STRUCT_H */ -/* vim: set foldmethod=marker nofoldenable : */
include/uapi/linux/if_bonding.h +0 -11
@@ -153,14 +153,3 @@ enum {#define BOND_3AD_STAT_MAX (__BOND_3AD_STAT_MAX - 1)#endif /* _LINUX_IF_BONDING_H */ - -/* -* Local variables: -* version-control: t -* kept-new-versions: 5 -* c-indent-level: 8 -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/ -
include/uapi/linux/nfs4.h +0 -6
@@ -178,9 +178,3 @@#define NFS4_MAX_BACK_CHANNEL_OPS 2#endif /* _UAPI_LINUX_NFS4_H */ - -/* -* Local variables: -* c-basic-offset: 8 -* End: -*/
include/xen/interface/elfnote.h +0 -10
@@ -208,13 +208,3 @@#define XEN_ELFNOTE_MAX XEN_ELFNOTE_PHYS32_ENTRY#endif /* __XEN_PUBLIC_ELFNOTE_H__ */ - -/* -* Local variables: -* mode: C -* c-set-style: "BSD" -* c-basic-offset: 4 -* tab-width: 4 -* indent-tabs-mode: nil -* End: -*/
include/xen/interface/hvm/hvm_vcpu.h +0 -10
@@ -131,13 +131,3 @@ struct vcpu_hvm_context {typedef struct vcpu_hvm_context vcpu_hvm_context_t ;#endif /* __XEN_PUBLIC_HVM_HVM_VCPU_H__ */ - -/* -* Local variables: -* mode: C -* c-file-style: "BSD" -* c-basic-offset: 4 -* tab-width: 4 -* indent-tabs-mode: nil -* End: -*/
include/xen/interface/io/xenbus.h +0 -10
@@ -39,13 +39,3 @@ enum xenbus_state };#endif /* _XEN_PUBLIC_IO_XENBUS_H */ - -/* -* Local variables: -* c-file-style: "linux" -* indent-tabs-mode: t -* c-indent-level: 8 -* c-basic-offset: 8 -* tab-width: 8 -* End: -*/
samples/configfs/configfs_sample.c +0 -2
@@ -1,7 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later /* -* vim: noexpandtab ts=8 sts=0 sw=8: -* * configfs_example_macros.c - This file is a demonstration module * containing a number of configfs subsystems. It uses the helper * macros defined by configfs.h
tools/usb/hcd-tests.sh +0 -2
@@ -272,5 +272,3 @@ do echo '' done done - -# vim: sw=4
Signature · 1 line
2.27.0
Quoted 11 lines · Masahiro Yamada
The section "19) Editor modelines and other cruft" in
Documentation/process/coding-style.rstclearly says, "Do not include any of these in source files."I recently receive a patch to explicitly add a new one.
Let's do treewide cleanups, otherwise some people follow the existing code and attempt to upstream their favoriate editor setups.
It is even nicer if
scripts/checkpatch.plcan check it.
Quoted 8 lines
If we like to impose coding style in an editor-independent manner, I think editorconfig (patch [1]) is a saner solution.
[1] https://lore.kernel.org/lkml/[email protected]/
Signed-off-by Masahiro Yamada <[email protected]>arch/m68k/atari/time.c | 7 -------
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Masahiro,
Quoted 10 lines · Masahiro Yamada
The section "19) Editor modelines and other cruft" in
Documentation/process/coding-style.rstclearly says, "Do not include any of these in source files."I recently receive a patch to explicitly add a new one.
Let's do treewide cleanups, otherwise some people follow the existing code and attempt to upstream their favoriate editor setups.
Quoted 8 lines
It is even nicer if
scripts/checkpatch.plcan check it.If we like to impose coding style in an editor-independent manner, I think editorconfig (patch [1]) is a saner solution.
[1] https://lore.kernel.org/lkml/[email protected]/
Signed-off-by Masahiro Yamada <[email protected]>
+1 It is great to get rid of those.
For auxdisplay:
For the rest, I did a quick visual inspection and didn't see anything wrong.
Cheers,
Miguel