Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp509852rdh; Tue, 19 Dec 2023 05:53:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVQ8iE9lljKU9Xnrpk8/Fa573i/Awi3jmCvS5xZwLAfaIz0S+P0uy2J51UbjohfAakHJDc X-Received: by 2002:a05:620a:178e:b0:77f:1154:669a with SMTP id ay14-20020a05620a178e00b0077f1154669amr24276509qkb.41.1702994033731; Tue, 19 Dec 2023 05:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702994033; cv=none; d=google.com; s=arc-20160816; b=FX6uIWkMArj+pREzlahw77v0H6KRN3rSx7MNVQ+ny6rOT70y6xW2H6Zl7NMdUxWgNs NOBlFq8grYo0toGdPeArMI2J3+gIZGkeR/y9gAHB4GYqV1rkYpsV4ke7t3mrKuQRdTiW cBWq3QOkrSBKgp8PTY+Rstduc6856Ks2FeZfTHLAhmnUePqWFb51Haz7YLrNhmS/Y5aL wemvGXCLe5uSJFttbZLANoGPVzw204YsJmDmDjtBRYBfTLPC95oWnRbjLHf3TMn0kshu trj089FRGU2pS7vPHQaVgOyU4jdmSzsmogZLvbkN7MmzR5qTfTYgTw/PTo0f+GjYfe7J +8uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=llcItHV8cfNbquDEUYg4udZz8b+Wb+9mZqCLfnUUFHY=; fh=fIz8R8G5zpr2SKBb/3EP9Z90SkwPHEwkF+Gd2uM6SXs=; b=Bsdp/2EQotEnx+ZaK6BsieRgM25zBQslPR8IjX8t+6Ln9xeDhV57wunP4B2mS52ZlE tFs81PSfH+64l/TRaOdmB5kkBw9pmdlqG+40YGXA509hFK+nAZ5DN2yADpLbwSM235ZF 93QrZbFnDJrziiEMVwqRUdbY4Si+qTR4UtNLo/zFA20WV5B7yFrB0G24WB+LwjImt4cp bT3gfrtosMaDc3xtA052yjKgPAhx/6zIl22SJCtjIc2ikQCjcnYxy7TUKRrKD3OAfdVQ Bp4UHoAkf+zNPEjM2HhAXy+n8xCYT/CfbjFkEV9YpX+zHuFcbj5evNZqOVR81wChCTz+ 8mrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ejFTNNlA; spf=pass (google.com: domain of linux-kernel+bounces-5290-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l5-20020a05620a28c500b0077db39f2e53si27421136qkp.628.2023.12.19.05.53.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 05:53:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5290-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=@intel.com header.s=Intel header.b=ejFTNNlA; spf=pass (google.com: domain of linux-kernel+bounces-5290-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 6D9DE1C23F62 for ; Tue, 19 Dec 2023 13:53:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6B8B1A286; Tue, 19 Dec 2023 13:53:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ejFTNNlA" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) (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 EF8CD1BDC4; Tue, 19 Dec 2023 13:53:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702994022; x=1734530022; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=yfmGb2CU0aifKMp5SXmmNHyvc7SvPOQRc4aakgQN3Vw=; b=ejFTNNlAeBuUMsfNYHQ0+vodrkud9uQbetc+MXuXCW9keE7jVwXoNmyI Zjm5mrxDDdX/bQO921CFYRygdG4a7veg1sdEhBAD5Mcv3L8M9nhZ6AtNr mj2Og11GmQODz+mhij0rqOrAAvwS+baza4xfPiNfslVX6J6hiamKPX+2Q eKfbxluheRYs6+Wyj4Hb/IZ0a2voFIt8ASyORch8jSIjxxoP/8lAzJaHh ulC7/OoD63VBROV/UuUr3OzSiqh5zc6GhwVgRxeR+1NssPOz/rHyq+eS+ 1mawp7ff8Ta7CEoGWpa0nzZ3kYsKsPk1plxVeSn4K6N1Y2TmeOeBXADBU Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="399492488" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="399492488" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 05:53:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="769244133" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="769244133" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga007.jf.intel.com with SMTP; 19 Dec 2023 05:53:39 -0800 Received: by stinkbox (sSMTP sendmail emulation); Tue, 19 Dec 2023 15:53:38 +0200 Date: Tue, 19 Dec 2023 15:53:38 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Stephen Rothwell Cc: Kent Overstreet , Dave Airlie , Linux Kernel Mailing List , Linux Next Mailing List , DRI Subject: Re: linux-next: build failure after merge of the header_cleanup tree Message-ID: References: <20231218174030.3ed72f54@canb.auug.org.au> <20231219145734.13e40e1e@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: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231219145734.13e40e1e@canb.auug.org.au> X-Patchwork-Hint: comment On Tue, Dec 19, 2023 at 02:57:34PM +1100, Stephen Rothwell wrote: > 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: > > > > 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=implicit-function-declaration] > > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_input, (1 << bit_precision) - 1), > > | ^~~~~~~~~~~ > > include/linux/math.h:104:36: note: in definition of macro 'DIV_ROUND_CLOSEST_ULL' > > 104 | unsigned long long _tmp = (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, unsigned int)'} > > 155 | static inline u64 mul_u32_u32(u32 a, u32 b) > > | ^~~~~~~~~~~ > > include/drm/drm_color_mgmt.h:45:46: note: previous implicit declaration of 'mul_u32_u32' with type 'int()' > > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_input, (1 << bit_precision) - 1), > > | ^~~~~~~~~~~ > > include/linux/math.h:104:36: note: in definition of macro 'DIV_ROUND_CLOSEST_ULL' > > 104 | unsigned long long _tmp = (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 function 'mul_u32_u32' [-Werror=implicit-function-declaration] > > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_input, (1 << bit_precision) - 1), > > | ^~~~~~~~~~~ > > include/linux/math.h:104:36: note: in definition of macro 'DIV_ROUND_CLOSEST_ULL' > > 104 | unsigned long long _tmp = (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, unsigned int)'} > > 155 | static inline u64 mul_u32_u32(u32 a, u32 b) > > | ^~~~~~~~~~~ > > include/drm/drm_color_mgmt.h:45:46: note: previous implicit declaration of 'mul_u32_u32' with type 'int()' > > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_input, (1 << bit_precision) - 1), > > | ^~~~~~~~~~~ > > include/linux/math.h:104:36: note: in definition of macro 'DIV_ROUND_CLOSEST_ULL' > > 104 | unsigned long long _tmp = (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=implicit-function-declaration] > 45 | return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_input, (1 << bit_precision) - 1), > | ^~~~~~~~~~~ > > Signed-off-by: Stephen Rothwell Mea culpa. I slapped on a Fixes: c6fbb6bca108 ("drm: Fix color LUT rounding") and applied this to drm-misc-next-fixes. Thanks. > --- > 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__ > > #include > +#include > #include > > struct drm_crtc; > -- > 2.40.1 > > -- > Cheers, > Stephen Rothwell -- Ville Syrj?l? Intel