diff options
author | Joe Perches <joe@perches.com> | 2016-10-11 16:51:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-11 18:06:30 -0400 |
commit | 15c03cfeabff447abec9e05b5830922099b89943 (patch) | |
tree | a82043724bf1bdf5eace0e76e1dbe4680c37a06a /scripts | |
parent | bf1fa1dae68e1b58b7b7fd61bde654d37da1de57 (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.checkpatch | 25 |
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 | |||
2 | address_space_operations | 2 | address_space_operations |
3 | backlight_ops | 3 | backlight_ops |
4 | block_device_operations | 4 | block_device_operations |
5 | clk_ops | ||
6 | comedi_lrange | ||
7 | component_ops | ||
5 | dentry_operations | 8 | dentry_operations |
6 | dev_pm_ops | 9 | dev_pm_ops |
7 | dma_map_ops | 10 | dma_map_ops |
11 | driver_info | ||
12 | drm_connector_funcs | ||
13 | drm_encoder_funcs | ||
14 | drm_encoder_helper_funcs | ||
15 | ethtool_ops | ||
8 | extent_io_ops | 16 | extent_io_ops |
9 | file_lock_operations | 17 | file_lock_operations |
10 | file_operations | 18 | file_operations |
11 | hv_ops | 19 | hv_ops |
12 | ide_dma_ops | 20 | ide_dma_ops |
21 | ide_port_ops | ||
22 | inode_operations | ||
13 | intel_dvo_dev_ops | 23 | intel_dvo_dev_ops |
24 | irq_domain_ops | ||
14 | item_operations | 25 | item_operations |
26 | iwl_cfg | ||
15 | iwl_ops | 27 | iwl_ops |
16 | kgdb_arch | 28 | kgdb_arch |
17 | kgdb_io | 29 | kgdb_io |
18 | kset_uevent_ops | 30 | kset_uevent_ops |
19 | lock_manager_operations | 31 | lock_manager_operations |
32 | machine_desc | ||
20 | microcode_ops | 33 | microcode_ops |
34 | mlxsw_reg_info | ||
21 | mtrr_ops | 35 | mtrr_ops |
22 | neigh_ops | 36 | neigh_ops |
37 | net_device_ops | ||
23 | nlmsvc_binding | 38 | nlmsvc_binding |
39 | nvkm_device_chip | ||
24 | of_device_id | 40 | of_device_id |
25 | pci_raw_ops | 41 | pci_raw_ops |
26 | pipe_buf_operations | 42 | pipe_buf_operations |
27 | platform_hibernation_ops | 43 | platform_hibernation_ops |
28 | platform_suspend_ops | 44 | platform_suspend_ops |
29 | proto_ops | 45 | proto_ops |
46 | regmap_access_table | ||
30 | rpc_pipe_ops | 47 | rpc_pipe_ops |
48 | rtc_class_ops | ||
49 | sd_desc | ||
31 | seq_operations | 50 | seq_operations |
51 | sirfsoc_padmux | ||
32 | snd_ac97_build_ops | 52 | snd_ac97_build_ops |
53 | snd_soc_component_driver | ||
33 | soc_pcmcia_socket_ops | 54 | soc_pcmcia_socket_ops |
34 | stacktrace_ops | 55 | stacktrace_ops |
35 | sysfs_ops | 56 | sysfs_ops |
36 | tty_operations | 57 | tty_operations |
37 | uart_ops | 58 | uart_ops |
38 | usb_mon_operations | 59 | usb_mon_operations |
60 | v4l2_ctrl_ops | ||
61 | v4l2_ioctl_ops | ||
62 | vm_operations_struct | ||
63 | wacom_features | ||
39 | wd_ops | 64 | wd_ops |