From: Mike Marciniszyn Date: Thu, 18 Feb 2016 19:12:42 +0000 (-0800) Subject: IB/rdamvt: fix cross build with rdmavt X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9debaaecb9070c05bbc3b5d2257d6aea416ccab6;p=linux-beck.git IB/rdamvt: fix cross build with rdmavt The new check routine causes a larger than supported frame size on s390. Changing the check routine to noinline fixes the issue. Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/sw/rdmavt/vt.c b/drivers/infiniband/sw/rdmavt/vt.c index 9566a920a244..6caf5272ba1f 100644 --- a/drivers/infiniband/sw/rdmavt/vt.c +++ b/drivers/infiniband/sw/rdmavt/vt.c @@ -383,7 +383,7 @@ static inline int check_driver_override(struct rvt_dev_info *rdi, return 1; } -static int check_support(struct rvt_dev_info *rdi, int verb) +static noinline int check_support(struct rvt_dev_info *rdi, int verb) { switch (verb) { case MISC: