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.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 E13CAC4338F for ; Fri, 6 Aug 2021 04:34:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 09A70611CB for ; Fri, 6 Aug 2021 04:34:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 09A70611CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 42F4B6B006C; Fri, 6 Aug 2021 00:34:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3DF686B0071; Fri, 6 Aug 2021 00:34:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2CD766B0072; Fri, 6 Aug 2021 00:34:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0074.hostedemail.com [216.40.44.74]) by kanga.kvack.org (Postfix) with ESMTP id 126DC6B006C for ; Fri, 6 Aug 2021 00:34:21 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id B7B40181AF5D8 for ; Fri, 6 Aug 2021 04:34:20 +0000 (UTC) X-FDA: 78443389080.01.B1DF420 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf12.hostedemail.com (Postfix) with ESMTP id 555A8100153F for ; Fri, 6 Aug 2021 04:34:20 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id CCAEF611C5; Fri, 6 Aug 2021 04:34:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628224459; bh=EolTbqTcuTIUW+jVDkYB935Z3TTEyaZ+u+VLSLIrw4A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iKcNBC8pCGifMlS34e3N+o69+5grs5j3qwjvkyWi3u/WpmY2c/gB/Dg+wG9fBSS8R ulrU65e7Y/hN6ZOqJ6dzvRKS+DNsjCN3Uub9ljeFBZ8woiJwY8A9K8UqwudSSb8bK7 m09yXczF2L3ZiBZL8LAuamIlu7KNKkICwmLkR+Dw= Date: Fri, 6 Aug 2021 06:34:17 +0200 From: Greg Kroah-Hartman To: Nathan Chancellor Cc: Nick Desaulniers , Sasha Levin , 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: rspam03 X-Rspamd-Queue-Id: 555A8100153F Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=iKcNBC8p; dmarc=pass (policy=none) header.from=linuxfoundation.org; spf=pass (imf12.hostedemail.com: domain of gregkh@linuxfoundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org X-Stat-Signature: mgfqxkk55otni3npnryuhf9icscryg3m X-HE-Tag: 1628224460-761801 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 05:11:10PM -0700, Nathan Chancellor wrote: > 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? Now queued up, thanks. greg k-h