Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4237216imj; Tue, 12 Feb 2019 12:12:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IY3CFi3kZybh+nrGHGCn2T6/oZP8vB7gvUObBmc53nhydIph/HKM5V1QuDBVXe1xHhBGjB3 X-Received: by 2002:a17:902:b83:: with SMTP id 3mr5539703plr.42.1550002356063; Tue, 12 Feb 2019 12:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550002356; cv=none; d=google.com; s=arc-20160816; b=hJKqOBVYNu5tkfMXgDPC3eeHgcyYyP5jH1HEJPx0Lz7h0lUdOj+0TspqOYK115FYyI Y3fKhBlMuQHIR6RT9jVrHYxvaUanMtzNN2PbP6xg3GHmQ68bY4GH12hmxEbGqyhfmSV1 k69bTZ+Nq9oA4ZJlNtd8NxBY/MZ0P9DeQf5ZXT6wHolnYRFYTP/JdYVRPlE/SDw++GtC Xg+tU/OVZPWUzQniuca+0v7Y/brwOsR/r8EyNJ1AxpeJaV9lhm5CJu3GSORt0AOP6zc3 7GzToIw0Z/wifYKn5yKMTF5NhtZo26PA//m//4/Iep5cSwGJQsnwlBrTooixSuKaBo9o XEpg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0PDJlT11jb85GGKJHyPtJki8m65dii11XEoaId/97eQ=; b=goZKyi6THu/ut4/U6hn8xUXsmhaEejPMnS3A2XLc5+p+MDOgGSXQSqbRPVrkSOPw9z jCuH6MSBWBJpjpdAifZ4kNe5F8uSNafja4Iq/SLTmyX9VPLtl2GomO/e7vmbGJHiqLXf sH6XgT27d8dARfhIf8zxHHj1J+Ci/IsCaRNJBm5JBl52el572YL3K7MxiHvZfrgMZNLd DAgYH7iEZYCeOKSDAMysXQt4AaRWDKlWN7/bR4mvZGQinXZCoN9a2d1poo2gmaTkHs2n ZUUmOq7wzyp6v2ZlAUR5Qn6egxR49eN4gYM1uEDsLyL9jamr1+TGOA64pjaA64sM/HA6 2NEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=gT6iLXdo; 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 d8si13217246pgh.505.2019.02.12.12.12.17; Tue, 12 Feb 2019 12:12:36 -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=@agner.ch header.s=dkim header.b=gT6iLXdo; 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 S1731641AbfBLUCR (ORCPT + 99 others); Tue, 12 Feb 2019 15:02:17 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:43834 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731104AbfBLUCB (ORCPT ); Tue, 12 Feb 2019 15:02:01 -0500 Received: from zyt.lan (unknown [IPv6:2a02:169:34b6::564]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 197985C0E6D; Tue, 12 Feb 2019 21:01:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1550001718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0PDJlT11jb85GGKJHyPtJki8m65dii11XEoaId/97eQ=; b=gT6iLXdo1z0oce1QJuhyBajiKHaYASrK4Y/BW8qNzmd0JlFNh/1TCkVFkXHMMgIRGea2yd UvqnvtvjOW23hxHmkmow97YRQNpN3sHWwZWgc/kwwNsVAzrLY3Rrux2Ay5l2QRL+8CvCQu 2ozbN4Tdc1WhmmeTty6gA/Q9mLic0nE= From: Stefan Agner To: linux@armlinux.org.uk Cc: ndesaulniers@google.com, natechancellor@gmail.com, arnd@arndb.de, ard.biesheuvel@linaro.org, nicolas.pitre@linaro.org, thierry.reding@gmail.com, will.deacon@arm.com, julien.thierry@arm.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Agner , Nicolas Pitre Subject: [PATCH v3 5/5] ARM: warn if divided syntax assembler is used Date: Tue, 12 Feb 2019 21:02:01 +0100 Message-Id: <447621a6c829e37d30f589653fe4a0ade36ac52a.1550001435.git.stefan@agner.ch> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the -mno-warn-deprecated assembler flag to make sure the GNU assembler warns in case non-unified syntax is used. Signed-off-by: Stefan Agner Acked-by: Nicolas Pitre Reviewed-by: Nick Desaulniers --- Changes in v2: - Remove AFLAGS_NOWARN from CFLAGS_ISA arch/arm/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index a0d08a3c9d33..9561325c5201 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -112,19 +112,16 @@ ifeq ($(CONFIG_ARM_UNWIND),y) CFLAGS_ABI +=-funwind-tables endif -# Accept old syntax despite ".syntax unified" -AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) - ifeq ($(CONFIG_THUMB2_KERNEL),y) AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it) -CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) +CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb # Work around buggy relocation from gas if requested: ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls endif else -CFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN) +CFLAGS_ISA :=$(call cc-option,-marm,) AFLAGS_ISA :=$(CFLAGS_ISA) endif -- 2.20.1