Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2557634imu; Thu, 29 Nov 2018 06:52:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/V6n1T4uFkrzhom+WkNsMBxDePx+OGr+UqGHzB1O6fjOVBSi7yJ4LR+OJNDlVI1eTvXLHFh X-Received: by 2002:a65:4683:: with SMTP id h3mr1417574pgr.225.1543503167255; Thu, 29 Nov 2018 06:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543503167; cv=none; d=google.com; s=arc-20160816; b=xGzgQUp95IBTsyOCBjmQPjB7Ojiv4cxqMRSe0B2U1dxUIUHp0rin2HDPJt18lEYnQ9 k1h9oLOC4IxRbcOj9ibxnfpFpMIcihx7GdzOoM78rDsF87dbvfpsiAsNfXlElDLLECwn mHvpD+f1HkouSax8Yrt44aoHbXpc687IwvFDay+nz5PNrMEXsSHkCbX0bp9AxbOC9X0K uhTzL2pUas8i+e2c+aJLHk6M/oz1zpYxiuwqgmHVz5BkUM0Mq68FwsnNm8+YThbXDYVc gKdjC54JAT8rm+3N7odZwyI0WzRyc1BEwLb/Z5PIE/WlSl6RZPbTuN9chvKo+4nWeRsN UOTg== 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=p6wPyGqPWauCKkVqBMqmN10sZVykvMnsghwFi+1MK2M=; b=XcAxRRa9FmsLwdoMc+uZBvEAhYQ7nv9N39MeMqyythzGkL/m5I4xBGRxts8s0ukxZk 4RW+W/c7C5spGptTI8jwYcFvoq1zD9CeWTYH3/q+JVbIym6qKZbRvkxtJ85PZCI6BTXL r7iEDrwwsYNndQhzC7vo9Snd6Io/oU5v4S5oQj17OlRsKtOlhEiODTrbErLGuuTrQYmr SD92j3E3RmM88BLLqBa54YUSLg/HnnEk1dX2A8sY2lyPzj/R/VHwU1xApk9luPBROha/ cNpmgr/nkzEIW/SCFiN0y8MQnaxyYXy0kNGGND83DCXvv/Z+F8gauU7rV3OB1+NEcK8k LXWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JeVJv8Ej; 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 1si2287821plk.296.2018.11.29.06.52.26; Thu, 29 Nov 2018 06:52:47 -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=JeVJv8Ej; 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 S1732686AbeK3BaG (ORCPT + 99 others); Thu, 29 Nov 2018 20:30:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:56900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732673AbeK3BaE (ORCPT ); Thu, 29 Nov 2018 20:30:04 -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 1649421104; Thu, 29 Nov 2018 14:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501472; bh=QdKTGZ9sQ88S2TgQMmqHOIdRRsti9zYTkDyryLQCWtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JeVJv8EjQprd886VnSndQOVgcx0uKTATEI7lXE8P01TtV1YMbAOmbuq7SF+pJS8Qf +MQDsAVhWuqPkUw6k+rJUDNc8q9Q6MYxUOMaS2/T3P3KTmA3MoZ4+GE+k1f9yfWo2L 0Oc4WRAK9mNW4Q3MGjzT5qbferzqHC5khbb7qBVQ= 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.14 004/100] bus: arm-cci: remove unnecessary unreachable() Date: Thu, 29 Nov 2018 15:11:34 +0100 Message-Id: <20181129140059.232917305@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.14-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(); } /**