IB/rdamvt: fix cross build with rdmavt
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 18 Feb 2016 19:12:42 +0000 (11:12 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:44 +0000 (20:45 -0500)
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 <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/vt.c

index 9566a920a244b3e1628f611b7467b3a05ecbbfbc..6caf5272ba1f70b96ab19a7a4df1e51f08dfb41c 100644 (file)
@@ -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: