Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5990372ybe; Tue, 10 Sep 2019 11:50:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfAfMBgKUbls6nhJJQpLpASa7MjQj3hy25gdM0X8+JggBT7uDabuGVdrtckMRt3YNgCWi1 X-Received: by 2002:a50:918d:: with SMTP id g13mr32266109eda.64.1568141413352; Tue, 10 Sep 2019 11:50:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141413; cv=none; d=google.com; s=arc-20160816; b=aeVGszO7PzwjFPMDjf7TtDntQtJM6zkajGjL0XLdvcYBdD4ZP1+FzHbuGYhWL52WHU EVsCVASpPIBWTWogO8ooSRfVXj7/Dwl3Ks4I+RD/9diijrM4nb/qi4InHQUq7rji1k5X SN+Q7yxNfRV/aHVDyejaIpik5/hcBtqLVOjCQ2c4lAeTn3d7IMStRgOvFzin9d/uT2yg dKX8yFMKCXPpTvcT9Ilq19JKQdQOplHg4bTovHIt0t4yYkzwh4jOKPygprThKI55Rvl8 M+yg9OAoZS8hjiuOwSwqfYQQ74JSzu0V+7FoJ7Fn/sbf2cJ7gkvO5XWYV+mQrlZ5qxBG z9WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qCKK+ZwRK74U3hEJqtiKQ6iZ3hduhTpM7HIjKwVnRAA=; b=r5IkUkC3E0B5wxKvX/eLRXZ90encQLj99rUvq6vniPuVAlqP0b4rmL0YrZ8bT4V89K 5Hlc5kVRVBrl7doNKRi6IYOXRIFOOzovWXNPcEP8hOGUzDA9dIQ5xUJMd9tBKaXhXrUb 8sHuLVbspwP+L/u5wS9Hw5BIv400Gd5v/dpxL1SJb3/sf5MoSWPFRDI8b3Awrresb4Sk iEaaLpmzhF6eLCagPQYHCdDmh6PxUPBZBUQaWBEFLlTFyuWPeA8MZWJg0i1zR0+xl5lw UtSVVDfia8m9fKVDAqsZhIJupnOTrRIfyDaAVA8UIUdCA4K6LyQTZTq0219gJHLX1puA /fnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="OJ/93vM+"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s42si11345804edm.292.2019.09.10.11.49.49; Tue, 10 Sep 2019 11:50:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="OJ/93vM+"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404313AbfIJHqM (ORCPT + 99 others); Tue, 10 Sep 2019 03:46:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:48734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730178AbfIJHqM (ORCPT ); Tue, 10 Sep 2019 03:46:12 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 543572084D; Tue, 10 Sep 2019 07:46:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568101571; bh=qCKK+ZwRK74U3hEJqtiKQ6iZ3hduhTpM7HIjKwVnRAA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OJ/93vM+ibiNNsFQ20UdNU0QlCSEGDrjjQUbJ+KkjzfSHA6Sw7uz7zsxA7NhROsPX ybDjrsp1raImjF8GF4aAGP6SeLOPIroLeB9b8PSJnrgVKb4Q3KJCFtu51yrav9/eLc I90k87aOmYsFr5tqlILmZ+H6GnfXYceZi+3Q0oNA= Date: Tue, 10 Sep 2019 08:46:07 +0100 From: Will Deacon To: Arnd Bergmann Cc: Catalin Marinas , Andrew Murray , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] arm64: fix unreachable code issue with cmpxchg Message-ID: <20190910074606.45k5m2pkztlpj4nj@willie-the-truck> References: <20190909202153.144970-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190909202153.144970-1-arnd@arndb.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 09, 2019 at 10:21:35PM +0200, Arnd Bergmann wrote: > On arm64 build with clang, sometimes the __cmpxchg_mb is not inlined > when CONFIG_OPTIMIZE_INLINING is set. Hmm. Given that CONFIG_OPTIMIZE_INLINING has also been shown to break assignment of local 'register' variables on GCC, perhaps we should just disable that option for arm64 (at least) since we don't have any toolchains that seem to like it very much! I'd certainly prefer that over playing whack-a-mole with __always_inline. Will