]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85e5c986dbff4897672b6fe677307b55c010c2d5
tree20697da5cce39e7faca41a7cde18a92a8561ff9e
parent543c6cd5792a1d41a65b2f9436917098fcee5631
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