Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1216545yba; Tue, 2 Apr 2019 04:53:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdoBAVF4iEeMxnUE7IGh636VGR7d4itX++OeIAfV9/O5VN7TpGB2CQEgei3BcGz4IhpEEn X-Received: by 2002:a62:e816:: with SMTP id c22mr25770366pfi.54.1554206009513; Tue, 02 Apr 2019 04:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554206009; cv=none; d=google.com; s=arc-20160816; b=gwYx+ToBcmK/WVYUUaHnRVozkjMb1eGPsB9smSEkkKPXnd0++VV7rzJCz9ku4udy2B h+speZitkwp/cIAE6KLKNNcZjJRSbNRxB459iPtyxdxpJ79MmzDVlSYUgSwkZEsqq3/g popZhaVrQhbpBr0uI6EG1TsCU4Jb5puqVN3eTODJYwsiaUO03z9Xkf1JytEQaQ0sxzDc ULqpLXCq6yulWDvK7sWn+38csVoFW/VuXHDYw5TEI1SYtJIBkgPrd1TEPCuf0z61QjTG G/LhvqIe0y96IMTUWQ+X1ZkIb+j8a01TqVr1pqi/AYLPh3r1GKEXZaJp74SdgV2rWwDL Fh/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X2dChE4QglhwVq/xflqtnQGug6tzO5Z4dH2nW7lbNtw=; b=vBvxy4WfFd6gipzOzWO+5cXS9vzSJ4ZOCVytIX8PFeETdegaHKEwKTegYnDLibYpcK QmSYOo0xgw2ogZcxeOGh/VaFI4bFAmE1lbp0ZIsFwfk0GR/tKSIzhjIEVNFtrjT8EE0r ZNnDQZDOv6Uj1O6nk8Ncsn/8RDugo4on6DI5oSKSDYwX2nVVsBOPV9AphEV6S0nf3drs gexVMPvGui+ZO0mIHsTYY6mwBdF+6rDZyqTEsvR0CjfWZ1HujYZjpw2LHshzd8if3hFg FP4XdHmJEeXvmoJ5bcQFQoLN275x6K1MpBPcHUBYADvVMg/wf0XDa31g6wkv7mntdAk3 pyDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZMQQIWP7; 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 d11si69316pfn.171.2019.04.02.04.53.14; Tue, 02 Apr 2019 04:53:29 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZMQQIWP7; 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 S1729608AbfDBLVQ (ORCPT + 99 others); Tue, 2 Apr 2019 07:21:16 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35260 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbfDBLVQ (ORCPT ); Tue, 2 Apr 2019 07:21:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=X2dChE4QglhwVq/xflqtnQGug6tzO5Z4dH2nW7lbNtw=; b=ZMQQIWP7svG0HEiWdyZfkgNDf 3EZs4yVOQvOYKkqPfwMOky7psNcRH/pM60Tw4/TA+EcU9ct4VQUCGGS7daCB/uhCHJJLvCZvUkvDr 5gNeHhCu50Mu2ACos74BzHipXDWA/zZhGvTiPT/ckK782y8hunJItNkmgdEnzTASFFgzTQI+r9GFJ iYUr4Sxrw2J5qCoEWKp7315S1nk8Fq+PC5IJszzp3NP3qgTEfXe2jnols+C7q94ISYHj1evpujtIJ /8Gs39jZR77piQnRdSPdBa/eYTz5CEvef2w7rKPwOzPA4Wbh0P3sYplnSsIEWAh051Dhpnfjl8PCx Xzx/KaNXA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBHTd-0004a9-P2; Tue, 02 Apr 2019 11:21:13 +0000 Date: Tue, 2 Apr 2019 04:21:13 -0700 From: Matthew Wilcox To: Stephen Rothwell Cc: Daniel Vetter , Intel Graphics , DRI , Linux Next Mailing List , Linux Kernel Mailing List , Qiang Yu , Eric Anholt Subject: Re: linux-next: build failure after merge of the drm-misc tree Message-ID: <20190402112113.GD22763@bombadil.infradead.org> References: <20190402105006.48f93e53@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190402105006.48f93e53@canb.auug.org.au> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 02, 2019 at 10:50:06AM +1100, Stephen Rothwell wrote: > +++ b/drivers/gpu/drm/lima/lima_ctx.c > @@ -23,7 +23,7 @@ int lima_ctx_create(struct lima_device *dev, struct lima_ctx_mgr *mgr, u32 *id) > goto err_out0; > } > > - err = xa_alloc(&mgr->handles, id, UINT_MAX, ctx, GFP_KERNEL); > + err = xa_alloc(&mgr->handles, id, ctx, XA_LIMIT(*id, UINT_MAX), GFP_KERNEL); > if (err < 0) > goto err_out0; I agree that this is an exact translation of what the code was doing, but I don't think it's what the author intended the code to do. They almost certainly meant: err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); I'm basing this on: +struct drm_lima_ctx_create { + __u32 id; /* out, context handle */ + __u32 _pad; /* pad, must be zero */ +}; (and this confusion is exactly why I changed the API ...)