From patchwork Wed Jan 24 21:04:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 125715 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp666451ljf; Wed, 24 Jan 2018 13:04:54 -0800 (PST) X-Google-Smtp-Source: AH8x2253AC4aFMT1d6e5IKmlriYpTlSqfHfthYsnsWb/wmxsqnSo8ewU4vobAm3TTfJ0bYLlnYjp X-Received: by 10.101.97.12 with SMTP id z12mr11105074pgu.92.1516827893926; Wed, 24 Jan 2018 13:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516827893; cv=none; d=google.com; s=arc-20160816; b=k0f98V0uG2CWr9whUH2C7rnwaTK3Dt/Olk8QtQ1lIGVrHuFdhiO9g9P2/i1ZgyYIiJ v15EvTlDKMZCYpe35BXtA5cuGBRSZI7pgGt9LOCQnHJDnP2iz3AykmYK75hwZcyF5suY WinssOFbfrWIPHOKVUkug/1fvp24zCOQofLYglqQvXjwcYNpIu1qAOxVwEm8z08Jh5fS BlZ98Y2nmkJeRALBZRK72exhiZI2lByjFn2hF7DbVztlJ74Z8/pmZGjsy7HjfZdztlP9 D2+MMGXMxB98g8hyoBwW5t37wW1Y/KBgvZEZVywRJOYmTLMov8bkFXxArRhAEdCZoWzZ FBCw== 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=G8m37JS1ltl6z8zOAyKj7qRftsvMd/uefbzTv/bqLiE=; b=ao44CkGhKLQxm7BPPSO5SMV1thCFS+mDI8MiJFPoRPjx/VMK9Y9fyernmIPtgoEbp1 RX5nl2IAomT4WvipnmxHZr4oeB0kqGGJziOXGL05lk0XuaJLtwxyDgAbLpyYplBCZCPN sAc2xEYp8y0SCnEL6TxzDId/US+rFq6n8Fx2pyoQroLKOJlCeSqK4f20uXgYWErw4zfS fIqsVB9Bt+o7GweLPVkEVi6iovOovRN5fFfcFrBuc/o6Mn0S3OeAzU2FrbRGLLs6F0l/ dncgZQRipfkBT4TLhoJTMWZAP7yLIFH6kgaCCf53r2MRO9udoCwsoxaep6SL+CbK16wu ucKQ== 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 64si581578pgd.45.2018.01.24.13.04.53; Wed, 24 Jan 2018 13:04:53 -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; 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 S932634AbeAXVEv (ORCPT + 28 others); Wed, 24 Jan 2018 16:04:51 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:61809 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932364AbeAXVEu (ORCPT ); Wed, 24 Jan 2018 16:04:50 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0LehOU-1f8WFL02e6-00qOf7; Wed, 24 Jan 2018 22:04:25 +0100 From: Arnd Bergmann To: Russell King Cc: Ard Biesheuvel , Arnd Bergmann , Masami Hiramatsu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: kprobes: fix gcc-7 build warning Date: Wed, 24 Jan 2018 22:04:06 +0100 Message-Id: <20180124210421.104618-1-arnd@arndb.de> X-Mail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TLdeNPNAQG61b7Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recent versions of binutils always warn about test-arm.s: arch/arm/probes/kprobes/test-arm.s:18262: Warning: using r15 results in unpredictable behaviour arch/arm/probes/kprobes/test-arm.s:18337: Warning: using r15 results in unpredictable behaviour We could work around this using the __inst_arm() macro for passing the two instruction as a hexadecimal literal number, but as Ard pointed out, there is no reason to leave the warnings enabled for this file in general, we intentionally test for an instruction that is not recommended to be used. For consistency, this turns off the warning in both the ARM and Thumb2 versions of this file. Suggested-by: Ard Biesheuvel Cc: Masami Hiramatsu Signed-off-by: Arnd Bergmann --- arch/arm/probes/kprobes/Makefile | 4 ++++ 1 file changed, 4 insertions(+) -- 2.9.0 diff --git a/arch/arm/probes/kprobes/Makefile b/arch/arm/probes/kprobes/Makefile index 14db56f49f0a..6432578fc74b 100644 --- a/arch/arm/probes/kprobes/Makefile +++ b/arch/arm/probes/kprobes/Makefile @@ -11,3 +11,7 @@ obj-$(CONFIG_KPROBES) += actions-arm.o checkers-arm.o obj-$(CONFIG_OPTPROBES) += opt-arm.o test-kprobes-objs += test-arm.o endif + +# don't warn about intentionally bogus instructions +CFLAGS_test-arm.o += -Wa,--no-warn +CFLAGS_test-thumb.o += -Wa,--no-warn