-
Notifications
You must be signed in to change notification settings - Fork 55.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpatch: externalize the structs that should be const
Make it easier to add new structs that should be const. Link: http://lkml.kernel.org/r/e5a8da43e7c11525bafbda1ca69a8323614dd942.1472664220.git.joe@perches.com Signed-off-by: Joe Perches <joe@perches.com> Cc: Julia Lawall <julia.lawall@lip6.fr> Cc: Kees Cook <keescook@chromium.org> Cc: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
- Loading branch information
1 parent
f333195
commit bf1fa1d
Showing
2 changed files
with
63 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
acpi_dock_ops | ||
address_space_operations | ||
backlight_ops | ||
block_device_operations | ||
dentry_operations | ||
dev_pm_ops | ||
dma_map_ops | ||
extent_io_ops | ||
file_lock_operations | ||
file_operations | ||
hv_ops | ||
ide_dma_ops | ||
intel_dvo_dev_ops | ||
item_operations | ||
iwl_ops | ||
kgdb_arch | ||
kgdb_io | ||
kset_uevent_ops | ||
lock_manager_operations | ||
microcode_ops | ||
mtrr_ops | ||
neigh_ops | ||
nlmsvc_binding | ||
of_device_id | ||
pci_raw_ops | ||
pipe_buf_operations | ||
platform_hibernation_ops | ||
platform_suspend_ops | ||
proto_ops | ||
rpc_pipe_ops | ||
seq_operations | ||
snd_ac97_build_ops | ||
soc_pcmcia_socket_ops | ||
stacktrace_ops | ||
sysfs_ops | ||
tty_operations | ||
uart_ops | ||
usb_mon_operations | ||
wd_ops |
bf1fa1d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has one unexpected (I think) outcome:
If we run checkpatch.pl without the const_structs.checkpatch file:
we of course can see warning
but it looks like all
struct
s are expected to beconst
.I am not
perl
expert but this line looks to be always truein case of missing const_structs.checkpatch