Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp584408lqg; Fri, 1 Mar 2024 14:31:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW9ecIoKguKKAXDw1musAFndyM84aXZwNrJe4l0pvK5HpgqltYvUcyYosNtyt126LzkkbASzg6mifg73EUoAjOQ++DFlCyvjxnB3k/gXw== X-Google-Smtp-Source: AGHT+IHCn9H9GX5ehwaV24zLq0BhxxU1xZYy/tsDTwmm4QCMY6SmHpPErCPdNgLQGSmU0LXudy/L X-Received: by 2002:a05:6a21:3985:b0:1a1:45d5:ef4b with SMTP id ad5-20020a056a21398500b001a145d5ef4bmr473423pzc.61.1709332305207; Fri, 01 Mar 2024 14:31:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709332305; cv=pass; d=google.com; s=arc-20160816; b=rNj74mkxQygdBorj2/3mrebil8s5xRXWYtWtkxULhSMI7Vzb+nv4AjrabEujm2vjbI tuvEclYaYimyINpl99gm9Q+Jc9rjFTTeNqyuOEOuIq76IdTxbsAiGg8Qhffgh2roTNjk mIE6DbAcPF9033iOgPiwG94LTtDSejK8wuT3e8SfgCpdFwOrjxV12YmcnXS7Ll5BYUmd m7wRlkBT7NbUxYTjLyya8aZ9r2Z3PrLprxxwe9yq3ddObdgZxCwP5vls8Ys1GTLxeIWh ZHzQmjIo+rdLMjjNEgRcWNwWvSSwMpYewhHIUgwr1/g2o11nmj9OuAID1o39Y15N9b2F gmug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=cJM8o0dTZP9U5vHZ05HO7IC/rt7sp3jInBHTx/HcMEc=; fh=z+Wec/rM+6aFFEh05WnuLRWf5EZWN8TCMCXP1/Ft3gE=; b=DvPUcT/LF6KIXBmJhZlZWw773ts4B+ZAeFvXN2JHNYs2h9JSEvrj5fTrqczHTKndZX dv8ruYqFZQSDLk1xQLw0KMyHRKCq08oCoFRklSxGPH4/HIjsp/3LdG4w7ZwAgtqzzHMW Lq9L9Vr+zIuP50C1YYmm7b/wYXAcbUQVrtiovqRWiKIu/aWNnzP9uHJVY1RYtnQmG6BQ sXXlgK9ZGOrdiBMD5quqBnJ88GkkN8skT22i5zlffTHqyPUdYSfEXYh4At4DBni7AkrI pNQi6aUkHrxxbi8wyp+e1anzS9nIjs98Bu3p3M4fffhCSbhabZqibOJiEkARJ1Qbbue+ oR5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oJcDlh65; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-89196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89196-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b36-20020a630c24000000b005dcd64f16a3si4426408pgl.204.2024.03.01.14.31.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 14:31:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oJcDlh65; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-89196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89196-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C1381B21941 for ; Fri, 1 Mar 2024 22:26:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A2D459171; Fri, 1 Mar 2024 22:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="oJcDlh65"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Psw1Iw80" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 54B1A58129 for ; Fri, 1 Mar 2024 22:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709332004; cv=none; b=e05sDMjC15osxYPkp7jkfafrpTfuUbz6u094cxm+1Qv7T8YXFbejvBWIifbLJhrnEwRuDdDxcvgQEIMmREYOVm6V4MWE7/nbOSA+OeQM61GFMr7hQB6Akn/kXU7i0iH8jG9vhRNtMb6mbYifdnXq2/zCMLh84SZO6Pt3Q00CZi4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709332004; c=relaxed/simple; bh=IN6JRKtqw3vFCB6giVFudPNWSiuT9ONdqL6N7win0MM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=s+yjZO6vIgZNryAQUi67ZoDOdBUXGA3+sycBtOaA8KygsPheIBFd7HlV9SW4qA7mnGjImYq8CRQqpEPPYfGc4hwJ8OF3sWYvuQwBTHoN7vtPaxzN8SWjyt1EAXvq2BOkuWvE5SqpluDwLfyn1lG71akHSRtZmNlGL2GXM/tygg8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=oJcDlh65; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Psw1Iw80; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1709331996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cJM8o0dTZP9U5vHZ05HO7IC/rt7sp3jInBHTx/HcMEc=; b=oJcDlh65rNJTdki55CleIS9AsLFQXvvxF/JOue0xbiLJqS2sBeHTwyN827SeCda7zBb/iF v0m8KLubTheQ1WC23ofqeLjR4tWwzcb3oxTY5ROo1lAEpkPdbM4rtVonbUGKliKSaIeMhj /usZj3HVF8Z8TgDWJkX998Yhq127usfPt9gay4Y7hFAZVCIxAMCplMQtsqd8BOCKus82QL 4n34bKODO1FKzap4b2LuN/a9Ds6FpB6oAqn8uHrLzBzFve9AMhcHkQhP9Pr1un8T6zjr6X TjtiPRWJ5/tzn6G+iC3V29gYA15rfCy0fX6xOH9mAK7+/qX/bbz+GtsmmEWKpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1709331996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cJM8o0dTZP9U5vHZ05HO7IC/rt7sp3jInBHTx/HcMEc=; b=Psw1Iw80zlQEHBMp+q0ZZKpSWAoGe97qc3WdsQYzCfN+acIbyaUO7R1FYStWCzEvG2qSJC Ls7tCBVQ7lAQ8FDA== To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Arjan van de Ven , x86@kernel.org Subject: Re: arch/x86/include/asm/processor.h:698:16: sparse: sparse: incorrect type in initializer (different address spaces) In-Reply-To: <87edctwr6y.ffs@tglx> References: <202403020457.RCJoQ3ts-lkp@intel.com> <87edctwr6y.ffs@tglx> Date: Fri, 01 Mar 2024 23:26:35 +0100 Message-ID: <87a5nhwpus.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Mar 01 2024 at 22:57, Thomas Gleixner wrote: > On Sat, Mar 02 2024 at 04:12, kernel test robot wrote: >> FYI, the error/warning was bisected to this commit, please ignore it >> if it's irrelevant. > > I have no idea to which previous thread you are replying to because your > mail lacks any references. > >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >> head: 87adedeba51a822533649b143232418b9e26d08b >> commit: 6e29032340b60f7aa7475c8234b17273e4424007 x86/cpu: Move cpu_l[l2]c_id into topology info >> date: 5 months ago >> config: i386-randconfig-062-20240301 (https://download.01.org/0day-ci/archive/20240302/202403020457.RCJoQ3ts-lkp@intel.com/config) >> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 >> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240302/202403020457.RCJoQ3ts-lkp@intel.com/reproduce) >> >> If you fix the issue in a separate patch/commit (i.e. not just a new version of >> the same patch/commit), kindly add following tags >> | Reported-by: kernel test robot >> | Closes: https://lore.kernel.org/oe-kbuild-all/202403020457.RCJoQ3ts-lkp@intel.com/ >> >> sparse warnings: (new ones prefixed by >>) >> >> vim +698 arch/x86/include/asm/processor.h >> >> 695 >> 696 static inline u16 per_cpu_llc_id(unsigned int cpu) >> 697 { >> > 698 return per_cpu(cpu_info.topo.llc_id, cpu); >> 699 } >> 700 > > This is bogus and I looked at another related bogosity today: > > https://lore.kernel.org/all/202403010704.oGQZPu0P-lkp@intel.com > > which has similar complaints. > > So I went and downloaded the config and followed the reproduction > instructions except for one detail. > > The only difference is the sparse version: > > 1) I had the regular debian variant installed. > > Version: 0.6.4 (Debian: 0.6.4-3) > > 2) I updated my sparse clone and rebuilt > > Version: v0.6.4-66-g0196afe16a50 > > Neither one of them exposed the problem, but you are using: > > sparse version: v0.6.4-66-g0196afe1-dirty > > which is obviously based on the latest upstream tree, but seems to have > some extra muck on top which I don't know what it is. > > Does this reproduce with an unpatched upstream sparse for you? > > If so then I'm really curious why it does not reproduce here. Sorry, my fault. I can reproduce now but it still does not make any sense. The code is correct... Let me put something together which the sparse folks can digest. Thanks, tglx