Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1683169rdb; Tue, 20 Feb 2024 04:05:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUElmhkkHTEJ6Lay/oBsuftU+4DZpzuBloCsk0hn1ghaH9S2dDXwhRtUGvJRvYSL9aG4Wap0CIjxxrLYWRYSnhXGO3cXZ7PWdeo7LwqKQ== X-Google-Smtp-Source: AGHT+IH6+BN58tsBO6aVgUTvpBPjlNdCL0XfWydTPinRVLyBB7BQJBQVeqPSFjhYZR6aaXy6n8CJ X-Received: by 2002:a05:6402:134d:b0:564:a4e9:368c with SMTP id y13-20020a056402134d00b00564a4e9368cmr2872436edw.23.1708430742683; Tue, 20 Feb 2024 04:05:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708430742; cv=pass; d=google.com; s=arc-20160816; b=d+R/+D/bf34aFIFN6eYf+w+56hPSS+tdr/BA8i16t6JxJnCUzjnkrZ5gylIQ526nf4 BIYd+l0onXUswnuv2LZvqYhbzehnTBq1UVNcxf99LaffcrDTpnAn0wWiYnZL1s1uenKE vX+Kfx40ALwprDR36JXdiZqBs/lOr7Q0cpV2ZG1t2ffRR2K2COsps9SHuaR5OcLAxhrx rOkvuhXaB06QODEBZy//qoyEjOy+H3WXok7HQH8ieHRW06H/0IsnbyNjwY7wGQyRZ0oJ DAnFnMi30V2zqlao6W1WKSsErgVYO2El1gg5neFcxDJOQ9sFaywO1xS0bMoQl14n0ceM 0XDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=FpYOx+1Onww4jyvEyeuphhxltZ7zG5P6KAYrjd6X8b0=; fh=61uyfLdjON8gM3CLjLIVziW8aj2Pi1cqcvXgEBTno0M=; b=P+RV0jn6JOHgMxi8i04tDCz3WTTAj8IoVO1VYtFJDTV3YlJFzvYRlGT98fvIQkXwVO lEqpnLx3nTFUy8zV+IoAebRH5c5ZAzcoNA6a8hUkwixpXn+meM/ZiBYVYJ5q+erxlOxO 1K6bHLJdHi5IBH3j06XsqC3MZqYdX/mBWUzXLlNI0jJyhldHNwJKQ8X4m8X7N6MjGw9F kSB2W6tSqlTPHWZQLaZ89nl3M/h07CwoHwuXJkbPUExfpsihacBQldBVlWxb1WYveZ5H mYVzQsGm0VX/JK3Xf9tsuueqAW0RSC3paWgZAWMguJVSgFfs7lBUjtpWFQAjABvXv+ym XIsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qJ0KtNMM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dz21-20020a0564021d5500b00564a24f0cb6si1236427edb.263.2024.02.20.04.05.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 04:05:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72977-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=@kernel.org header.s=k20201202 header.b=qJ0KtNMM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 727A71F21BD3 for ; Tue, 20 Feb 2024 12:05:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FC6B67C58; Tue, 20 Feb 2024 12:05:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qJ0KtNMM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7557267A0D; Tue, 20 Feb 2024 12:05:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708430736; cv=none; b=aLNVwxAB7ZSdaxZlC5yCQPMvyz1blzyvas5rVTrvh8OXB6bNeR+0bMFvO4+0UUORiEkVuO7RP9qaohDxSYZAbL9Gesk57YRV/xjdCxcZD5WF6h0/o8G8UgHcmvbkf9khB9gklRDG/Ce45hNDLK/QfBAhMZGj/XgDBKBT7qqbLBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708430736; c=relaxed/simple; bh=uFhQeV0G5kKC+gS0p2qQ4txoQzbH3NaU3HXRPdCBUI0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JroSxubeWYhdJYQcjESrfMTJnvuJSvTshICpnz74/ov8CyjhdWYoRWpPB7LLF+CK33j9jrUNwTxHLY2oNloy5bDqzCy9rPVLli0BSXGeG75q2LpR7xTvEexsNB40hqBi3VuMwFkkiGl6qpPIlBCzdQmRUVzbdbu4V08WpblRxTY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qJ0KtNMM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1B58C433C7; Tue, 20 Feb 2024 12:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708430735; bh=uFhQeV0G5kKC+gS0p2qQ4txoQzbH3NaU3HXRPdCBUI0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qJ0KtNMMu9CPBiN4yK5l4EUJ1JY73SfqBKLLpqsSUWWjkKMH7h3m9ng5R6huJQpJs 599ouKRCIN7NddfvXPghuzZFq9v9dRp4BTfq7t6M35+MKx6kLvfG+IqmBpZ0mzTLYx Plk20+upJx1xNjr4JZgS//FVLUETCwzM6u2IKcAROPCIZBpD49zGa5W5WXZJP2w8nb uWx0AHEs1PmcAjUNrQTbaLM7Yotq2Ww98b/tsY0KUxWvr+pLYpcOz5nGnI0hjXE8cP kUyUpMNZdQAqpZHGmDoA4q37P/6MJQ/NGqXf+tx8k+xgLmFgtkQ5dqufkoOQUKJ81a D14m+iX7xJ3Zg== Date: Tue, 20 Feb 2024 12:05:30 +0000 From: Will Deacon To: Ard Biesheuvel Cc: Geert Uytterhoeven , Arnd Bergmann , Fangrui Song , Catalin Marinas , linux-arm-kernel@lists.infradead.org, Jisheng Zhang , Dave Martin , Peter Smith , llvm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: jump_label: use constraints "Si" instead of "i" Message-ID: <20240220120529.GA5613@willie-the-truck> References: <20240206074552.541154-1-maskray@google.com> 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=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) On Mon, Feb 19, 2024 at 04:41:03PM +0100, Ard Biesheuvel wrote: > On Mon, 19 Feb 2024 at 15:43, Geert Uytterhoeven wrote: > > > > > > Changes from > > > > > > arm64: jump_label: use constraint "S" instead of "i" (https://lore.kernel.org/all/20240131065322.1126831-1-maskray@google.com/) > > > > > > > > > > > > * Use "Si" as Ard suggested to support Clang<19 > > > > > > * Make branch a separate operand > > > > > > > > > > > > Changes from v1: > > > > > > > > > > > > * Use asmSymbolicName for readability > > > > > > > > > > But it still fails on gcc-5: > > > > > > > > > > arch/arm64/include/asm/jump_label.h:25:2: error: invalid 'asm': > > > > > invalid operand > > > > > asm goto( > > > > > ^ > > > > > > > > > > http://kisskb.ellerman.id.au/kisskb/buildresult/15129281/ > > > > > > > > > > > > > How odd. godbolt.org has 5.4 and it seems perfectly happy with it. > > > > > https://godbolt.org/z/GTnf3vPaT > > > > I could reproduce the issue on v6.8-rc5 using arm64 defconfig > > and x86_64-gcc-5.5.0-nolibc-aarch64-linux.tar.xz from > > https://cdn.kernel.org/pub/tools/crosstool/files/bin/x86_64/5.5.0/: > > > > OK, I managed to do so as well. > > And GCC 6.4 from the same source works correctly. > > Not sure whether there are any plans to bump the minimal GCC version > any time soon (cc'ing Arnd), but we should probably drop this change > until that happens. Yup, makes sense to me. I'll revert the original change and we can bring it back later if we decide to bump the minimum GCC version. Cheers, Will