Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1048184rdb; Fri, 1 Dec 2023 05:57:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEILesNWY/3QyBDveaTaDqe8fIe31d9Vx+GXf9EoXSP8E6euMKSebCkos6WQrTIW4iyJcsr X-Received: by 2002:a9d:7581:0:b0:6b7:4a86:f038 with SMTP id s1-20020a9d7581000000b006b74a86f038mr2920964otk.15.1701439077094; Fri, 01 Dec 2023 05:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701439077; cv=none; d=google.com; s=arc-20160816; b=v/q7t1btbWMhe/7pbYAlrzcCdNd4fPyZAaTkBmgNjSEZkQTj3XXEZ2DZzsYBdVvgbA vVTUMFYr/p1zOheEkjx18wbrsixZIC7qNH02FC/pRzUBhAwbciL6hhDUkrr+JwQoHz4d MZqgQYcmxkrv4Zb/nc/a8jc5tdxMI8zvW+TUe+AdN3/5ZocrRWo9UiNGbG1UOHsNME4s nS98lvlurXd1X5cxgGWvl+aOJnu3cligIh1wpCl8RU0/hyIFUr88Ylx6ynvF0r81DYos nZXpviw/5R3lRQbULo88ntIejs3KxXE4dg3HlPH63kj9Jdk34/tvhUYp5EYyJFv61YIf PdAQ== 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=5n/qv2LCwI00fHFBUjE06/h0++7Sj0TWAFXvAyHTE2s=; fh=lJ3IWgejfoZcp6lmzczhlBsTGckckTIGZAqR0mVYzHo=; b=xSCFdX0FtM5+3oHQoG0HOeqR3rVNG37/Mcf7+J7v806sLjuTUn0J3OGDxkn3Zd6/Jl xn1d8EgBTqckTaNcgDCYsxbgo8Nea6kg6VpOhX3HjnmZgGKwBUXJlpqFGylJuM9+wguf Lk3RhXvi3PjJPqdV4gaV+wzzwpmOaJlAId2PO2XB9PEQbzjSfpHw877M5OCFtZK+B3RV 0xXJuSrw24rgRDKAtNzpBvgsE9nKxlPPuuLhUU0e66k+uSHELEGlD9uXlIaol5r+tUZu S9NQDSOLh9NEL3gIdMPdm1OOLSUcM7zByZv3up9c90EFiqnpBtqx8bCkQH3vGpZ84jfA mhZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EyAcB0PS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id v21-20020a056830091500b006d813457de6si1365983ott.133.2023.12.01.05.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 05:57:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EyAcB0PS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 6BBC1817C8B5; Fri, 1 Dec 2023 05:57:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379074AbjLAN5h (ORCPT + 99 others); Fri, 1 Dec 2023 08:57:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379060AbjLAN5h (ORCPT ); Fri, 1 Dec 2023 08:57:37 -0500 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 691EFBC for ; Fri, 1 Dec 2023 05:57:43 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-54b532b261bso2663142a12.1 for ; Fri, 01 Dec 2023 05:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701439062; x=1702043862; 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=5n/qv2LCwI00fHFBUjE06/h0++7Sj0TWAFXvAyHTE2s=; b=EyAcB0PSZcfjT2K6+eEuMxIj6OH7virM0tRIUdfKyhy753ALN1CTTOEAjlil5n4gnh noByHM6O1sN9Wo61PCTzMTxM4mAhNr5RDR1Oo19hjy1CkLoGlw2T6KtFwyPj+y2rS9rc /lafKaAYoUyC6g/54Z1AOh3YNCLooURaznLj9cf8TuT0HfEkN5fBgFhAQD0SokPD0Ve+ L3LcVRfdlxYABKN8RJJxV6LkhwFH/JgbtknbSFOsvA6dmhTdog0P1qNZXcjkx5P8JBoO b766bxVUwwYbP+xr3CI6bOjHXn3Kqjo81dapbY6Jb4THbAFNkhiH8TaWxnkiiH4tEzO0 ZD2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701439062; x=1702043862; 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=5n/qv2LCwI00fHFBUjE06/h0++7Sj0TWAFXvAyHTE2s=; b=p9m2ZTRfdbgwCjiU8Sp/rfbpbyMuYIb2pz6hyaya9a9VIfipOkFBYAxt0dGQheniKO 8O4QVZ1JoEXpjYE/8WM9fp26PsP1iHCBz1/xgQzt8KkAJuFjxKSoaznUmeXPSkFRaqbj nOkptQrfP96km26ozrN/ah7Af66VTvKxFS4XHo0c9nY/16bxgbb3MrY7LbI2fMAkwKgV RCdgu+mav+97FOtvfe/0JDDIVUb8nGZ2DE/t+TOuV0+THAjguBh4KXdZNhMLYAhw+Pr6 /+kz5r1RGdPXwUNPP9QB/C7pengpYYML2CRkfrWwrQ8NOjB2iB/FmaWkfQ5WyxvuGQ2j LBAQ== X-Gm-Message-State: AOJu0Yw2KDVxAZvibROjMAw2Xh7U3xmJM/mUCEtobfY6cmqqeZvfaOhG GmmMHTmws53GkF2cZa6dGJ+MANGn3Zahlf1z7wE= X-Received: by 2002:a50:aa84:0:b0:54c:4837:81f1 with SMTP id q4-20020a50aa84000000b0054c483781f1mr845192edc.66.1701439061559; Fri, 01 Dec 2023 05:57:41 -0800 (PST) MIME-Version: 1.0 References: <202310080853.UhMe5iWa-lkp@intel.com> In-Reply-To: <202310080853.UhMe5iWa-lkp@intel.com> From: Uros Bizjak Date: Fri, 1 Dec 2023 14:57:29 +0100 Message-ID: Subject: Re: [tip:x86/percpu 12/12] arch/x86/include/asm/preempt.h:27:55: sparse: sparse: incompatible types for operation (&): 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 01 Dec 2023 05:57:51 -0800 (PST) On Sun, Oct 8, 2023 at 2:43=E2=80=AFAM kernel test robot wr= ote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/p= ercpu > head: ca4256348660cb2162668ec3d13d1f921d05374a > commit: ca4256348660cb2162668ec3d13d1f921d05374a [12/12] x86/percpu: Use = C for percpu read/write accessors > config: x86_64-randconfig-122-20231007 (https://download.01.org/0day-ci/a= rchive/20231008/202310080853.UhMe5iWa-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/20231008/202310080853.UhMe5iWa-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/202310080853.UhMe5iWa-lkp= @intel.com/ > > sparse warnings: (new ones prefixed by >>) > kernel/bpf/percpu_freelist.c: note: in included file (through arch/x86= /include/asm/preempt.h, include/linux/preempt.h, include/linux/spinlock.h, = ...): > arch/x86/include/asm/percpu.h:550:49: sparse: sparse: Expected ) at en= d of cast operator > arch/x86/include/asm/percpu.h:550:49: sparse: sparse: got __seg_gs > arch/x86/include/asm/percpu.h:564:33: sparse: sparse: Expected ) at en= d of cast operator > arch/x86/include/asm/percpu.h:564:33: sparse: sparse: got __seg_gs sparse is too strict here. The following code is perfectly legal: --cut here-- int __seg_gs foo; int bar (int *pcp) { return *(typeof (*pcp) __seg_gs *)(unsigned long)(pcp); } --cut here-- $ gcc -O2 -S -Wextra -Wall test.c $ $ sparse test.c test.c:1:14: error: Expected ; at end of declaration test.c:1:14: error: got foo test.c:5:26: error: Expected ) at end of cast operator test.c:5:26: error: got __seg_gs $ Uros.