Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3193964pxx; Mon, 2 Nov 2020 02:32:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEsmJvvPcb0t2bbM/KFh2o1CSUsq/0NYkCWGVPBdjdOeqwiSy1wR5JwbczpDO4nZmWZ2BR X-Received: by 2002:a05:6402:1a56:: with SMTP id bf22mr15886343edb.216.1604313142666; Mon, 02 Nov 2020 02:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604313142; cv=none; d=google.com; s=arc-20160816; b=FVC9TeZ8oBV/zZKuDYils0TjbKtDe//qqVkby5S1BRdhND4UrrJ2+N4Z4cLGw6YOKm u3P4a671JCBqKT2C+oARwQRCtkK7f0qsq117N0jeHkhRU/Hjui9YrmYu6p8TnZBKCJP8 NV6NOSV86oSGTL4yQdB157RM2QabyLBH+7liFJjGg3S3L2rMX2Gktz0x163R5//uHdzG HeDcpAdH3GfiBbCkd8TnLvQGIqgDHp2kcRCT+Iypx7STyjja5z8CNtc1wjC8ozG/rlNn jiZUo8E6tE0x5efYXS+JvWpVMXSnWCsnzalOnWY2JchhXbXgI/oHlZTWNlWu+/8uD8SB 7x7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2Z8GQ3+dlPgWj8N6iGHuphE6RpytAvFZo39Sbtwdhws=; b=cSnd2Vmxlklc5QiW7U9zLjZb8343nfNIL8ONPB1oQPrpp2JnvjcEqQ9UPJAKTN4lPb bFO3VAjUnKQLqSdt8TRgXU1f2ZTUJ2YUwg12dyBnaxHUUgd/BGO2vJjZfDW7gqE3eS5k yMjclS8OK/HC4+kPcR3Juz8aj+Pgno4KtTFlEMqkUSL0Xz+4uZWQDYfTzcrmtP11+mo/ eFoVzj/3FMt7tXidWcBaw9qT168Fsu7kFpFQBy/W8HbKFhBHJYQtYmkwZCcI3VTOAvpr 3SeU4VC/iAQGSLRtbTq9SKnmfy8NW12keoWhrdqzWssBikshlYicNJ7u7sMUWiVGb2DP jvHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=EzwfEuuE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si12323096ejq.475.2020.11.02.02.31.59; Mon, 02 Nov 2020 02:32:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=EzwfEuuE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728320AbgKBK22 (ORCPT + 99 others); Mon, 2 Nov 2020 05:28:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbgKBK21 (ORCPT ); Mon, 2 Nov 2020 05:28:27 -0500 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7D47C0617A6 for ; Mon, 2 Nov 2020 02:28:26 -0800 (PST) Received: by mail-oi1-x243.google.com with SMTP id 6so5025988oiy.4 for ; Mon, 02 Nov 2020 02:28:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2Z8GQ3+dlPgWj8N6iGHuphE6RpytAvFZo39Sbtwdhws=; b=EzwfEuuEwGYTUTjIasAnUKUIVmBIxn7qJYQhUc2GVEKajha3SO3J3d/VjzMgnwV94F V1xFvThPUl79p5+V+oEa5uZ2gpuitZ5MzSvlI5wHu8TwB48Z8uCSz1bX+J83hOAQl2Mc ybmPexJOB3IDKeTvAmmWQSMGJBSZzm4EiWwGE= 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=2Z8GQ3+dlPgWj8N6iGHuphE6RpytAvFZo39Sbtwdhws=; b=TKsGDCI4l9zCRkysmkjKV02pknocWnxeU9aOmLQoswo+vZqdjqozKCA8f5YvUrxQTZ O9XnkdUo/ueBsXEdtpakTwnoWEwmLTGVWvroWcnRPIt+Q0eRxFz1J0r30a7yhImiACZV lWoyLeczAXlf/1huZEUoiF3mmaQeYMiRrKfidAsm7Z8SfCKtkJJjQOk9qaqXydRCtebG fPetpuQK21JQJEQjEmccOGZXM0jRbpNlPTUTUazyi5uC+w4GAv8l1PWIvDYN3sW7kOF/ vsqw+j/3f3zWPyj+IkcQhh4leHVQrPRunVSen4edZlq1Oc8Cq9s5/f++feat7YzwN+HG jqcQ== X-Gm-Message-State: AOAM532zd1pSvEtJob68cH59zbDTijLDr1BHR0aAzzfqVBvzbco9TFsG hi6DdEz0fu6ajdK8qHd94CeSNkPIzo2D8lrooqcIeA== X-Received: by 2002:aca:b141:: with SMTP id a62mr8909832oif.101.1604312906398; Mon, 02 Nov 2020 02:28:26 -0800 (PST) MIME-Version: 1.0 References: <20201102124327.2f82b2a7@canb.auug.org.au> <20201102052254-mutt-send-email-mst@kernel.org> In-Reply-To: <20201102052254-mutt-send-email-mst@kernel.org> From: Daniel Vetter Date: Mon, 2 Nov 2020 11:28:15 +0100 Message-ID: Subject: Re: linux-next: build failure after merge of the drm-misc tree To: "Michael S. Tsirkin" Cc: Stephen Rothwell , Christoph Hellwig , Intel Graphics , DRI , =?UTF-8?Q?Christian_K=C3=B6nig?= , Joerg Roedel , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 2, 2020 at 11:23 AM Michael S. Tsirkin wrote: > > On Mon, Nov 02, 2020 at 10:28:34AM +0100, Daniel Vetter wrote: > > On Mon, Nov 2, 2020 at 2:43 AM Stephen Rothwell wrote: > > > > > > Hi all, > > > > > > After merging the drm-misc tree, today's linux-next build (arm > > > multi_v7_defconfig) failed like this: > > > > > > In file included from drivers/gpu/drm/nouveau/nouveau_ttm.c:26: > > > include/linux/swiotlb.h: In function 'swiotlb_max_mapping_size': > > > include/linux/swiotlb.h:99:9: error: 'SIZE_MAX' undeclared (first use in this function) > > > 99 | return SIZE_MAX; > > > | ^~~~~~~~ > > > include/linux/swiotlb.h:7:1: note: 'SIZE_MAX' is defined in header ''; did you forget to '#include '? > > > 6 | #include > > > +++ |+#include > > > 7 | #include > > > include/linux/swiotlb.h:99:9: note: each undeclared identifier is reported only once for each function it appears in > > > 99 | return SIZE_MAX; > > > | ^~~~~~~~ > > > > > > Caused by commit > > > > > > abe420bfae52 ("swiotlb: Introduce swiotlb_max_mapping_size()") > > > > > > but only exposed by commit > > > > > > 4dbafbd30aef ("drm/nouveu: fix swiotlb include") > > > > > > I applied the following fix for today: > > > > > > From: Stephen Rothwell > > > Date: Mon, 2 Nov 2020 12:34:57 +1100 > > > Subject: [PATCH] swiotlb: using SIZE_MAX needs limits.h included > > > > > > Fixes: abe420bfae52 ("swiotlb: Introduce swiotlb_max_mapping_size()") > > > Signed-off-by: Stephen Rothwell > > > > I think simplest if this lands through dma-api tree into current -rc > > kernels. Or should we just put this into drm-misc-next since that's > > where the problem shows up? Christoph, any preference from dma-api > > side? > > -Daniel > > > Or I can merge it since I merged the original patch causing the > issue ... Works for me too. -Daniel > > > > --- > > > include/linux/swiotlb.h | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h > > > index 513913ff7486..ed9de7855d3b 100644 > > > --- a/include/linux/swiotlb.h > > > +++ b/include/linux/swiotlb.h > > > @@ -5,6 +5,9 @@ > > > #include > > > #include > > > #include > > > +#ifndef CONFIG_SWIOTLB > > > +#include > > > +#endif > > > > > > struct device; > > > struct page; > > > -- > > > 2.28.0 > > > > > > -- > > > Cheers, > > > Stephen Rothwell > > > > > > > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > http://blog.ffwll.ch > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch