From patchwork Wed Apr 4 12:30:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132814 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp5002095ljb; Wed, 4 Apr 2018 05:31:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/p9bGtDW0wJ7YzIg4ifvhQVG8zTcIyVM53AxGxxx9xr8TizK5RRWvQHryRhEOShNxf4Y0V X-Received: by 10.98.211.4 with SMTP id q4mr13997764pfg.0.1522845101724; Wed, 04 Apr 2018 05:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522845101; cv=none; d=google.com; s=arc-20160816; b=BPz6vhViPORPDT2GvHFvwI2W87PmfzyrRnQ4HMZ68W4TojFv0aMnrmEGIO5IroA7DD kGrOvHz/wYnx8MOvaT4GnqM1jc+Gm+An+rKqeYAZ95+QLLr50Lo0Jloz6W7hVA8M5CI8 KUBIuPTKa2NFHq03AEDrqdtthu5KRuz2xCP8cKV6LztGoP3QNqUj6Qg1XAW1zcWWDFKM DJ3bt+t5jIYXt3Vq8EfgUglIusBb4OXLRZZK+6hJ0mEn5tUcsIR9oLjKkWoXGgVtFNGB iYFBcH1Azdca058wYruJOJWc17Dp4/smBKmjiafcpqkAHxHgqJCb+/tQvETK/d+2nMjz KR5g== 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 :arc-authentication-results; bh=zOu6tnSNyDzgGO2Z3DYEkOJscdK+PINSKX0NJk6neVA=; b=fUjyKRHbONoTNVr0ckQQ1BSUMKNZZfKhKPpyiGUfx7CxIZE7ZAHM33sRnOhkVM1ewy 20/iRheHwbhr7hw7NVDnAHtnjGArkHbnrDyShE7nv40is8MNHxl0WJmpBXhzhBspQoCc RCiQe4KVV+T969zHywP2MlQSlFOarM7kXTw56hm2wRdonm5gVOl0hWUJ27TgiTwNbgpZ 7q9a7YR3FCQcvcgwBN/eu/FSSreYsE35QEgc/WSENdHNA/NSkigKX00wrv4q5jfJngc5 bhDXYf2yEGfeErC7ww4+URuCCN/2RL6KvxKsaRIYUTnw81QQrTqEImBYO0TVxzzmoHlz Oxzw== ARC-Authentication-Results: i=1; mx.google.com; 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 l91-v6si3039994plb.301.2018.04.04.05.31.41; Wed, 04 Apr 2018 05:31:41 -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; 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 S1751307AbeDDMbi (ORCPT + 29 others); Wed, 4 Apr 2018 08:31:38 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:48231 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915AbeDDMbh (ORCPT ); Wed, 4 Apr 2018 08:31:37 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MTbSJ-1euaeH2GkJ-00SQlQ; Wed, 04 Apr 2018 14:31:18 +0200 From: Arnd Bergmann To: Russell King , Jinbum Park Cc: Arnd Bergmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: decompressor: mark error() as __noreturn Date: Wed, 4 Apr 2018 14:30:50 +0200 Message-Id: <20180404123117.3575773-1-arnd@ar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NHSnFfDhmfQ1zIo5A== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gcc complains about fortify_panic() possibly returning: arch/arm/boot/compressed/misc.c: In function 'fortify_panic': arch/arm/boot/compressed/misc.c:167:1: error: 'noreturn' function does return [-Werror] This annotates the error() function as __noreturn, which lets gcc see in all configurations that it fortify_panic() cannot return either. Fixes: ee333554fed5 ("ARM: 8749/1: Kconfig: Add ARCH_HAS_FORTIFY_SOURCE") Signed-off-by: Arnd Bergmann --- arch/arm/boot/compressed/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 Acked-by: Kees Cook Acked-by: Arnd Bergmann diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c index 009db7d275f8..313a587d656b 100644 --- a/arch/arm/boot/compressed/misc.c +++ b/arch/arm/boot/compressed/misc.c @@ -24,7 +24,7 @@ unsigned int __machine_arch_type; #include static void putstr(const char *ptr); -extern void error(char *x); +extern void error(char *x) __noreturn; #include CONFIG_UNCOMPRESS_INCLUDE