From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7215AC388F2 for ; Mon, 2 Nov 2020 10:19:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 174BA223B0 for ; Mon, 2 Nov 2020 10:19:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Xu0Xh/PR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728362AbgKBKTR (ORCPT ); Mon, 2 Nov 2020 05:19:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:22742 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbgKBKTQ (ORCPT ); Mon, 2 Nov 2020 05:19:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604312355; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ai/gGgjTQcmU+eCPscVzw0UhOXfAfCGYsrcIbvjwE7U=; b=Xu0Xh/PR8sd8oJu7+YWdkROjSvS90Bz/XNKQQ1ddBxDcMjc/SVYPOQl5CBNfm72H9pHvGk v5ZEKYN7PdGmTil0D09CdKEaU71qksvZheQ16A2OBdMwIQO0KVbEr65RjFb6CJn4Fh/YsY 17Qv2ERb9f/iWLjr3dB7hzVHXtClL4s= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-160-MsJw-CLDOZePfyvfm1s9Bg-1; Mon, 02 Nov 2020 05:19:11 -0500 X-MC-Unique: MsJw-CLDOZePfyvfm1s9Bg-1 Received: by mail-wm1-f70.google.com with SMTP id y21so1445061wmi.7 for ; Mon, 02 Nov 2020 02:19:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ai/gGgjTQcmU+eCPscVzw0UhOXfAfCGYsrcIbvjwE7U=; b=XZq0qop84VBUVpsUfqq/zN68yzYWaeXxGaKbkp4gVTo04Ah3XGyRXnHdDY1TZoLgJe 62JbSj7Q7+rMAuLfwezDsZbUEv5FtknExr7n1m6kFx6pEJVZowW5QrLePxlt/n7cImfi 7cRDjLzNwGKgIGZbiVwZ9XDzo412XoAkNn6/55pxWSN2tPREq5sCLN4UDUdYVWc/jfsx pmlpPdVnYJqDkiIY2JtsJ8jB+2eqHYHOg5z07Jeo++1UFmG0Zz0zOOI+IXZkAf6kXzZX NUkxgTP1IEPr22Gbthufg51Nse2QTkgkl8javjRFoTUz2XtC9UzRPa7kB848w1OgnfUk y4IQ== X-Gm-Message-State: AOAM530I2Az5gWE4XUvKiUu2hxUBtLGxVumY1m0hUCY7f+Vqo+/opohT 6pZaVKBsGyCAbo2JsmU0Jr8Ph+yXE50t5F2QkwVpR9kDiivTJZj29NfxW8q1C+IIaSJZv7yk+hm ynCWFj2jf+bZUPwAIYwOU7Oxd X-Received: by 2002:a1c:9d94:: with SMTP id g142mr17543680wme.66.1604312350424; Mon, 02 Nov 2020 02:19:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMZrcZUQ6qnAtGtdhm7af/rwNXetvdJKh2zEGv4XNpm4y+mMw4DGIIvdD/ljXcKDwgaNDKtw== X-Received: by 2002:a1c:9d94:: with SMTP id g142mr17543670wme.66.1604312350279; Mon, 02 Nov 2020 02:19:10 -0800 (PST) Received: from redhat.com (bzq-79-181-134-187.red.bezeqint.net. [79.181.134.187]) by smtp.gmail.com with ESMTPSA id z5sm21822717wrw.87.2020.11.02.02.19.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 02:19:09 -0800 (PST) Date: Mon, 2 Nov 2020 05:19:06 -0500 From: "Michael S. Tsirkin" To: Stephen Rothwell Cc: Daniel Vetter , Intel Graphics , DRI , Christian =?iso-8859-1?Q?K=F6nig?= , Joerg Roedel , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the drm-misc tree Message-ID: <20201102051822-mutt-send-email-mst@kernel.org> References: <20201102124327.2f82b2a7@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201102124327.2f82b2a7@canb.auug.org.au> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02, 2020 at 12:43:27PM +1100, 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 Acked-by: Michael S. Tsirkin I guess it makes sense to pick this up for this release directly. I'll merge this unless there are any objections. > --- > 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