Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4052094imm; Mon, 14 May 2018 01:42:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZok/Ry8g4kj2pYXFRmUy7X7wdljrmJKAcxmxF56mPoxYUe7ATa5q3KVt5t3FZnZ+1vqd6SM X-Received: by 2002:a17:902:7c0e:: with SMTP id x14-v6mr5996821pll.389.1526287335104; Mon, 14 May 2018 01:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526287335; cv=none; d=google.com; s=arc-20160816; b=wyzRGqBoc92eqhK+0ABISfyizNI1gqCrC70faJeQdbBoqvQ8fXIIFHzzFYoKDDTeIU ioA81GcMC7I6cwYjK1Bxi8yYOOV58hj9MAxPHFjVb8nBssE9i04mcKJkQK49rRDQxCEE irh615YIzNj9lYngyErA5Czw0Xgmn9NnmRTbFek7EHkesU0xjLEaEdVZ0MboHz7awQAz m/46QTzVD8wOWpxJ3uFOMm1dHelnlS8/CnECjmDk9wZrtVBJMszm0BaxLQg/CDq+ZO/4 zsPqxbTruU8dvi9FAjAoSx3QresLEV6hOGkViQXtLboxAt++KN9Y6aAp+XEWuWmlCyFz HjHA== 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:arc-authentication-results; bh=9ilXP5SehTlVXnVvYnSG1jKFO4BB1zUnxMIhZLqq+nA=; b=zYV77u+qYJyuMYQhKCNEJLRL8fjP274nE4FMxOd8bfeHAmHbUixS9urEWFUSsufytl zezP1zNEbwxY9aPkVXV2ys/DvOkYA8+luARJTFPq9Mc9eMqGzS4YsKkJ5YFIjivIgi19 2CYrWVvRb2IfErkqJwPEekFCowp0cJbgUkv91vqWZjbe727EKFRHQ8KaqTJRQCnJSUiQ sPA1RFIFXxriF6dEOGGX7j51gJq5cMTydGwfyO11/rmDp3RdxM9aZFBSC6VPbJGIuMRg WnoR6InjkMnMO1R77hzje8fD8q8rYmiBn4YbVQrcEr4ip7sGglCeaA2kbfdW3Ra/08tw l7JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=X0PYFVET; 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 b63-v6si3794017plb.566.2018.05.14.01.41.59; Mon, 14 May 2018 01:42:15 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=X0PYFVET; 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 S1752493AbeENIkJ (ORCPT + 99 others); Mon, 14 May 2018 04:40:09 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:40312 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbeENIkH (ORCPT ); Mon, 14 May 2018 04:40:07 -0400 Received: by mail-lf0-f65.google.com with SMTP id p85-v6so16681048lfg.7 for ; Mon, 14 May 2018 01:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9ilXP5SehTlVXnVvYnSG1jKFO4BB1zUnxMIhZLqq+nA=; b=X0PYFVETN4t6o+vO2WU7SOL4LUnG9EfjRUrccIg+TxN9Ztq2+qaun7xBeRQr8Y5Im9 hMCuIwf5DY/GakdEDSrfp261Nu9RgPgE6kAuQr6zRdA/VUiwCuDuPTs3HGB4kDHaRT9P p33DdxlaN7yBm8JScgYi1N/YdBbvpw0k7NcEn8zJeQgtT2CqWIUaA4KfT9Nd83Pu+E6X Zmvhq+AX9TrSTkQKNt4K7gGhmd0whI65MPQsvhXbp+hkPX7yhgyuop2CgvQrB7HFjvom fUEa5oVc/ad+jrZgbBj39WHFmqFKrgVuqg0RiDK0i7J4X1235G5HPiHqEQCvEahLuapL cxng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9ilXP5SehTlVXnVvYnSG1jKFO4BB1zUnxMIhZLqq+nA=; b=ThYlmmieRUpX2uxuOcXPL220qOFPlAhOI12tNWuuLxUEIR9XXMcv62ZW0EpqzxvUPh U5AgaFLp8P69HQzkDt61bkSmIq+ckzO3ciaQhhgsmUkJZEoFDadBAnpdnbZbKCCFET4N cGSoZ6GaRyQyATwN9uLB8JVDtfZ2vVBjBtx1Uu6S9T2DDQT/Vgc+/PvyjYEVQdsFOLbS Lq1Z7oZmuMRiHzM2+ZL/FXiFuM//IRel5BL19Wccs+fM8LPpEwfjdfoKHr1M1VeqEsWB 1KNhsxszf4ReDmc5x8E4ju3B0d0rjsJlLhmxf15QAMM0VBXNzny8nUPG1zAgiwB3qhDW lZvQ== X-Gm-Message-State: ALKqPwdwsazm/oFROidKS5T31FCQHNBWpQfw+N9SgoRf5k7lalIrUPxM pEKgmZbqpgPZrTvi32CBUJT6tw== X-Received: by 2002:a2e:6808:: with SMTP id c8-v6mr3859546lja.109.1526287206470; Mon, 14 May 2018 01:40:06 -0700 (PDT) Received: from localhost (h85-30-9-151.cust.se.alltele.net. [85.30.9.151]) by smtp.gmail.com with ESMTPSA id i130-v6sm1558403lfi.3.2018.05.14.01.40.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 01:40:05 -0700 (PDT) Date: Mon, 14 May 2018 01:23:03 -0700 From: Olof Johansson To: Stefan Agner Cc: arm@kernel.org, arnd@arndb.de, 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 Subject: Re: [PATCH v3] bus: arm-cci: remove unnecessary unreachable() Message-ID: <20180514082303.abk3rnj45i4i2bqn@localhost> References: <20180508142726.11646-1-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508142726.11646-1-stefan@agner.ch> 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 Tue, May 08, 2018 at 04:27:26PM +0200, Stefan Agner wrote: > 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 > --- > Changes in v3: > - Fix subject and enhance commit message > Changes in v2: > - Don't add assembly ASM_UNREACHABLE, just drop unreachable() Applied to next/drivers for v4.18 merge window now. Thanks! -Olof