]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IB/hfi1: Avoid large frame size warning
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 31 May 2016 07:54:36 +0000 (10:54 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 6 Jun 2016 23:16:52 +0000 (19:16 -0400)
commitf242d93ae92032f78840471e5c2bfc2d04ae324c
treebc1ef64dbc2236520bce90fb66dc7c9a7faf8a74
parenta8b7da58ec81e74a3a6982e2dba24f899b56c915
IB/hfi1: Avoid large frame size warning

When CONFIG_FRAME_WARN is set to 1024 bytes, which is useful to find
stack consumers, we get a warning in hfi1 driver.

drivers/infiniband/hw/hfi1/affinity.c: In function
‘hfi1_get_proc_affinity’:
drivers/infiniband/hw/hfi1/affinity.c:415:1: warning: the frame size of
1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]

This change removes unneeded buf[1024] declaration and usage.

Fixes: f48ad614c100 ("IB/hfi1: Move driver out of staging")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/affinity.c