Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3370054ybe; Sun, 8 Sep 2019 12:31:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+/Uwfa1jz/aMTYgtPdEV1ErUkRIHFHlXxdsnoeIyzS2UOOXGHxnHedGUNDiwEPJHFsTI3 X-Received: by 2002:a17:906:405b:: with SMTP id y27mr16679886ejj.18.1567971092800; Sun, 08 Sep 2019 12:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567971092; cv=none; d=google.com; s=arc-20160816; b=zg8BFablrRg5Ni5p9Gj4x6pPNfXilma2m26DpDvYosCTFm8H5WaBTZI/4jTzjkzStg ntC887Z4AY+EtQYuI+K5wNreFUCH4Ydf5XVlnz6Ftzheuo/rpDPtE9t3OL9Sz082aNBD YevK9QpaC+wb6g7HyceZkX9lk73bcMX7DfRCVq82XirzEABxO73uo0MXWkVrHtBUA01S lTaC2BSpotUdmuM7Y5WDbQaRIpyOekqOGFQ1pfzb2UvRrfHyhRYfNof/w6WzYSUH5E1c ezUF0fsUmFpkafwjlCjBEQoAPyCKgonc0gjz+3G4h6rDrKP0eV9WKjjdrxmKBc1evnul I5Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=LhiCADZkNTCl+mm69LYUXtAdkguFcYYbHWtAbXegPkM=; b=oEqYLLOVjHPLlPAyiTMHbGV2P7MwP+LvaX9ifUatRfsfI2pC1TSBm4HOo7QZejvRps 5jC8w6qtesq2i9/Y4zD0mqjUnI9ZdQCPM/YVCXYJbFE8MY8fmaL456SNyMqnscyYSmfa 0lPCZtA3FEjtBjM8kF98zWVjU7e828DLLWPtgVuGXx0BIG+1+Xq/lJ7ni21dH9YXYQkp Kanczk2otm6+vHz/30iRO48OgJVJtRLSLGP3iBEdrMhf6ew2mub6frjx6yi+KRUH7Hle 0aSoOCfLOwh84djZ1eoECmNP+4ARAacsMgI3W9tDqQ2TicpoC0YZhNVMiL7NhpOpBoMq dpWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g20si8466557edc.191.2019.09.08.12.30.14; Sun, 08 Sep 2019 12:31:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406642AbfIGM55 (ORCPT + 99 others); Sat, 7 Sep 2019 08:57:57 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34725 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406595AbfIGM55 (ORCPT ); Sat, 7 Sep 2019 08:57:57 -0400 Received: by mail-qt1-f196.google.com with SMTP id a13so10597873qtj.1; Sat, 07 Sep 2019 05:57:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LhiCADZkNTCl+mm69LYUXtAdkguFcYYbHWtAbXegPkM=; b=HWwNllgxl2B7QRXENDzO2VLH1y/AZFNTcUOM0EVmpAfco4x+wr8afvNL9z9D9eiXAR eFlmQT8m4HzH5/yENm7M6f7aKUeovbYJHLyJX26RIaLguHgNFzCIi11/UyCJz3n9sU9F MS/lFJgFx+Kmt++JtAM++Entu9ESOZD/Tq2uSXp4eAe6nugp+O6cLu9NBEk2fGAAJPKz HzLXLAckqy5aQseFo5RDmGcV5eY+xJzsu3Og997SdInztlsfLuwpH46p+ikZ16FWlpAa NqaYk3EnSmEyDNkMKAQI1ZZr4hSfdFkgm+BmN/srtErlUovBaEBr+BM4MWhoXpwYQGzj 4Cuw== X-Gm-Message-State: APjAAAUYUlPf9VtHPhP0HMGhdCm4Y8sCR1+zquGoVRkx7i8T5HOjeb+2 c2Zw3FBMGmBlssNaKc11h+wyTvMA+qyivtiuiBU= X-Received: by 2002:ac8:342a:: with SMTP id u39mr14294033qtb.7.1567861076453; Sat, 07 Sep 2019 05:57:56 -0700 (PDT) MIME-Version: 1.0 References: <20190906151028.1064531-1-arnd@arndb.de> <20190907073444.GB3873@mellanox.com> In-Reply-To: <20190907073444.GB3873@mellanox.com> From: Arnd Bergmann Date: Sat, 7 Sep 2019 14:57:40 +0200 Message-ID: Subject: Re: [PATCH] rdma/siw: fix NOMMU build To: Jason Gunthorpe Cc: Bernard Metzler , Doug Ledford , Stephen Rothwell , Andrew Morton , John Hubbard , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 7, 2019 at 9:34 AM Jason Gunthorpe wrote: > > @@ -374,7 +374,7 @@ struct siw_umem *siw_umem_get(u64 start, u64 len, bool writable) > > unsigned int foll_flags = FOLL_WRITE; > > int num_pages, num_chunks, i, rv = 0; > > > > - if (!can_do_mlock()) > > + if (!IS_ENABLED(CONFIG_MMU) || !can_do_mlock()) > > return ERR_PTR(-EPERM); > > I feel like !CONFIG_MMU should provide a dummy inline stub for can_do_mlock > instead? Fair enough. I've added that to my test tree in place of my first patch and will send it after some more build testing. Arnd