Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp265327rwl; Thu, 3 Nov 2022 23:22:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4VVN6eNEs3WvDRDXdleKpPT7FtAMJSYwMe8LOnFtKNst0otEdjOpp3Y1dFsFRo5pBHMCcB X-Received: by 2002:a05:6a00:4217:b0:56e:3a98:11a5 with SMTP id cd23-20020a056a00421700b0056e3a9811a5mr8220220pfb.13.1667542920078; Thu, 03 Nov 2022 23:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667542920; cv=none; d=google.com; s=arc-20160816; b=e12xq7hCQbxFMGXf7UG2RZxx8FHS9lDfSjIHAWpwAyjIY4qsVM9dGKItpGfQHme+er OV4Hwv1fHi+EmnTzqPj7FuVDQPZW091QKbI1Zdp1HpJOAmpTd0Dwro3Or/7EzhRdqOTj rT3Tcn3BU86wT/tE3GNW9FQjMPQLUmjNrbhICuC8EK4Q+b+uqG4klMOnZDUFtp/Ppcuz P32HtS+fosVjJYUzgBq54cvvNKWeHM9zgQ0qYmPXipzYojqCqz4TT7h4E0txEI3JH0YD jnne0HN62L+CwBjxHFbsMgDeWESvEWqXUSg/7/KdJGPdmmDTTwu3YHhvDHS9qZQshpe6 bfVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=b1KLvuRtRkhMmknX2hbKioAkwPW3ZrCxuX4WKOGwIp0=; b=RF1KUgnPD6YuXP6SaI+uS6xMoi31269J9GGBCkKjXmVyQRcL5PdYNwc6pU5Fu1wYlb HmSBEty2Fw5ewnDExUOUY8YsE9Y3bjg7YJ6vlJc+vdFwAPsXNX5Uqtb1PGThKVlceQhe SaWz+aJ+M5h0HmJqwC5WQmaJrwV3Lo/U8JfVZ6dMojSf2YQ+DgZWUKiLQ1k7awohOtER TPoaoURphFkr24RnJX7+K2dSHrEmukTkB3qrD2vU9oSzG3HrNtWvfBysRhRJYPMnhgNL VlNf2puFSx85cV7/WM8ZEB4cNtGFOnhsdzj2/pyHwMY+gzDcAM6pvgcGCYfa6W+3nLe6 50Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PC3CBPZt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 1-20020a631541000000b0046439853c62si3667650pgv.127.2022.11.03.23.21.48; Thu, 03 Nov 2022 23:22:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PC3CBPZt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiKDGJD (ORCPT + 95 others); Fri, 4 Nov 2022 02:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiKDGJB (ORCPT ); Fri, 4 Nov 2022 02:09:01 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CD2CB4B4 for ; Thu, 3 Nov 2022 23:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667542134; x=1699078134; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=+tU/lOoBWBox0mdi+ziiZ54yP1You4GLwSqhkkOENZc=; b=PC3CBPZt0TCeBmvFESk9p/5sckxARP5KZZcbWJ3IVlJqk8RlgL/Kd6rJ S616+uRN5SKJNE9ZFp+78bwxuZztu7UYdA4s4vNile/G5+8VJL0iaW2f2 g0OelNtKBiD71nV/faC4rLfO5NB2nyEFDUIdoZ3fJ8R0366UuGm+9UYHo svp4diM4xdPOe1I12fuaUMFXI10k48E6rIx666qwabB37ue4yscnXnJQj rIQY6t6Lqis9E30Gr0rjUzAa7f42H7+575ILceGRosikgfbOR+CaYeV+G ftyrDybgYEtYJ45dRwrGisnSMvBl3LDCWbEEV3BMr1P1y/3d54Ks1K75v A==; X-IronPort-AV: E=McAfee;i="6500,9779,10520"; a="297355293" X-IronPort-AV: E=Sophos;i="5.96,136,1665471600"; d="scan'208";a="297355293" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2022 23:08:53 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10520"; a="724232835" X-IronPort-AV: E=Sophos;i="5.96,136,1665471600"; d="scan'208";a="724232835" Received: from yuhongwe-mobl.ccr.corp.intel.com (HELO [10.254.215.240]) ([10.254.215.240]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2022 23:08:50 -0700 Subject: Re: [tip:perf/core 1/2] kernel/events/core.c:181:48: error: redefinition of 'cpu_context' as different kind of symbol To: Peter Zijlstra , kernel test robot Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org, Ravi Bangoria References: <202210272227.jWuKg5y6-lkp@intel.com> From: "Chen, Rong A" Message-ID: Date: Fri, 4 Nov 2022 14:08:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/28/2022 1:12 AM, Peter Zijlstra wrote: > On Thu, Oct 27, 2022 at 10:03:53PM +0800, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core >> head: dc39beffcfc19a8dd2a09c5818dcd1a4e9099033 >> commit: 983bd8543b5ab8e9a2870ae258bccd4ce7a22c7c [1/2] perf: Rewrite core context handling >> config: mips-randconfig-r024-20221026 >> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) >> 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 >> # install mips cross compiling tool for clang build >> # apt-get install binutils-mips64el-linux-gnuabi64 >> # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=983bd8543b5ab8e9a2870ae258bccd4ce7a22c7c >> git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git >> git fetch --no-tags tip perf/core >> git checkout 983bd8543b5ab8e9a2870ae258bccd4ce7a22c7c >> # save the config file >> mkdir build_dir && cp config build_dir/.config >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash kernel/ >> >> If you fix the issue, kindly add following tag where applicable >> | Reported-by: kernel test robot >> >> All errors (new ones prefixed by >>): >> >>>> kernel/events/core.c:181:48: error: redefinition of 'cpu_context' as different kind of symbol >> static DEFINE_PER_CPU(struct perf_cpu_context, cpu_context); >> ^ >> arch/mips/include/asm/mmu_context.h:106:19: note: previous definition is here >> static inline u64 cpu_context(unsigned int cpu, const struct mm_struct *mm) > > *sigh*.. robot people.. this patch has sat in my queue.git for weeks now > :/ Hi Peter, Sorry about that, I checked the internal reports, the error was first found on Oct 14, but it's blocked due to commit id changed in the same branch, we'll enhance the check logic to avoid blocking such cases. [peterz-queue:perf/core 5/6] kernel/events/core.c:181:48: error: 'cpu_context' redeclared as different kind of symbol Best Regards, Rong Chen > > anyway, lemme go fix, this shouldn't be hard. >