aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2016-10-11 16:51:59 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-11 18:06:30 -0400
commit15c03cfeabff447abec9e05b5830922099b89943 (patch)
treea82043724bf1bdf5eace0e76e1dbe4680c37a06a /scripts
parentbf1fa1dae68e1b58b7b7fd61bde654d37da1de57 (diff)
const_structs.checkpatch: add frequently used from Julia Lawall's list
Using const is generally a good idea. Julia Lawall has created a list of always const and almost always const structs in the kernel sources. Link: https://lkml.org/lkml/2016/8/28/95 Add the most frequently used (> 50 cases) that are almost always or always const. Link: http://lkml.kernel.org/r/1e16020f8027654db0095bbfbcc11da51025365c.1472664220.git.joe@perches.com Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Kees Cook <keescook@chromium.org> Cc: Julia Lawall <julia.lawall@lip6.fr> Cc: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/const_structs.checkpatch25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/const_structs.checkpatch b/scripts/const_structs.checkpatch
index 1b54425f6c89..ac5f1267151d 100644
--- a/scripts/const_structs.checkpatch
+++ b/scripts/const_structs.checkpatch
@@ -2,38 +2,63 @@ acpi_dock_ops
2address_space_operations 2address_space_operations
3backlight_ops 3backlight_ops
4block_device_operations 4block_device_operations
5clk_ops
6comedi_lrange
7component_ops
5dentry_operations 8dentry_operations
6dev_pm_ops 9dev_pm_ops
7dma_map_ops 10dma_map_ops
11driver_info
12drm_connector_funcs
13drm_encoder_funcs
14drm_encoder_helper_funcs
15ethtool_ops
8extent_io_ops 16extent_io_ops
9file_lock_operations 17file_lock_operations
10file_operations 18file_operations
11hv_ops 19hv_ops
12ide_dma_ops 20ide_dma_ops
21ide_port_ops
22inode_operations
13intel_dvo_dev_ops 23intel_dvo_dev_ops
24irq_domain_ops
14item_operations 25item_operations
26iwl_cfg
15iwl_ops 27iwl_ops
16kgdb_arch 28kgdb_arch
17kgdb_io 29kgdb_io
18kset_uevent_ops 30kset_uevent_ops
19lock_manager_operations 31lock_manager_operations
32machine_desc
20microcode_ops 33microcode_ops
34mlxsw_reg_info
21mtrr_ops 35mtrr_ops
22neigh_ops 36neigh_ops
37net_device_ops
23nlmsvc_binding 38nlmsvc_binding
39nvkm_device_chip
24of_device_id 40of_device_id
25pci_raw_ops 41pci_raw_ops
26pipe_buf_operations 42pipe_buf_operations
27platform_hibernation_ops 43platform_hibernation_ops
28platform_suspend_ops 44platform_suspend_ops
29proto_ops 45proto_ops
46regmap_access_table
30rpc_pipe_ops 47rpc_pipe_ops
48rtc_class_ops
49sd_desc
31seq_operations 50seq_operations
51sirfsoc_padmux
32snd_ac97_build_ops 52snd_ac97_build_ops
53snd_soc_component_driver
33soc_pcmcia_socket_ops 54soc_pcmcia_socket_ops
34stacktrace_ops 55stacktrace_ops
35sysfs_ops 56sysfs_ops
36tty_operations 57tty_operations
37uart_ops 58uart_ops
38usb_mon_operations 59usb_mon_operations
60v4l2_ctrl_ops
61v4l2_ioctl_ops
62vm_operations_struct
63wacom_features
39wd_ops 64wd_ops