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 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.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 39717C388F9 for ; Mon, 2 Nov 2020 10:19:17 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B836D2225E for ; Mon, 2 Nov 2020 10:19:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WCXotckB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B836D2225E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A1966E48D; Mon, 2 Nov 2020 10:19:16 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 321D76E48D for ; Mon, 2 Nov 2020 10:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604312353; 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=WCXotckBgKcv8UAC6AYfCXqblMMCupxHfF7IXlgbPDzCOgc3c7B6iaTU6MCxphgHGm101p 7gFcqHusQscJkAr3QJDFx812fejc2Eu5m3l9EmLaVCRhbw17X7rixsFdbvMe398by1bTSj je67oxg0VYi3CehFaIRcJbqq0NyRx94= 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-2-17biXHeXMiqYxdgepzJ2xQ-1; Mon, 02 Nov 2020 05:19:11 -0500 X-MC-Unique: 17biXHeXMiqYxdgepzJ2xQ-1 Received: by mail-wm1-f70.google.com with SMTP id 8so343098wmg.6 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=jU+1yPg+JwnsQKKkpX53jATPDD24yonDi9+uHUfQPr11RLw0yhW4VFVJpJQCpHKnTf VpYn3grfHwYcJKmlK8jAH1l8EoUwWz7rT/ix4fZHhGQstYbXaE1iaM9DG6H1KoX9QIzT qng/mVwkXtjQUB5W8X0l5rwQvka6Laewr8RzbzvvX+w6NSIQEcaVVqB2ixDTY2ugn7wp 3SwKSNs9Ml8Whe3BBzRTsNPTFEcVg02prejORIgo54NqbJq9ftSAAHgMJ6zThAin8X/9 RN0Tu9d7K76TGW0aJ4mizfO0dsDsDoY0StObKY5tMxb+eCmfplqtlzNYb20UutLDfMnY dPwA== X-Gm-Message-State: AOAM533Po77DD7n9ZjLT5GQ2EhsoREpRn7mN6S3wADls8fXNgeaxOYv/ jB8U7wvlkrIGN/0e+xsIxLb+na1YveZHLdn1fr+5HuPRNx4zZcqL8kN4wWH0RyNXL8CKiGUScX3 4OBh/iFtCJwD9Ha5QGjU3Zz7pvH6h X-Received: by 2002:a1c:9d94:: with SMTP id g142mr17543688wme.66.1604312350463; 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 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 In-Reply-To: <20201102124327.2f82b2a7@canb.auug.org.au> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joerg Roedel , Daniel Vetter , Intel Graphics , Linux Kernel Mailing List , DRI , Linux Next Mailing List , Christian =?iso-8859-1?Q?K=F6nig?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel 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.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 6EC95C388F9 for ; Mon, 2 Nov 2020 10:19:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0A052222B9 for ; Mon, 2 Nov 2020 10:19:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ho8W0B8g" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0A052222B9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 40E2F6E48C; Mon, 2 Nov 2020 10:19:18 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0077D6E48E for ; Mon, 2 Nov 2020 10:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604312356; 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=ho8W0B8gmsEWCnZn3vSujahxTFNB8KkEqgmgl0QTwZ+B5rsUD54R/J3c0RDecxGffW8nv3 51zGLEimoF1RIUUJzCDNMGkZP7n58nmYp2SFxzBmQBkxk4CCdd/cKcuYf1oOvSKteBe0db aGa/7Q+2OnV+AM3I0xNE45cQrzFlLHo= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-36-mxCP-8dMNUiUlpHOQiIBkQ-1; Mon, 02 Nov 2020 05:19:14 -0500 X-MC-Unique: mxCP-8dMNUiUlpHOQiIBkQ-1 Received: by mail-wr1-f71.google.com with SMTP id v5so6291449wrr.0 for ; Mon, 02 Nov 2020 02:19:14 -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=TXFEckHIBXBZDbCJJPd1GvyapZsGXUTT/L5Js7W8708HhjXl7Eu8SsZpLJ3VaHcZqw IW5qQSN/6rqQue4wV/wuMP0Nh06AzxykghyptXx9UFKR2xGYp7MRH/uHz9VszMrkij5Q e1huuqbR1A7Dc5vOBOmqNH72F0G4pcmtQR8tbd/DtDC/Yf7jREkUsqN6Kwo+lIBdDZqQ TZA82pUT5qnd+jTQrSQivLxLetBFwOhp5sPhdnUFa7zV3cvOURVx7aCCKfNIVMNl0XQV MFCAxyG/04a/wF9wcaIMRJarS/XWC8j0RSvvNSLyKnV4jvwOTcJM/txVFZRtgZd0stUw ZCAw== X-Gm-Message-State: AOAM533dRKN+OKqxgm9E6rxkKzX+3RJV7IYZpzWBz19idt4PBo7RWlg1 yN3XfCDKANWfg6D/BWMl2UCpBrmFKFjg23UU6JMh7d1DE3hjDupicwu7G7AzgEk6uL1Au5QzgaI eIoSdV3fhuSYFyYeqAz0So2/EyziX X-Received: by 2002:a1c:9d94:: with SMTP id g142mr17543681wme.66.1604312350425; 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 Message-ID: <20201102051822-mutt-send-email-mst@kernel.org> References: <20201102124327.2f82b2a7@canb.auug.org.au> MIME-Version: 1.0 In-Reply-To: <20201102124327.2f82b2a7@canb.auug.org.au> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Subject: Re: [Intel-gfx] linux-next: build failure after merge of the drm-misc tree X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joerg Roedel , Daniel Vetter , Intel Graphics , Linux Kernel Mailing List , DRI , Linux Next Mailing List , Christian =?iso-8859-1?Q?K=F6nig?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx