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=-11.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 B522AC4338F for ; Fri, 6 Aug 2021 00:11:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5864F6101C for ; Fri, 6 Aug 2021 00:11:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5864F6101C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id A88616B006C; Thu, 5 Aug 2021 20:11:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A374F8D0001; Thu, 5 Aug 2021 20:11:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 925B36B0072; Thu, 5 Aug 2021 20:11:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0245.hostedemail.com [216.40.44.245]) by kanga.kvack.org (Postfix) with ESMTP id 75DAD6B006C for ; Thu, 5 Aug 2021 20:11:13 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 147CA181AF5D8 for ; Fri, 6 Aug 2021 00:11:13 +0000 (UTC) X-FDA: 78442726026.15.1B12FBE Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf13.hostedemail.com (Postfix) with ESMTP id A8C17101C0D8 for ; Fri, 6 Aug 2021 00:11:12 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id DFAD960F25; Fri, 6 Aug 2021 00:11:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628208671; bh=09gEvtd2SL4jbKh/NXm632UOPNtYql6ThdlYDiUh+rM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8pg/eWTT/OgVA9B/NL0ClMr5x1Y628jFqPTEDyYPcCM801Gwg5//uISO+5yPcF6F sxMIcxe51R8d0JeUFz/o29ebJB6U4dXZjdbA/qm9z5z+ztEEwjzdRPqbk91DSDW+p6 RF9kjCNRVJGLq7CudkIi7cPm3rN9PVSDdW3cWl/7XGItYAONHMjqjxyPawexhenOqj wNKFB09FGt1UT6juigM5EDop8YsNsbsOVQ6sW+L3qAb4ZGjMmjKwb+XrvR64ABgibO egwzbh3E6BVMGBD+snVaQForZWapV5D3/fqEVZh/FdWgO4tNPrGQ9NTqnbxsuaQZOA H+GIasUvVAP+g== Date: Thu, 5 Aug 2021 17:11:10 -0700 From: Nathan Chancellor To: Nick Desaulniers , Greg Kroah-Hartman , Sasha Levin Cc: kernel test robot , clang-built-linux@googlegroups.com, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , stable@vger.kernel.org Subject: Re: [linux-stable-rc:linux-4.19.y 1181/1498] ERROR: "__compiletime_assert_491" [drivers/gpu/drm/i915/i915.ko] undefined! Message-ID: References: <202108060412.oMqAe0rc-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: A8C17101C0D8 Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="j8pg/eWT"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf13.hostedemail.com: domain of nathan@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=nathan@kernel.org X-Stat-Signature: oekr9t69r8xpyjgit87nzk7wx9qgk1hz X-HE-Tag: 1628208672-550737 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Aug 05, 2021 at 04:23:40PM -0700, Nick Desaulniers wrote: > On Thu, Aug 5, 2021 at 1:24 PM kernel test robot wrote: > > > > Hi Nick, > > > > First bad commit (maybe != root cause): > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y > > head: 7457eed4b647560ae1b1800c295efc5f1db22e4b > > commit: 7c29fd831799d09474dfdae556207b7102647a45 [1181/1498] lib/string.c: implement stpcpy > > config: x86_64-randconfig-r024-20210805 (attached as .config) > > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 31a71a393f65d9e07b5b0756fef9dd16690950ee) > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=7c29fd831799d09474dfdae556207b7102647a45 > > git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git > > git fetch --no-tags linux-stable-rc linux-4.19.y > > git checkout 7c29fd831799d09474dfdae556207b7102647a45 > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>): > > > > >> ERROR: "__compiletime_assert_491" [drivers/gpu/drm/i915/i915.ko] undefined! > > ^ I'm actively trying to improve these diagnostics in LLVM at the > moment. Hopefully that will make this report clearer! > https://reviews.llvm.org/D106030 It does help :) drivers/gpu/drm/i915/intel_engine_cs.c:466:2: error: call to '__compiletime_assert_491' declared with attribute error: BUILD_BUG_ON failed: (execlists_num_ports(execlists)) == 0 || (((execlists_num_ports(execlists)) & ((execlists_num_ports(execlists)) - 1)) != 0) BUILD_BUG_ON_NOT_POWER_OF_2(execlists_num_ports(execlists)); ^ include/linux/build_bug.h:21:2: note: expanded from macro 'BUILD_BUG_ON_NOT_POWER_OF_2' BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0)) ^ include/linux/build_bug.h:69:2: note: expanded from macro 'BUILD_BUG_ON' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ include/linux/build_bug.h:45:37: note: expanded from macro 'BUILD_BUG_ON_MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler.h:336:2: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler.h:329:4: note: expanded from macro '__compiletime_assert' prefix ## suffix(); \ ^ :83:1: note: expanded from here __compiletime_assert_491 ^ 4 warnings and 1 error generated. As it turns out, this has come up before and it was fixed by commit 410ed5731a65 ("drm/i915: Ensure intel_engine_init_execlist() builds with Clang"). Greg and Sasha, could this be picked up for 4.19? Cheers, Nathan