]> git.karo-electronics.de Git - linux-beck.git/commit
IB/hfi1: Define platform_config_table_limits once
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 6 Dec 2016 00:48:11 +0000 (16:48 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 11 Dec 2016 20:29:42 +0000 (15:29 -0500)
commit66431b0e8657e2406742105f89175f571340090b
treed5c6d0e4b511ad49d95ad8c0e402a007e98b14c7
parent0fc859a6576aaa747c5359c2bf622aac3158e2c7
IB/hfi1: Define platform_config_table_limits once

Defining static data structures in a header file is wrong because
this causes the data structure to be instantiated once in every .c
file it is included in. Hence move the definition of a static
array from a header file into the only .c file in which it is used.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
Cc: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/firmware.c
drivers/infiniband/hw/hfi1/platform.h