]> 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)
commitd7b2d49227d49f8bdcb4d695a1d918ad18b73294
tree20697da5cce39e7faca41a7cde18a92a8561ff9e
parent0cdfaae15c15eca6d5de772aae1ece8fb4bc2048
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