Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1671375lqg; Sun, 3 Mar 2024 23:07:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGX+UmmLJp5yhLfVtSDJsUMockzgKKG8mIMXFWIebDnb+9EUfyz0U4X5uJ47tI6l15xgtJyj7jusdJSn0SeydQc8jhNVRrnvQnnO4LZw== X-Google-Smtp-Source: AGHT+IE3RJZj+FD4a0GkEXJI+5VTsuBCmqnTzzJ6L3yS4R28jdTBNSRkc+fEW7Xn+c5KYIaNh7In X-Received: by 2002:a50:cc47:0:b0:567:504e:e788 with SMTP id n7-20020a50cc47000000b00567504ee788mr1191418edi.11.1709536073942; Sun, 03 Mar 2024 23:07:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709536073; cv=pass; d=google.com; s=arc-20160816; b=DhU1t+yhixwYyF++29RpNUjtuc5ucPWRAPlcMZorDmnOMKVfzLO2Uv1breESDT4iX0 SHMojTyOWIwgD0oRMd3GR3hrWvawcgnjbcIN1TVRYRyxjODogkMlUTtT94whBNrWiv4l mmYnwpePHtCc+3UhPcjX2pUPNaT5fCQID7rCPTRdKCcAoWuf5UO3ruRU8S8YKw4ZD4LD fkFklTVC+9MTda9R/KRnx5ZwmGToj1phdnFGC6+0LgnpMAAOaSB6/TR0AQ0/z6+KQR6a xQl27xUsBJI3jVM+YrE50pMMHNPQZ56VD8bu+VVyR9UID4eSmz7lKQ3kwvKAY0gg0GCx c8FA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding: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=60SVu1KVHedJVfxJcO9wjvgnDUx3m4ZLvGGuTu8iRX0=; fh=nKKb3ph/Oh+l+BhPALqt+0b2RNl0JuQ3u46Zes8lgL0=; b=vjMSiyUl4PaXUKqy3n73mRv3Yzwxie22ugCqGWmzQLs5EMY9UgWE6nB4VAVsk53sob QrKlDMNFUF5o5WMBLFveXjmqd5ChKVL2ZYVf8pFtTf9eSvi0yCC71swBvTItXTaODdM4 V9SmZq9i216j8Uu4M0SO6EdIJbjetmdvAPr6K32XAoAo93eviYZf1FNyEikFPsoSxDAi 5umIyXiK82ZCv9mSW7Ks17FXuyGfD5ILYIsX4iOIsjI+v2kJgasVGO63gVWli5XUHrf/ 7VOaJjdzskD3KPJ/VPhHxEUbKtGf6Hg151ZFMrtpVDZg+3JO4fjp7ceB4ZcsxXw5RSre C+ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=v3BwV6w6; 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-90110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j15-20020a508a8f000000b00567504ee7adsi581430edj.594.2024.03.03.23.07.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 23:07:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=v3BwV6w6; 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-90110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90110-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A9B081F21537 for ; Mon, 4 Mar 2024 07:07:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 166A0134AD; Mon, 4 Mar 2024 07:07:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="v3BwV6w6"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TzZh3cXI" 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 6374912E4F; Mon, 4 Mar 2024 07:07:46 +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=1709536067; cv=none; b=QwVetv2OrmF+zpD4/pSxb7eVS/p+QeaQg6n28sC3Q1w5D72dEGMbUEbIrX7HmbfDSJiltTajTY2Q1tFA9s7dThOOwyuf/H27weYCIi1urpicOmiex/yYxclpWuiPce0KTanxx+O3b80lwoHAJ/eQ335AceTrj/ZDXCLZ2loUM2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709536067; c=relaxed/simple; bh=60SVu1KVHedJVfxJcO9wjvgnDUx3m4ZLvGGuTu8iRX0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=QQek5yBSqipQATADpbQ8+z2Fy2pLItvq04t67wj1CC+EMctzS7Gq7Kdhfpu5HiGT0LLKkeDcIsOF0n3yWDkZawEsNCfgaOVoq3jKUyG0eFMD7dOpA0IifJ6fRyJu5OWJp5jxMDjdRZt/XPNpF8WX948DZlmBFM2MlSJKn3kfng0= 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=v3BwV6w6; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=TzZh3cXI; 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=1709536064; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=60SVu1KVHedJVfxJcO9wjvgnDUx3m4ZLvGGuTu8iRX0=; b=v3BwV6w6KaPN4Wp25kEa7zvrQRv6IeRbPnlSIPu2PjFRPH+HNW72t7QKZBcqIITs/lfF7R lFb6pnVU2HmFXmU5SDSpeP0Ob/R2Tdu0NMhrVkLjLFdfHK+aWEHVEH4BJYgIl0NQTKeic2 8ll0FlaW93mvS4DRPSc5/uvxvcoQ7aM7cdfv02ISV0LuSruoN4fWsfLvnZ84v2IsWsqIJe ZwX7RMPMARvPgCbDA6YSAy7+RWXl2JLOD1rTD6lGaL6pvTI7I96G2tYPAERAowHB3ezSBp XNJUZnT43aFVL645x0uvcubl4sVNSjIDo8N67Fzb8aP6u3QJM8o5uN6bn17kfg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1709536064; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=60SVu1KVHedJVfxJcO9wjvgnDUx3m4ZLvGGuTu8iRX0=; b=TzZh3cXIGv03GDF2Z7s7WIsb9G3jhkVcJ3YJBatqRbF/mjku8eCQSY0YyabxKE0oMYXcnh kYWQLoGOIectnTBQ== To: Uros Bizjak Cc: Linus Torvalds , kernel test robot , oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Arjan van de Ven , x86@kernel.org, Luc Van Oostenryck , Sparse Mailing-list , "Paul E. McKenney" Subject: Re: arch/x86/include/asm/processor.h:698:16: sparse: sparse: incorrect type in initializer (different address spaces) In-Reply-To: References: <202403020457.RCJoQ3ts-lkp@intel.com> <87edctwr6y.ffs@tglx> <87a5nhwpus.ffs@tglx> <87y1b0vp8m.ffs@tglx> <87sf18vdsq.ffs@tglx> <87le70uwf0.ffs@tglx> <87edcruvja.ffs@tglx> <87bk7vuldh.ffs@tglx> <87bk7ux4e9.ffs@tglx> Date: Mon, 04 Mar 2024 08:07:43 +0100 Message-ID: <878r2ywk3k.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Mar 04 2024 at 06:42, Uros Bizjak wrote: > On Mon, Mar 4, 2024 at 12:49=E2=80=AFAM Thomas Gleixner wrote: >> >> On Sun, Mar 03 2024 at 21:24, Uros Bizjak wrote: >> > On Sun, Mar 3, 2024 at 9:21=E2=80=AFPM Uros Bizjak = wrote: >> >> On Sun, Mar 3, 2024 at 9:10=E2=80=AFPM Thomas Gleixner wrote: >> >> > That's so sad because it would provide us compiler based __percpu >> >> > validation. >> >> >> >> Unfortunately, the c compiler can't strip qualifiers, so typeof() is >> >> of limited use also when const and volatile qualifiers are used. >> >> Perhaps some extension could be introduced to c standard to provide an >> >> unqualified type, e.g. typeof_unqual(). >> > >> > Oh, there is one in C23 [1]. >> >> Yes. I found it right after ranting. >> >> gcc >=3D 14 and clang >=3D 16 have support for it of course only when ad= ding >> -std=3Dc2x to the command line. >> >> Sigh. The name space qualifiers are non standard and then the thing >> which makes them more useful is hidden behind a standard. > > With GCC, you can use __typeof_unqual__ (please note underscores) > without -std=3Dc2x [1]: > > "... Alternate spelling __typeof_unqual__ is available in all C modes > and provides non-atomic unqualified version of what __typeof__ > operator returns..." > > Please also see the example in my last post. It can be compiled without -= std=3D... With gcc >=3D 14. Not so with clang...