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
22 address_space_operations
33 backlight_ops
44 block_device_operations
5+clk_ops
6+comedi_lrange
7+component_ops
58 dentry_operations
69 dev_pm_ops
710 dma_map_ops
11+driver_info
12+drm_connector_funcs
13+drm_encoder_funcs
14+drm_encoder_helper_funcs
15+ethtool_ops
816 extent_io_ops
917 file_lock_operations
1018 file_operations
1119 hv_ops
1220 ide_dma_ops
21+ide_port_ops
22+inode_operations
1323 intel_dvo_dev_ops
24+irq_domain_ops
1425 item_operations
26+iwl_cfg
1527 iwl_ops
1628 kgdb_arch
1729 kgdb_io
1830 kset_uevent_ops
1931 lock_manager_operations
32+machine_desc
2033 microcode_ops
34+mlxsw_reg_info
2135 mtrr_ops
2236 neigh_ops
37+net_device_ops
2338 nlmsvc_binding
39+nvkm_device_chip
2440 of_device_id
2541 pci_raw_ops
2642 pipe_buf_operations
2743 platform_hibernation_ops
2844 platform_suspend_ops
2945 proto_ops
46+regmap_access_table
3047 rpc_pipe_ops
48+rtc_class_ops
49+sd_desc
3150 seq_operations
51+sirfsoc_padmux
3252 snd_ac97_build_ops
53+snd_soc_component_driver
3354 soc_pcmcia_socket_ops
3455 stacktrace_ops
3556 sysfs_ops
3657 tty_operations
3758 uart_ops
3859 usb_mon_operations
60+v4l2_ctrl_ops
61+v4l2_ioctl_ops
62+vm_operations_struct
63+wacom_features
3964 wd_ops