Skip to content

Commit f5308a8

Browse files
Yue Haibingrafaeljw
authored andcommitted
ACPICA: Make acpi_protocol_lengths static
ACPICA commit 0ebacf12b8ca66ce6d3fce4d349b3f2448da18cb A linux-based static analyzer (sparse) caught this as a warning. Making this variable static will result in better optimizations and ensure that this variable does not get used outside of this file. Signed-off-by: Yue Haibing <[email protected]> [ek: commit message] Link: acpica/acpica@0ebacf12 Signed-off-by: Erik Kaneda <[email protected]> Signed-off-by: Yue Haibing <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0e698df commit f5308a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/acpica/exfield.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ACPI_MODULE_NAME("exfield")
2222
*/
2323
#define ACPI_INVALID_PROTOCOL_ID 0x80
2424
#define ACPI_MAX_PROTOCOL_ID 0x0F
25-
const u8 acpi_protocol_lengths[] = {
25+
static const u8 acpi_protocol_lengths[] = {
2626
ACPI_INVALID_PROTOCOL_ID, /* 0 - reserved */
2727
ACPI_INVALID_PROTOCOL_ID, /* 1 - reserved */
2828
0x00, /* 2 - ATTRIB_QUICK */

0 commit comments

Comments
 (0)