IB/hfi1: Allocate cpu mask on the heap to silence warning
authorTadeusz Struk <tadeusz.struk@intel.com>
Thu, 4 Aug 2016 00:19:32 +0000 (20:19 -0400)
committerDoug Ledford <dledford@redhat.com>
Mon, 22 Aug 2016 18:26:54 +0000 (14:26 -0400)
commit8303f683b161467b6595c153c8751b80f9df3508
tree20697da5cce39e7faca41a7cde18a92a8561ff9e
parent5412352fcd8fba7f278ae8c9ba36296716f17ae8
IB/hfi1: Allocate cpu mask on the heap to silence warning

If CONFIG_FRAME_WARN is small (1K) and CONFIG_NR_CPUS big
then a frame size warning is triggered during build.
Allocate the cpu mask dynamically to silence the warning.

Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/affinity.c