Skip to content

Commit fa60ce2

Browse files
masahir0ytorvalds
authored andcommitted
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]/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Miguel Ojeda <[email protected]> [auxdisplay] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7497835 commit fa60ce2

File tree

157 files changed

+110
-627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+110
-627
lines changed

arch/m68k/atari/time.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,3 @@ int atari_tt_hwclk( int op, struct rtc_time *t )
317317

318318
return( 0 );
319319
}
320-
321-
/*
322-
* Local variables:
323-
* c-indent-level: 4
324-
* tab-width: 8
325-
* End:
326-
*/

arch/parisc/include/asm/pdc_chassis.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,4 +365,3 @@ void parisc_pdc_chassis_init(void);
365365
PDC_CHASSIS_EOM_SET )
366366

367367
#endif /* _PARISC_PDC_CHASSIS_H */
368-
/* vim: set ts=8 */

arch/um/drivers/cow.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,3 @@ extern void cow_sizes(int version, __u64 size, int sectorsize, int align,
2424
int *data_offset_out);
2525

2626
#endif
27-
28-
/*
29-
* ---------------------------------------------------------------------------
30-
* Local variables:
31-
* c-file-style: "linux"
32-
* End:
33-
*/

drivers/auxdisplay/panel.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,10 +1737,3 @@ module_init(panel_init_module);
17371737
module_exit(panel_cleanup_module);
17381738
MODULE_AUTHOR("Willy Tarreau");
17391739
MODULE_LICENSE("GPL");
1740-
1741-
/*
1742-
* Local variables:
1743-
* c-indent-level: 4
1744-
* tab-width: 8
1745-
* End:
1746-
*/

drivers/gpu/drm/qxl/qxl_drv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* vim: set ts=8 sw=8 tw=78 ai noexpandtab */
21
/* qxl_drv.c -- QXL driver -*- linux-c -*-
32
*
43
* Copyright 2011 Red Hat, Inc.

drivers/media/usb/pwc/pwc-uncompress.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
Please send bug reports and support requests to <[email protected]>.
1010
The decompression routines have been implemented by reverse-engineering the
1111
Nemosoft binary pwcx module. Caveat emptor.
12-
13-
14-
vim: set ts=8:
1512
*/
1613

1714
#include <asm/current.h>

drivers/net/ethernet/adaptec/starfire.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,11 +2070,3 @@ static void __exit starfire_cleanup (void)
20702070

20712071
module_init(starfire_init);
20722072
module_exit(starfire_cleanup);
2073-
2074-
2075-
/*
2076-
* Local variables:
2077-
* c-basic-offset: 8
2078-
* tab-width: 8
2079-
* End:
2080-
*/

drivers/net/ethernet/amd/atarilance.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,11 +1156,3 @@ static void __exit atarilance_module_exit(void)
11561156
module_init(atarilance_module_init);
11571157
module_exit(atarilance_module_exit);
11581158
#endif /* MODULE */
1159-
1160-
1161-
/*
1162-
* Local variables:
1163-
* c-indent-level: 4
1164-
* tab-width: 4
1165-
* End:
1166-
*/

drivers/net/ethernet/amd/pcnet32.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,10 +3029,3 @@ static void __exit pcnet32_cleanup_module(void)
30293029

30303030
module_init(pcnet32_init_module);
30313031
module_exit(pcnet32_cleanup_module);
3032-
3033-
/*
3034-
* Local variables:
3035-
* c-indent-level: 4
3036-
* tab-width: 8
3037-
* End:
3038-
*/

drivers/net/wireless/intersil/orinoco/orinoco_nortel.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,3 @@ static void __exit orinoco_nortel_exit(void)
312312

313313
module_init(orinoco_nortel_init);
314314
module_exit(orinoco_nortel_exit);
315-
316-
/*
317-
* Local variables:
318-
* c-indent-level: 8
319-
* c-basic-offset: 8
320-
* tab-width: 8
321-
* End:
322-
*/

0 commit comments

Comments
 (0)