Received: by 10.192.165.148 with SMTP id m20csp4187236imm; Tue, 8 May 2018 04:34:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoo8G9XrfXQzfuV5U6VTVohiPgs7iOfH+nbWqjsIfm99rcoYtAUnrNNiZVowrjMPicc51iL X-Received: by 2002:a17:902:8a81:: with SMTP id p1-v6mr18493607plo.33.1525779278565; Tue, 08 May 2018 04:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525779278; cv=none; d=google.com; s=arc-20160816; b=dmEdtCBa1mqwTj3pkvnSzJzkI+vgj7ZDvSJv4KUAvh467mSpp8Ugo98F5NRy87aCL+ Yo+Ov0xuGS99orl9Ac7Zjqr9TxRWzkLRnu/V9Inn2Mm0upc3jQ7De71N2MyfjSwrQXV8 d17Z/OLCWr0lv9PvoPvJ4ZuEkNnR5D6CpPyhNB92kuQE90q/rgDCAKmvn97EPIrFONF9 1tf5iTR0FRmjFEc0KfYsMxbQFGMWYicXyWnoZadprJSYukfdAdylDI0zpJrLE7+jzCWN nUKjn9mDv/MONoSgamt11LEPqyA1YSMUv8uddr83XaknNFz5rQVdqvJ4I5iZWNHtZLHw evMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=PZjr69NfkK7naDLPZWbEBV3ygxwCgFhbJp3tF8JTXR4=; b=ajqHuV7SyyQLg5sAh0ZsoO0blnsQMnVDGiyl5BPuMR22RS+lKiWGMepL8XJtzCbBZ3 2DVtnWwMsjEWkqc+Ue4ajxy/COEavS6GxavXdurjgSMbYlxVTTGeFsd1g3Be/zNG/bRj zVe/ez9oSd8hY7pvvx3X5sDH1UEL7lAJAFpdAyhwZHMKT5uwek0fE5lcuk6vbi0BtL5S zCR9Htq0Nru9PvW/HU5jbLxmwYWrX74L4zshXxU6uUE9tBF607Ueinu+DdULPgPwaDvp PXhUG8y+rhGFUn+tr9rVceGj9i0NlhJn85dZMHYDdB/NKImpaYL7BTG2jcpkWRm+gkea fPSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=DPWv2mYC; 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 a7-v6si6745184pla.271.2018.05.08.04.34.24; Tue, 08 May 2018 04:34:38 -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=@agner.ch header.s=dkim header.b=DPWv2mYC; 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 S932193AbeEHLcS (ORCPT + 99 others); Tue, 8 May 2018 07:32:18 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:41022 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754490AbeEHLcQ (ORCPT ); Tue, 8 May 2018 07:32:16 -0400 Received: from trochilidae.toradex.int (unknown [217.192.152.178]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E6FE25C0B22; Tue, 8 May 2018 13:32:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1525779135; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:references; bh=PZjr69NfkK7naDLPZWbEBV3ygxwCgFhbJp3tF8JTXR4=; b=DPWv2mYC1Ds1xJCdsUchal9p4SJLR7Q4okO8QUImZx8Mt7TN+EXE4pckDHH4e51/sgCZRd VVYqIKfe/hqedGaHvrei/t+q8wGSwVUs42bNRtN9APSjGnz/ukUSeFUkynaittZt/K8fta 7NF6/jDsfnaQ0WyaSh7bo16ZT6vleUg= From: Stefan Agner To: arm@kernel.org, arnd@arndb.de Cc: linux@armlinux.org.uk, ard.biesheuvel@linaro.org, robin.murphy@arm.com, nicolas.pitre@linaro.org, marc.zyngier@arm.com, behanw@converseincode.com, keescook@chromium.org, Bernhard.Rosenkranzer@linaro.org, mka@chromium.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [RESEND PATCH v2] bus: arm-cci: use asm unreachable Date: Tue, 8 May 2018 13:32:11 +0200 Message-Id: <20180508113211.7026-1-stefan@agner.ch> X-Mailer: git-send-email 2.17.0 X-Spamd-Result: default: False [-2.10 / 15.00]; ASN(0.00)[asn:3303, ipnet:217.192.0.0/15, country:CH]; ARC_NA(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_TWELVE(0.00)[14]; DKIM_SIGNED(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_COUNT_ZERO(0.00)[0]; BAYES_HAM(-3.00)[100.00%]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Suggested-by: Russell King Signed-off-by: Stefan Agner Acked-by: Nicolas Pitre --- drivers/bus/arm-cci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index 443e4c3fd357..b8184a903583 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -371,8 +371,6 @@ asmlinkage void __naked cci_enable_port_for_self(void) [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(); } /** -- 2.17.0