Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1082582rdg; Fri, 13 Oct 2023 09:39:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG95ga5UB6jyzP8fpGkB1MlRv8ANbn2i7T5HwGorIUrq42SE67ieq97u1v4CbFcQud1vKAJ X-Received: by 2002:a17:903:2284:b0:1ca:1cf3:e72e with SMTP id b4-20020a170903228400b001ca1cf3e72emr790744plh.45.1697215158501; Fri, 13 Oct 2023 09:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697215158; cv=none; d=google.com; s=arc-20160816; b=zsqL5PP4Vp7XSGnk4GRTh27OPi1U7Wjpf8AzaXNAs8koMvLMWyP43pOsCgGeHFQvSy GJRdWaAkJ6j71X8Se5rHlVO+Y7FTKEvp+aDedbG2Cia8coZAR7MWAUKjCv7ztgGg5FYv rX1m4827eVSL80lwrKq6lo37CxjSh9n+wwqG02s98XkJR/xZ/CQxGrXIgEHXFYRAYxE7 aQt3LKmpF4r7zBQw8mcW6e/4Ua/6U+h4HEzkHzgN7E+QHyXZXhIj3YF6OiDOMCLgOtVE VFx8OJl5Yv9q/WjCbv6Sgw965Q9akUEbAZBSL5KJHGUFAqaCpR5uWGw7B/5sDQYKGsX1 IIdg== 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=DusE41HCZYYOq6cvLQapgn6LNZ8b2XM66rg5HL3Un08=; fh=3hMqaci1aSMG0AFmuDTcNcT9Fdla45I/j/Dj+Dy/pas=; b=u7mHco6AKP+S1EsJ6Tjnso+fN3k2w8Ol7tgFXVb0Rx3isreRq15AiW8ALGg+o/2Axh bzE7e9thah19xPykZrHNCPpLQjAHEnIgHY6cHsOFbWy0q3dR/pa/hSOBOssIw7BybXLn KY3+DjZjA9d/x7Sqzngp9QIzeCZhRD9EETdI3ycr1WLdozc3LRqSKZlDAgbnI+s3uUbK XYxdnKFaQRUBB3BK7+NdUJ1Kj5yGCQXWod4y8Lghj4nwJ/VxmwfDjEwS7ZbHC/h4Q1FV kayzmLdvNhdg22wuml+QM9BA9K080zFHtXfHx134OKg8HfIfnyhsGGhIXqK8MxEVLpJS yJzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XD9i1GsA; 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 Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b14-20020a170903228e00b001bf741231f7si5224450plh.570.2023.10.13.09.39.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 09:39:18 -0700 (PDT) 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=@linux-foundation.org header.s=google header.b=XD9i1GsA; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4FE3880E7633; Fri, 13 Oct 2023 09:39:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbjJMQjF (ORCPT + 99 others); Fri, 13 Oct 2023 12:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbjJMQjE (ORCPT ); Fri, 13 Oct 2023 12:39:04 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C58EDC for ; Fri, 13 Oct 2023 09:39:01 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-53db3811d8fso4682065a12.1 for ; Fri, 13 Oct 2023 09:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697215139; x=1697819939; 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=DusE41HCZYYOq6cvLQapgn6LNZ8b2XM66rg5HL3Un08=; b=XD9i1GsA+QBYeT85JXXUGdhCfhLPaWJqYfHiQ43m5dpO6dsoUqHAxVcrKzgOVV9JND BIr+UVws5TVINE+xKF05PvmYmQl9IZWYDVOt6y0jbUcaHqrb6XpDUyX0fb1F3AEnDlYC 5Ibw+SZAHM5/5g4SAdUeAckQYo0WbOTPbaOBc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697215139; x=1697819939; 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=DusE41HCZYYOq6cvLQapgn6LNZ8b2XM66rg5HL3Un08=; b=ITkTC081GQZcyto1GCkX0Eqv7rA3obRIkP1WHGB/o0a8RGQP0yaGW9ePa5OfK3eraX 4ASpv2+cTYLgFNDl0o7KTdZFif7d/GWCnFfdf49FUT1c/d4S6R4Mk1invTvkfH5dRBWm 7SkjFyl9ke5GDoMgQjT5f1BAg5H1Ek/BK56Mws2ECdDRlyc2N99LkeiyYg79Jntx+0aX CAL6TA/y8oLf1bwAeFXQExTaJefRu1ZuOcsr/LmDMXtGrHgTltPU4iv85z83daWScetB ZWOCSj7tL4ddLei58QWK6PfDvxeOMpzIyFskp+wIAVlwdMR8HkX+PSDKYW3dR7oBlqOS qdNA== X-Gm-Message-State: AOJu0YyU7PizvRjZK6EJhumzr4uIYyso6HX8+EL38fhqq+XWSFdTHQFC VT5n+p6lLA5j9P2Y1UdS5QgggM3vdRcCAstyfNGYdg== X-Received: by 2002:a50:ccdb:0:b0:53d:a18d:73b4 with SMTP id b27-20020a50ccdb000000b0053da18d73b4mr609466edj.12.1697215139429; Fri, 13 Oct 2023 09:38:59 -0700 (PDT) Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com. [209.85.218.51]) by smtp.gmail.com with ESMTPSA id w22-20020aa7dcd6000000b00536e03f62bcsm11730560edu.59.2023.10.13.09.38.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 09:38:57 -0700 (PDT) Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-9ae7383b7ecso726363066b.0 for ; Fri, 13 Oct 2023 09:38:57 -0700 (PDT) X-Received: by 2002:a17:906:7949:b0:9a5:c38d:6b75 with SMTP id l9-20020a170906794900b009a5c38d6b75mr607299ejo.15.1697215136941; Fri, 13 Oct 2023 09:38:56 -0700 (PDT) MIME-Version: 1.0 References: <20231010164234.140750-1-ubizjak@gmail.com> <0617BB2F-D08F-410F-A6EE-4135BB03863C@vmware.com> In-Reply-To: From: Linus Torvalds Date: Fri, 13 Oct 2023 09:38:38 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() To: Uros Bizjak Cc: Nadav Amit , "the arch/x86 maintainers" , Linux Kernel Mailing List , Andy Lutomirski , Brian Gerst , Denys Vlasenko , "H . Peter Anvin" , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 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, 13 Oct 2023 09:39:16 -0700 (PDT) On Fri, 13 Oct 2023 at 04:53, Uros Bizjak wrote: > > Maybe we should go with what Clang expects. %a with "i" constraint is > also what GCC handles, because > > =E2=80=98i=E2=80=99: An immediate integer operand (one with constant valu= e) is > allowed. This includes symbolic constants whose values will be known > only at assembly time or later. This looks fine to me, and would seem to be the simplest way to have both gcc and clang be happy with things. All these uses seem to be immediate addresses, as any actual dynamic ones will use a proper "m" constraint (and no operand modifiers) Linus