History

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.

Joe Perches committed 10 years ago

Commit 15c03cf1 parent bf1fa1d1 file · +25 −0Browse files

Showing the changes to scripts/const_structs.checkpatch (1 of 1 file). Show all

Unified · Split

scripts/const_structs.checkpatch+25−0
@@ -2,38 +2,63 @@ acpi_dock_ops · 1 unmodified line
2address_space_operations2address_space_operations
3backlight_ops3backlight_ops
4block_device_operations4block_device_operations
5clk_ops
6comedi_lrange
7component_ops
5dentry_operations8dentry_operations
6dev_pm_ops9dev_pm_ops
7dma_map_ops10dma_map_ops
11driver_info
12drm_connector_funcs
13drm_encoder_funcs
14drm_encoder_helper_funcs
15ethtool_ops
8extent_io_ops16extent_io_ops
9file_lock_operations17file_lock_operations
10file_operations18file_operations
11hv_ops19hv_ops
12ide_dma_ops20ide_dma_ops
21ide_port_ops
22inode_operations
13intel_dvo_dev_ops23intel_dvo_dev_ops
24irq_domain_ops
14item_operations25item_operations
26iwl_cfg
15iwl_ops27iwl_ops
16kgdb_arch28kgdb_arch
17kgdb_io29kgdb_io
18kset_uevent_ops30kset_uevent_ops
19lock_manager_operations31lock_manager_operations
32machine_desc
20microcode_ops33microcode_ops
34mlxsw_reg_info
21mtrr_ops35mtrr_ops
22neigh_ops36neigh_ops
37net_device_ops
23nlmsvc_binding38nlmsvc_binding
39nvkm_device_chip
24of_device_id40of_device_id
25pci_raw_ops41pci_raw_ops
26pipe_buf_operations42pipe_buf_operations
27platform_hibernation_ops43platform_hibernation_ops
28platform_suspend_ops44platform_suspend_ops
29proto_ops45proto_ops
46regmap_access_table
30rpc_pipe_ops47rpc_pipe_ops
48rtc_class_ops
49sd_desc
31seq_operations50seq_operations
51sirfsoc_padmux
32snd_ac97_build_ops52snd_ac97_build_ops
53snd_soc_component_driver
33soc_pcmcia_socket_ops54soc_pcmcia_socket_ops
34stacktrace_ops55stacktrace_ops
35sysfs_ops56sysfs_ops
36tty_operations57tty_operations
37uart_ops58uart_ops
38usb_mon_operations59usb_mon_operations
60v4l2_ctrl_ops
61v4l2_ioctl_ops
62vm_operations_struct
63wacom_features
39wd_ops64wd_ops