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.8 required=3.0 tests=BAYES_00,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 8BE8AC4741F for ; Mon, 2 Nov 2020 01:43:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 433D32225E for ; Mon, 2 Nov 2020 01:43:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="qJJ77BWK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727555AbgKBBnd (ORCPT ); Sun, 1 Nov 2020 20:43:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725918AbgKBBnd (ORCPT ); Sun, 1 Nov 2020 20:43:33 -0500 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF196C0617A6; Sun, 1 Nov 2020 17:43:32 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4CPbKX75Bbz9sVM; Mon, 2 Nov 2020 12:43:28 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1604281410; bh=UZJnKassjurkUYFn1LtRDB9BZRJJwQe2Tnjaoo+5sn4=; h=Date:From:To:Cc:Subject:From; b=qJJ77BWKgBSEYT1T0APFfbFUmxFDp1zG+Xl0da8byynuYDWHynqj2B3frfb6OIj1I BZkDmLDZACg3kYkE6Bnl+1CVlTbGKvii/aJT4rrz3oxQUbXrQgoabudv0QqA3e9/85 cP8KSzulqTqbVH6a/4/U5NHS2H+V1S6mNizZJ8N6l2AONn6AlG4mzBiiRRyDWGJdCx udpa7J9FmDXxP/yDS+Q13Uo1ubpKKCPNEu737132g75XlevRlrySViqUEYa7ADM/L7 LbkM8OQffJmpFnWLc7Ljtpva2YOkbQC67ONYcC5MHfKWOmbgF0oRusuDuicdWZuaN/ 5KKSxL0Np484A== Date: Mon, 2 Nov 2020 12:43:27 +1100 From: Stephen Rothwell To: Daniel Vetter , Intel Graphics , DRI Cc: Christian =?UTF-8?B?S8O2bmln?= , Joerg Roedel , "Michael S. Tsirkin" , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the drm-misc tree Message-ID: <20201102124327.2f82b2a7@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/+6=teLWTuoxG+moGZWw9H_h"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/+6=teLWTuoxG+moGZWw9H_h Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 th= is 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 --- 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 =20 struct device; struct page; --=20 2.28.0 --=20 Cheers, Stephen Rothwell --Sig_/+6=teLWTuoxG+moGZWw9H_h Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl+fZD8ACgkQAVBC80lX 0Gy4Ewf/Xax561099MjSc01Qu4bldqQsUT2wm0XpotqdqEpG3jwA8Ixs1ZaKsvtL nh2037AUrfl1VhjwWYw9kKulwOjN4aCRF+Ek7FblCuCH4yJryxMfyxSwFmHLr1p1 Y95gO09HP/mFLPVt1BHIcUU/0BY98vd0I1D2EaZB1GpniqwX4tg79Mad1C4293ub vhWq2Ql+4HMHYoXdy7MZQ6+Q0Vr4Dn09HLLZGCyLFguHlVmUkdQmXjXjuqU/eIDy l3SEfaxSxJNDfGDwPLaKUUUVZCKroxGArj8pHTW8VWByPxnYu+W12seT13eFu7e7 oVruhcMLwfxJG/jqHqd6kdhZ4YSvrQ== =h4wL -----END PGP SIGNATURE----- --Sig_/+6=teLWTuoxG+moGZWw9H_h--