Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp980711rdh; Fri, 27 Oct 2023 00:47:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG86U/CO0GrMdbuK2oNHq7ntQbTDiuRGbGWn4GAe4gUbt2gkJvfIVV7yAMtvAmNa1TPt4hK X-Received: by 2002:a25:258e:0:b0:d9b:b77e:23a0 with SMTP id l136-20020a25258e000000b00d9bb77e23a0mr8748398ybl.11.1698392857786; Fri, 27 Oct 2023 00:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698392857; cv=none; d=google.com; s=arc-20160816; b=SP0+VK5ksRjMuaRq8Hz9FL26faaZUFHqo3ol29bj5/es7ai29Qe6UhW5zBdP4Svim1 Cs00qJmJ3gtvHVH+KTeDts9Fdzdqo63xyCBJi8Wf3r+otqeMmqh9RbtKGRwC1ep8mOwy B31bjHIRqD36fyMtZNJxd9k1Wi/dc7cS0gUq8Yi7E+IUhOJn9SqSl8JamE7sRJsjFrI0 udZGiKYtL8a2aSI8xgfTIzaNfQDNqc8/b0588jJxkm4oBPQVHzTnBopgzRPogaxSb3BH kxzryiMde3GZADsyiwGtzMsybwb018a02BeTNi55wdMLBUjRi02ADmzv4FhtB24BPI84 2BDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3s+HmKQBO5YfN5uxNe8jCr2D05b202XxgDdt3GiR2tw=; fh=lJ3IWgejfoZcp6lmzczhlBsTGckckTIGZAqR0mVYzHo=; b=SS53UJC9foc7HJ0SAT3R8VGxPhXRKBfXO92zIXQknDhaE9Or8YnvVu/8fLHT3vb0EU zrAQiJOQF6l7DMSBVdx0S8lxrLfOackC0M6XUEoY2flttlWyVUa0Y3mR6s4eBtawHNAY SjXd16Fz91UADwNesIR8VqueO8PaUyLbAlFg0KBQNff2sGQZC90dFTuxmcaU63quApn0 qiw0XxNUuI+n9R4iBYsDCL4aLr2YolgFbBoO/VYkWwWDdMDryzWKzW/7KtyFqCKT28U+ 8jhSWcZYZtwEj+zBGNmgrPHaXfSZ7TIqBPnMs1aEV179zJs9IamNTQTQernElyTN0Mxo hd6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ajdqXw7B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t61-20020a25aac3000000b00da0e230ffe2si1962024ybi.413.2023.10.27.00.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 00:47:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ajdqXw7B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3E0188283A33; Fri, 27 Oct 2023 00:47:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345420AbjJ0HrQ (ORCPT + 99 others); Fri, 27 Oct 2023 03:47:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbjJ0HrO (ORCPT ); Fri, 27 Oct 2023 03:47:14 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3852DB0 for ; Fri, 27 Oct 2023 00:47:11 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-53dfc28a2afso2711787a12.1 for ; Fri, 27 Oct 2023 00:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698392829; x=1698997629; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3s+HmKQBO5YfN5uxNe8jCr2D05b202XxgDdt3GiR2tw=; b=ajdqXw7BGT2zGQurdXewScLavincvIzqmW0zdD13h4f1k3mEXUhwBRM/NScKzzOHVw nBRK655s8nNZNjjc2UZqDBVtwHOvXOmrJ3lhsk3iyxHvS+fRqBaUMUV80vZcJApuLbEI LRZdAsAvIgSpBfgobGzQUvjA4Bi/PR6lH02nYlNPnjvbOpB/ToHl44jKAwj7khsMwCZo jkHJK925xCVkeSY9pydwFnV0tcAj9iGpLy1CsvH3BAL2B3Ijw7zmsgCNGipjy4spD8ZM Sfk+tSachhi74HB/ZKHaLJiplR0lLH1xit0h7qFOte7xN9OPOAEs4gHycHhddk2fC0Md DHdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698392829; x=1698997629; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3s+HmKQBO5YfN5uxNe8jCr2D05b202XxgDdt3GiR2tw=; b=LL7kUtdKykHsInctJgMtD3yAZLQMGA9dJy0V4Sqr8N96pW3ZxO/Z6jk9lzSQmMTzgC zjS2kzdY9EgtbfE8C00mhvVQM7FWft2WesP4+H3mzmt3HzKAzjHd38mfo5/p9J6FkBGd fv8sNeN7LaJDW2MhAzvGuDOi+cBw9poofmHTRF8XE9j0K8Z2pRagZCHmR09/hXxhVXXo pUaG9zoxB0u6jP5F3mXX7OtFvgfPZzarxmKK0ADWsmJmV+a9zFbWJeR2Cy7j5ozU1l/T Lw/vQtc0FnO2dvXZlNaPLqL/evY2dGEi/+93wXgdPQUGfFDWWjiIhJ84h5C5zZzQ8c7e R/DA== X-Gm-Message-State: AOJu0YzmSB7fCo5SgTLQgOEdNXIoce7723yxIhGy4Sd91K2yu/D+mm9V XjhheAYJDDTKBdR0xNAK+RJFOu/Ln1rxC+NOoNY= X-Received: by 2002:aa7:c982:0:b0:53d:a727:3846 with SMTP id c2-20020aa7c982000000b0053da7273846mr1650215edt.20.1698392829471; Fri, 27 Oct 2023 00:47:09 -0700 (PDT) MIME-Version: 1.0 References: <202310270909.QBAOkiZP-lkp@intel.com> In-Reply-To: <202310270909.QBAOkiZP-lkp@intel.com> From: Uros Bizjak Date: Fri, 27 Oct 2023 09:46:58 +0200 Message-ID: Subject: Re: [tip:x86/percpu 21/22] arch/x86/include/asm/processor.h:522:24: sparse: sparse: dereference of noderef expression To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org, Ingo Molnar , Nadav Amit Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 00:47:33 -0700 (PDT) On Fri, Oct 27, 2023 at 4:01=E2=80=AFAM kernel test robot w= rote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/p= ercpu > head: 0548eb067ed664b93043e033295ca71e3e706245 > commit: ed2f752e0e0a21d941ca0ee539ef3d4cd576bc5e [21/22] x86/percpu: Intr= oduce const-qualified const_pcpu_hot to micro-optimize code generation > config: x86_64-randconfig-122-20231027 (https://download.01.org/0day-ci/a= rchive/20231027/202310270909.QBAOkiZP-lkp@intel.com/config) > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archi= ve/20231027/202310270909.QBAOkiZP-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new vers= ion of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202310270909.QBAOkiZP-lkp= @intel.com/ Already fixed in [1]. [1] https://lore.kernel.org/lkml/20231024142830.3226-1-ubizjak@gmail.com/ Thanks, Uros. > > sparse warnings: (new ones prefixed by >>) > kernel/entry/common.c: note: in included file (through include/linux/s= ched.h, include/linux/context_tracking.h): > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > kernel/entry/common.c: note: in included file (through arch/x86/includ= e/asm/cpufeature.h, arch/x86/include/asm/thread_info.h, include/linux/threa= d_info.h, ...): > >> arch/x86/include/asm/processor.h:522:24: sparse: sparse: dereference o= f noderef expression > kernel/entry/common.c: note: in included file (through include/linux/s= ched.h, include/linux/context_tracking.h): > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > kernel/entry/common.c: note: in included file (through arch/x86/includ= e/asm/cpufeature.h, arch/x86/include/asm/thread_info.h, include/linux/threa= d_info.h, ...): > >> arch/x86/include/asm/processor.h:522:24: sparse: sparse: dereference o= f noderef expression > kernel/entry/common.c: note: in included file (through include/linux/s= ched.h, include/linux/context_tracking.h): > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > kernel/entry/common.c: note: in included file (through arch/x86/includ= e/asm/cpufeature.h, arch/x86/include/asm/thread_info.h, include/linux/threa= d_info.h, ...): > >> arch/x86/include/asm/processor.h:522:24: sparse: sparse: dereference o= f noderef expression > kernel/entry/common.c: note: in included file (through include/linux/s= ched.h, include/linux/context_tracking.h): > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > kernel/entry/common.c: note: in included file (through arch/x86/includ= e/asm/cpufeature.h, arch/x86/include/asm/thread_info.h, include/linux/threa= d_info.h, ...): > >> arch/x86/include/asm/processor.h:522:24: sparse: sparse: dereference o= f noderef expression > kernel/entry/common.c: note: in included file (through include/linux/s= ched.h, include/linux/context_tracking.h): > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > kernel/entry/common.c: note: in included file (through arch/x86/includ= e/asm/cpufeature.h, arch/x86/include/asm/thread_info.h, include/linux/threa= d_info.h, ...): > >> arch/x86/include/asm/processor.h:522:24: sparse: sparse: dereference o= f noderef expression > kernel/entry/common.c: note: in included file (through include/linux/s= ched.h, include/linux/context_tracking.h): > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > arch/x86/include/asm/current.h:46:24: sparse: sparse: dereference of n= oderef expression > > vim +522 arch/x86/include/asm/processor.h > > 513 > 514 static __always_inline unsigned long current_top_of_stack(void) > 515 { > 516 /* > 517 * We can't read directly from tss.sp0: sp0 on x86_32 is= special in > 518 * and around vm86 mode and sp0 on x86_64 is special bec= ause of the > 519 * entry trampoline. > 520 */ > 521 if (IS_ENABLED(CONFIG_USE_X86_SEG_SUPPORT)) > > 522 return pcpu_hot.top_of_stack; > 523 > 524 return this_cpu_read_stable(pcpu_hot.top_of_stack); > 525 } > 526 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki