summaryrefslogtreecommitdiffstats
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2016-10-11 13:51:59 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-11 15:06:30 -0700
commit15c03cfeabff447abec9e05b5830922099b89943 (patch)
treea82043724bf1bdf5eace0e76e1dbe4680c37a06a /scripts/const_structs.checkpatch
parentbf1fa1dae68e1b58b7b7fd61bde654d37da1de57 (diff)
downloadlinux-stable-15c03cfeabff447abec9e05b5830922099b89943.tar.gz
linux-stable-15c03cfeabff447abec9e05b5830922099b89943.tar.bz2
linux-stable-15c03cfeabff447abec9e05b5830922099b89943.zip
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/const_structs.checkpatch')
-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
address_space_operations
backlight_ops
block_device_operations
+clk_ops
+comedi_lrange
+component_ops
dentry_operations
dev_pm_ops
dma_map_ops
+driver_info
+drm_connector_funcs
+drm_encoder_funcs
+drm_encoder_helper_funcs
+ethtool_ops
extent_io_ops
file_lock_operations
file_operations
hv_ops
ide_dma_ops
+ide_port_ops
+inode_operations
intel_dvo_dev_ops
+irq_domain_ops
item_operations
+iwl_cfg
iwl_ops
kgdb_arch
kgdb_io
kset_uevent_ops
lock_manager_operations
+machine_desc
microcode_ops
+mlxsw_reg_info
mtrr_ops
neigh_ops
+net_device_ops
nlmsvc_binding
+nvkm_device_chip
of_device_id
pci_raw_ops
pipe_buf_operations
platform_hibernation_ops
platform_suspend_ops
proto_ops
+regmap_access_table
rpc_pipe_ops
+rtc_class_ops
+sd_desc
seq_operations
+sirfsoc_padmux
snd_ac97_build_ops
+snd_soc_component_driver
soc_pcmcia_socket_ops
stacktrace_ops
sysfs_ops
tty_operations
uart_ops
usb_mon_operations
+v4l2_ctrl_ops
+v4l2_ioctl_ops
+vm_operations_struct
+wacom_features
wd_ops