diff options
author | Arjan van de Ven <arjan@infradead.org> | 2005-11-29 03:43:42 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 16:51:40 -0500 |
commit | 4c4c9432a6c916729c7296c47fe93b053a73e20c (patch) | |
tree | 7f02f456359259da8bae5e3d32fc4411311ee135 /drivers/usb/storage/usb.c | |
parent | 9fe6fcd8ccb2c8c661dfd1e07e3122aef31a67d4 (diff) |
[PATCH] USB: mark various usb tables const
patch below marks various USB tables and variables as const so that they
end up in .rodata section and don't cacheline share with things that get
written to. For the non-array variables it also allows gcc to optimize
more.
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/usb.c')
-rw-r--r-- | drivers/usb/storage/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 484ed297bed0..356f471ba83b 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c | |||
@@ -470,7 +470,7 @@ static void get_device_info(struct us_data *us, const struct usb_device_id *id) | |||
470 | * from the unusual_devs.h table. | 470 | * from the unusual_devs.h table. |
471 | */ | 471 | */ |
472 | if (id->idVendor || id->idProduct) { | 472 | if (id->idVendor || id->idProduct) { |
473 | static char *msgs[3] = { | 473 | static const char *msgs[3] = { |
474 | "an unneeded SubClass entry", | 474 | "an unneeded SubClass entry", |
475 | "an unneeded Protocol entry", | 475 | "an unneeded Protocol entry", |
476 | "unneeded SubClass and Protocol entries"}; | 476 | "unneeded SubClass and Protocol entries"}; |