Searched hist:"66431 b0e" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | platform.h | 66431b0e Mon Dec 05 18:48:11 CST 2016 Bart Van Assche <bart.vanassche@sandisk.com> 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> 66431b0e Mon Dec 05 18:48:11 CST 2016 Bart Van Assche <bart.vanassche@sandisk.com> 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>
|
H A D | firmware.c | 66431b0e Mon Dec 05 18:48:11 CST 2016 Bart Van Assche <bart.vanassche@sandisk.com> 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> 66431b0e Mon Dec 05 18:48:11 CST 2016 Bart Van Assche <bart.vanassche@sandisk.com> 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>
|