diff options
| author | Jonathan Neuschäfer <j.ne@posteo.net> | 2025-02-28 18:11:20 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-03 12:24:41 +0300 |
| commit | b1a23e3bbf5f72785164bb1c6491c4cea7369557 (patch) | |
| tree | f97f8b7f8802341713ce533e9ecebd30a894666f /scripts/patch-kernel | |
| parent | 6623c40bed7aac98e783e0bb2d7ad1afb8c63e9d (diff) | |
| download | linux-b1a23e3bbf5f72785164bb1c6491c4cea7369557.tar.xz | |
usb: storage: initializers: Use const for constant array
init_string is only read, not modified.
Declaring data as const makes it easier to see what's going on, and can
prevent unintended writes through placement in a read-only section.
Signed-off-by: Jonathan Neuschäfer <j.ne@posteo.net>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250228-misc-const-v3-5-09b417ded9c4@posteo.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
