Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp992903yba; Mon, 1 Apr 2019 23:23:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKDq9yzczAAR0ZA7m/iNLFHFa98mgEEkmwtylnWUKIeFIM5jdcLRnfcXHSMxpXgO/JTT6j X-Received: by 2002:a17:902:a506:: with SMTP id s6mr44061571plq.164.1554186194233; Mon, 01 Apr 2019 23:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554186194; cv=none; d=google.com; s=arc-20160816; b=OrlcsZTCu4/U40JEadfvDlBOMM9HkMOVg7Z3+HXuUTI6SsL36JRhtG6u+ScA7KMg09 K3sqnTfw07sVJ2hTr1tL70xNZS1iepoFxkNMQ+x4HDsNn5TqdVovopZPmoIbAG8MZtlf +CaM9y/2zn7PCFTL9j49LIjeJzOgPy5tZYJMNL1WTFrVSigxhU3/7gH0Mw113TsATR1f SyJkDjKhq2qZYw9gulImC0SEjLJVayrI/Eon/CY7l7uxE8w9hZx/J1ZtrjuztPhl6Wb4 1VZYQDWm93F+aYkK0csVHwsP1tsuV3dk8h8TRBtt+x4jF97c/t/lEEAfAkhhtgsU921C AUkA== 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:dkim-signature; bh=qt5uJUmPgzt/XTJh2RvvZTMxGpN9TNTsByW9OIky07U=; b=TB4WaiEuT1NKbaYS/QFij1G/N8pF+Af1asd/G+v0iahJZrOkMqNayPkEY68x8LmLTB 8l01mA/hrPh03YSdPcCqPq0hetMARf8TQB5q+m2InlyQS8ELHorapUUlFjWPYTKE2DWk oJNGtknRdcxA3eromyj86oZFRVWCKwUccIi5nCFNydJRqKJ+6fxdIHBPvct4mBpd33g7 Eto/JUfQQ8Mj8Cs5nqyvOJ+ty0DryRXcfghexb9bQrufIT/Sx1aS0nV/NF097bnyl9Zm vscu/0RokrkpIy7hUT/JAo6R4P6UNU+sCq2tBayb6uc8Gvamfsm+/1ILclNRzOFo30ny nnrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I1lLmnT6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70si10862101pla.128.2019.04.01.23.22.58; Mon, 01 Apr 2019 23:23:14 -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=pass header.i=@gmail.com header.s=20161025 header.b=I1lLmnT6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727015AbfDBFzQ (ORCPT + 99 others); Tue, 2 Apr 2019 01:55:16 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:37154 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfDBFzP (ORCPT ); Tue, 2 Apr 2019 01:55:15 -0400 Received: by mail-it1-f193.google.com with SMTP id u65so3218252itc.2; Mon, 01 Apr 2019 22:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qt5uJUmPgzt/XTJh2RvvZTMxGpN9TNTsByW9OIky07U=; b=I1lLmnT6bLTnCmS9YEjLzDYyQiacCz1msXB52kTui7vEHg8Zc3Q4PVyM0Np3SN7vRP oKaJe7en6JD/GjZCW8B00zYF4I51i6mR6YFBYGzhgUG+K+hLLZncaR94fey2phG2D12J 0tWaXB3500LUp4ExNXIRtICH9dL3aX/MHwEXNTXVpQeMuP5I6xHzwoJOwP1iCIvZAj2k HIjquSvUX8wwGqqZTlooeuBeP0um/v8T8rZO6OtaOaOvpYcuxmL/641ljku9hd3i88W0 uq1hWkQS16468A2CawsTjI+IWUcc2H0qtDHmuL1/MCXF7k89Rug/iFCpqP1AaKBM4xeE Isgg== 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=qt5uJUmPgzt/XTJh2RvvZTMxGpN9TNTsByW9OIky07U=; b=pcRiFjOVEReLQBmCiq8MQgKO5Z9+A0L5hLyAi308ag3GT6XY8GL9Jb6iPN9A+cx4U0 rVP47VBwVnhmmrXA2NVAEs2LuK6YeMK5x0w2GZMduILUy+yyelTSNHkmLyTqQNq25zgw 7e8WOZEdd8sov3Erev9Q/z+pN35wYIHvqaeLtkxosQp4ifaDX1lMIjvdmX7wYRjgd2Z1 A7i5P3U8onPzJZrg9ZV8+5eIewpGTKH0UyBZdhGnJFYJt6WRQxcXWakwja136IiDTb9p TyqRCUWSmMqiuOh1AJ1XzOcTUU8GMTvIrD3fPWuDM6lfN1jGC1ZmEKa+F6jDez2CAw3y 9cRg== X-Gm-Message-State: APjAAAWEJLgMjX1Bq5Jcr4pIZnIp2cHnl/PU5xFiRdGaDcdBcX9l2EJc TrlkK3ggD7I2LXynEWXcrQjBAHf2DySwx/iMPbA= X-Received: by 2002:a02:c496:: with SMTP id t22mr1975022jam.53.1554184514999; Mon, 01 Apr 2019 22:55:14 -0700 (PDT) MIME-Version: 1.0 References: <20190402105006.48f93e53@canb.auug.org.au> In-Reply-To: <20190402105006.48f93e53@canb.auug.org.au> From: Qiang Yu Date: Tue, 2 Apr 2019 13:55:03 +0800 Message-ID: Subject: Re: linux-next: build failure after merge of the drm-misc tree To: Stephen Rothwell Cc: Daniel Vetter , Intel Graphics , DRI , Linux Next Mailing List , Linux Kernel Mailing List , Eric Anholt , Matthew Wilcox 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 Thanks, patch is: Reviewed-by: Qiang Yu Regards, Qiang On Tue, Apr 2, 2019 at 7:50 AM Stephen Rothwell wrote: > > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from include/linux/kernel.h:7, > from include/asm-generic/bug.h:18, > from arch/x86/include/asm/bug.h:83, > from include/linux/bug.h:5, > from include/linux/mmdebug.h:5, > from include/linux/gfp.h:5, > from include/linux/slab.h:15, > from drivers/gpu/drm/lima/lima_ctx.c:4: > drivers/gpu/drm/lima/lima_ctx.c: In function 'lima_ctx_create': > include/linux/limits.h:13:18: warning: passing argument 3 of 'xa_alloc' makes pointer from integer without a cast [-Wint-conversion] > #define UINT_MAX (~0U) > ^~~~~ > drivers/gpu/drm/lima/lima_ctx.c:26:36: note: in expansion of macro 'UINT_MAX' > err = xa_alloc(&mgr->handles, id, UINT_MAX, ctx, GFP_KERNEL); > ^~~~~~~~ > In file included from include/linux/radix-tree.h:31, > from include/linux/idr.h:15, > from include/drm/drm_device.h:7, > from drivers/gpu/drm/lima/lima_device.h:7, > from drivers/gpu/drm/lima/lima_ctx.c:6: > include/linux/xarray.h:817:9: note: expected 'void *' but argument is of type 'unsigned int' > void *entry, struct xa_limit limit, gfp_t gfp) > ~~~~~~^~~~~ > drivers/gpu/drm/lima/lima_ctx.c:26:46: error: incompatible type for argument 4 of 'xa_alloc' > err = xa_alloc(&mgr->handles, id, UINT_MAX, ctx, GFP_KERNEL); > ^~~ > In file included from include/linux/radix-tree.h:31, > from include/linux/idr.h:15, > from include/drm/drm_device.h:7, > from drivers/gpu/drm/lima/lima_device.h:7, > from drivers/gpu/drm/lima/lima_ctx.c:6: > include/linux/xarray.h:817:32: note: expected 'struct xa_limit' but argument is of type 'struct lima_ctx *' > void *entry, struct xa_limit limit, gfp_t gfp) > ~~~~~~~~~~~~~~~~^~~~~ > > Caused by commit > > a1d2a6339961 ("drm/lima: driver for ARM Mali4xx GPUs") > > interacting with commit > > a3e4d3f97ec8 ("XArray: Redesign xa_alloc API") > > from Linus' tree (v5.1-rc1). > > I have applied the following patch for today. It could be applied as > part of a merge of v5.1-rc1 into drm-misc. > > From: Stephen Rothwell > Date: Tue, 2 Apr 2019 10:45:32 +1100 > Subject: [PATCH] drm/lima: update for xa_alloc API change > > Signed-off-by: Stephen Rothwell > --- > drivers/gpu/drm/lima/lima_ctx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/lima/lima_ctx.c b/drivers/gpu/drm/lima/lima_ctx.c > index c8d12f7c6894..bafa00d74cc5 100644 > --- a/drivers/gpu/drm/lima/lima_ctx.c > +++ 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; > > -- > 2.20.1 > > -- > Cheers, > Stephen Rothwell