Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8110290imu; Tue, 4 Dec 2018 03:10:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/VNa+IxqZVKhF5EzDmfBfpo+Rz5pFf/PPF5gZVffnoW8Lcl9MUWLfqnLlu0UVU3tpf1h0n+ X-Received: by 2002:a63:a84a:: with SMTP id i10mr16639272pgp.263.1543921834506; Tue, 04 Dec 2018 03:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543921834; cv=none; d=google.com; s=arc-20160816; b=OI/QFR2VOUQuxNO8BUHxOnlggKm9mC6g1twa/MSosB9zswh+5lkX1oX4E9XiyC4sAJ Os4FiAHKmo75PL93r11E7l66R0Q4DVB7lwwQqhVVdvbVMfy4MooKnFB3+9mTVdt8fsQh U5qICMyM0J/HC6OrAAuN2b49uU9m+wxVq42pnv7Awqog7oVp+dxigCn3RosrPFgZFIbl szWjfuNOfT2y1hsiUqdC0Q//xbXjQzqcjXHQubz9hFemz3mGgr0SUZXAO2V0MSC8doD+ FFc6+Pgs7Z+xSSa9P2NYeAfLPmSTk5G1KzYrEz2/CW9cr98u7dUCrfT5CttD1JVBkZlR MCQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=P/THwJ2ILaWbVHXY4e+uJznHSUOXqVJN52OS40zcOFw=; b=eN9B+07U5tLn+NC7RSoaQs/6E73X8S0wVdklkN32/Vay4i2uohlgYylwXS+x/k5NsF 2CGlbwHDqgsEbXSSA8p7MFwQRsoi62xzXrOd9+Y4wkyvmyic2rd6diK2jJtQ84FKWcrr sXlHETBaQL8gjenb7rTGu6fftjk3RCNH85kSUP8zcqrRTrMAp9JIeJc/cqw5SIxzHF++ 3631CYx3pMQvNk6doLh4zQ4MjL1Ts56d1kN2UnO4FynPJtTxPC4CxLsijYW2zQyw7JTV Lk5m2xfOVqvmnScYi4GhmutJVqv9K2TsUvmXpvEnSy4wrnuxYwMGjpdNk3XAd4U2309O hBaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R6YiXuir; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c37si14561022pgm.156.2018.12.04.03.10.19; Tue, 04 Dec 2018 03:10:34 -0800 (PST) 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=R6YiXuir; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728850AbeLDLJo (ORCPT + 99 others); Tue, 4 Dec 2018 06:09:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:59572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728835AbeLDLJl (ORCPT ); Tue, 4 Dec 2018 06:09:41 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 C9A912082D; Tue, 4 Dec 2018 11:09:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921780; bh=SZiG8kRPCkxLpfAUogqf+yt0SzaU6e2QwiQIBkYwfE4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R6YiXuirclfPTmb1BNOSBalgQscz1AQwguAxs5XSNjrQBMd3827KnFyD8MQZpxhQ5 EOcIakp841uSbFp9giRROLQjVjDEeSWbVeuoXlaVYll/rtS1omCIfR1pIqwpjqAjX9 Xhvl+XxQSvc5DgQ2B41RpJAW45BGtCYcSdZD1WSI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Stefan Agner , Nicolas Pitre , Robin Murphy , Olof Johansson , Nick Desaulniers Subject: [PATCH 4.9 46/50] bus: arm-cci: remove unnecessary unreachable() Date: Tue, 4 Dec 2018 11:50:41 +0100 Message-Id: <20181204103716.788764938@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103714.485546262@linuxfoundation.org> References: <20181204103714.485546262@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Agner (commit 10d8713429d345867fc8998d6193b233c0cab28c upstream) Mixing asm and C code is not recommended in a naked function by gcc and leads to an error when using clang: drivers/bus/arm-cci.c:2107:2: error: non-ASM statement in naked function is not supported unreachable(); ^ While the function is marked __naked it actually properly return in asm. There is no need for the unreachable() call. GCC 7.2 generates identical object files before and after, other than (for obvious reasons) the line numbers generated by WANT_WARN_ON_SLOWPATH for all the WARN()s appearing later in the file. Suggested-by: Russell King Signed-off-by: Stefan Agner Acked-by: Nicolas Pitre Reviewed-by: Robin Murphy Signed-off-by: Olof Johansson Signed-off-by: Nick Desaulniers Signed-off-by: Greg Kroah-Hartman --- drivers/bus/arm-cci.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -2103,8 +2103,6 @@ asmlinkage void __naked cci_enable_port_ [sizeof_struct_cpu_port] "i" (sizeof(struct cpu_port)), [sizeof_struct_ace_port] "i" (sizeof(struct cci_ace_port)), [offsetof_port_phys] "i" (offsetof(struct cci_ace_port, phys)) ); - - unreachable(); } /**