]> git.baikalelectronics.ru Git - kernel.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)
commit69d3c3b76c6b0cae4f0650ae9b50d1c3dec08f24
treed5c6d0e4b511ad49d95ad8c0e402a007e98b14c7
parent81c50afcddfd0cfce76a88277eefa23c5f0e4a0e
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