Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp264924rdh; Mon, 18 Dec 2023 19:57:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJI4sPXRQAsW42L23gwXBNz1nYH+HxVQ0Ag7h7xKGqUHUIuU5oe03yMKwDkLt9NfsA7d4c X-Received: by 2002:a05:620a:1710:b0:77f:55b6:7ce7 with SMTP id az16-20020a05620a171000b0077f55b67ce7mr22495108qkb.7.1702958272834; Mon, 18 Dec 2023 19:57:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702958272; cv=none; d=google.com; s=arc-20160816; b=HJo0H34V0ZTJprMCQrMlhjkEB15ka7fXatT2l5kulfFGFjZliMu6FUZ9EcMxBtw3GL EYCEpgTSfyYrI4LZw32vmNDCoA2Q3t5ynbosEdtY9xvEsJKmt1Y7WBFPrpRrRtv6/EOM ygK/t8lgbHL6VI8Hf3Cf6uXU4P89zhb0/s/Eq/2MIwM6ASjXCMWv5iOscYeRHYfEo07X AZubJSZB9zjn2JyIiFzBJUo0XjBoMd25QYGjerRevRfL7UnNj+3dAAgD/H6epLw3XBnx LsD5vu1yEkZRyJRdqKIEBUi+LyZv5OewgkzkjlC2hghpspDrdJ0wI8q55DYM/XNzRj+r u+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1wUCeG4DTjZol+zbKVzUI7RIWsRC0afzTNkzQR3IfSA=; fh=bCjpKDPNgTkxjBqFffhspH8lvCY8IDngNeTG/LRuX/w=; b=tHMGPhWMRqki0cANpNpLq1bF8c+DZRtJznFwGfcL7hoXCwcVySnpmNR30dRPiX1S51 kSeI6O0MUfjZe5yBr+x5cI7kKosebH2WUhE8lEl8l4uyUi+0VeX8fD+duUbAojuEjEGE T0oSConsMKWZ59xO4EwWojZKn/lNm6BjLOA+bZrMArk6WL0Xip/EJ+h0+JyMAis6935X KSX13ElOXTeViwdbemNXZC8qQbigab2ZbuxBlvuo8dy96KiqDiva15cJPqyXzJhVOKFu JQGk8cehG1fILy0f1KJ72iNiJKOFA9irb7uaP6vynPIpG171yDAtMOH0zTOf0VCBNGMu Rw6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=E0gaK5zu; spf=pass (google.com: domain of linux-kernel+bounces-4654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u24-20020a05620a085800b0078100959902si381516qku.782.2023.12.18.19.57.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 19:57:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=E0gaK5zu; spf=pass (google.com: domain of linux-kernel+bounces-4654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 877F11C22AC9 for ; Tue, 19 Dec 2023 03:57:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9645A8493; Tue, 19 Dec 2023 03:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="E0gaK5zu" X-Original-To: linux-kernel@vger.kernel.org Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC2D18474; Tue, 19 Dec 2023 03:57:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1702958258; bh=1wUCeG4DTjZol+zbKVzUI7RIWsRC0afzTNkzQR3IfSA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E0gaK5zuCeDJHqWX2XHEMt8o7/ks3Nuj3rQrewfm6t5WvS+XMI+FxM3vNkibBV2/7 b0wgPj7i11trP0FMGtmDgF1xEHrZ4EQmKnd3FwgQWnAcsou8dtxh4yw7JSzch/TihP UWU38ffZgqtID0Fpym+CIxknLYqUlkON3T/6+sf47Lr3j/lB17aDqvCSyxKsr859J6 /cP8pxs/7TfzTBGNdZg72bjmn73cNmF8LsKIHBcZuN1db+B6mD+VutqsSuEOv5CQLK kWAIjqmXF8eYmQrdvdOGSR1ujMfKTtKay7DMaxA2IYlDTWOuSW0EXbbqPlvMwTgilT ED6RmnMnS83BQ== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SvNFF18zBz4x2V; Tue, 19 Dec 2023 14:57:36 +1100 (AEDT) Date: Tue, 19 Dec 2023 14:57:34 +1100 From: Stephen Rothwell To: Kent Overstreet , Dave Airlie Cc: Linux Kernel Mailing List , Linux Next Mailing List , Ville =?UTF-8?B?U3lyasOkbMOk?= , DRI Subject: Re: linux-next: build failure after merge of the header_cleanup tree Message-ID: <20231219145734.13e40e1e@canb.auug.org.au> In-Reply-To: <20231218174030.3ed72f54@canb.auug.org.au> References: <20231218174030.3ed72f54@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/kbDiBDX1yGNRcZQ/EkQuPt9"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/kbDiBDX1yGNRcZQ/EkQuPt9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Mon, 18 Dec 2023 17:40:30 +1100 Stephen Rothwell = wrote: > > After merging the header_cleanup tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: >=20 > In file included from include/linux/kernel.h:27, > from drivers/gpu/ipu-v3/ipu-dp.c:7: > include/drm/drm_color_mgmt.h: In function 'drm_color_lut_extract': > include/drm/drm_color_mgmt.h:45:46: error: implicit declaration of functi= on 'mul_u32_u32' [-Werror=3Dimplicit-function-declaration] > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_inp= ut, (1 << bit_precision) - 1), > | ^~~~~~~~~~~ > include/linux/math.h:104:36: note: in definition of macro 'DIV_ROUND_CLOS= EST_ULL' > 104 | unsigned long long _tmp =3D (x) + (__d) / 2; \ > | ^ > In file included from include/linux/time.h:6, > from include/linux/videodev2.h:59, > from include/video/imx-ipu-v3.h:16, > from drivers/gpu/ipu-v3/ipu-dp.c:14: > include/linux/math64.h: At top level: > include/linux/math64.h:155:19: error: conflicting types for 'mul_u32_u32'= ; have 'u64(u32, u32)' {aka 'long long unsigned int(unsigned int, unsigne= d int)'} > 155 | static inline u64 mul_u32_u32(u32 a, u32 b) > | ^~~~~~~~~~~ > include/drm/drm_color_mgmt.h:45:46: note: previous implicit declaration o= f 'mul_u32_u32' with type 'int()' > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_inp= ut, (1 << bit_precision) - 1), > | ^~~~~~~~~~~ > include/linux/math.h:104:36: note: in definition of macro 'DIV_ROUND_CLOS= EST_ULL' > 104 | unsigned long long _tmp =3D (x) + (__d) / 2; \ > | ^ > cc1: some warnings being treated as errors > In file included from include/linux/kernel.h:27, > from drivers/gpu/drm/omapdrm/dss/dispc_coefs.c:7: > include/drm/drm_color_mgmt.h: In function 'drm_color_lut_extract': > include/drm/drm_color_mgmt.h:45:46: error: implicit declaration of functi= on 'mul_u32_u32' [-Werror=3Dimplicit-function-declaration] > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_inp= ut, (1 << bit_precision) - 1), > | ^~~~~~~~~~~ > include/linux/math.h:104:36: note: in definition of macro 'DIV_ROUND_CLOS= EST_ULL' > 104 | unsigned long long _tmp =3D (x) + (__d) / 2; \ > | ^ > In file included from include/linux/jiffies.h:7, > from include/linux/ktime.h:25, > from include/linux/timer.h:6, > from include/linux/workqueue.h:9, > from include/linux/mm_types.h:19, > from include/linux/mmzone.h:22, > from include/linux/gfp.h:7, > from include/linux/stackdepot.h:25, > from include/drm/drm_modeset_lock.h:28, > from include/drm/drm_crtc.h:30, > from drivers/gpu/drm/omapdrm/dss/omapdss.h:11, > from drivers/gpu/drm/omapdrm/dss/dispc_coefs.c:9: > include/linux/math64.h: At top level: > include/linux/math64.h:155:19: error: conflicting types for 'mul_u32_u32'= ; have 'u64(u32, u32)' {aka 'long long unsigned int(unsigned int, unsigne= d int)'} > 155 | static inline u64 mul_u32_u32(u32 a, u32 b) > | ^~~~~~~~~~~ > include/drm/drm_color_mgmt.h:45:46: note: previous implicit declaration o= f 'mul_u32_u32' with type 'int()' > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_inp= ut, (1 << bit_precision) - 1), > | ^~~~~~~~~~~ > include/linux/math.h:104:36: note: in definition of macro 'DIV_ROUND_CLOS= EST_ULL' > 104 | unsigned long long _tmp =3D (x) + (__d) / 2; \ > | ^ > cc1: some warnings being treated as errors This turns out to be a semantic conflict (or exposing a bug in commit c6fbb6bca108 ("drm: Fix color LUT rounding") from the drm tree. I have applied the following merge fix up patch (which should probably be applied to the drm tree, if possible). From: Stephen Rothwell Date: Tue, 19 Dec 2023 14:43:41 +1100 Subject: [PATCH] drm: using mul_u32_u32() requires linux/math64.h Some pending include file cleanups produced this error: In file included from include/linux/kernel.h:27, from drivers/gpu/ipu-v3/ipu-dp.c:7: include/drm/drm_color_mgmt.h: In function 'drm_color_lut_extract': include/drm/drm_color_mgmt.h:45:46: error: implicit declaration of function= 'mul_u32_u32' [-Werror=3Dimplicit-function-declaration] 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_input= , (1 << bit_precision) - 1), | ^~~~~~~~~~~ Signed-off-by: Stephen Rothwell --- include/drm/drm_color_mgmt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_color_mgmt.h b/include/drm/drm_color_mgmt.h index 54b2b2467bfd..ed81741036d7 100644 --- a/include/drm/drm_color_mgmt.h +++ b/include/drm/drm_color_mgmt.h @@ -24,6 +24,7 @@ #define __DRM_COLOR_MGMT_H__ =20 #include +#include #include =20 struct drm_crtc; --=20 2.40.1 --=20 Cheers, Stephen Rothwell --Sig_/kbDiBDX1yGNRcZQ/EkQuPt9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmWBFK4ACgkQAVBC80lX 0Gx95ggAjzxLekfkqt/d/rGtV4AWZfTveEEEXDDbbOyiopjNDr8fRuXc+M7hcjtY F6+etu13w5f+g6hbcEumWMEq5978ZysjO2Ue/5E+hfRj9ajzG9JJv7/GwKKdqLSE QSXLSHRpU6TyUvcGsq6vwDTl0bXGwB1YUyYwfV/pQgCHjENzTVtMHZZc5ilsqnxZ 3np39vt/u1lXPKb3rIOgrURKgsvCYlZPFb7UXhcBnt+3KIuQJ/rbXoAr7ricZ5fq 2hXspPTeryVpPL33Fm7FO/2Tj9jE/Ow4r9yizU15i5aGUfIFVbNZVF0SjGyouJgE VzbabnsFU/jxwAZXF+0ycn+Vq9j8jQ== =nZec -----END PGP SIGNATURE----- --Sig_/kbDiBDX1yGNRcZQ/EkQuPt9--