Received: by 10.223.185.116 with SMTP id b49csp3984501wrg; Mon, 26 Feb 2018 09:13:43 -0800 (PST) X-Google-Smtp-Source: AH8x226S8lKDbbCD1fpwKisohogs4QAc0yks2eKKEsevu6Y9UETt4y/WzcVdnUuLJ8nkzoXwZB/a X-Received: by 10.101.73.77 with SMTP id q13mr8847712pgs.336.1519665223869; Mon, 26 Feb 2018 09:13:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519665223; cv=none; d=google.com; s=arc-20160816; b=Go2Qb76fSfIMhpwXK+v6WRBbN/2Y/+EPX93ZYNF4MPW0qNoHabbjf9GSG6OQzVXs7I xFA5f6JKj5KX1HP/obET5J7CNogm1809FNdR8jRuNy8krvwbpagfeKaGM4O2xmIH+OS1 Tp+GbbHvjorYyjAz7GJG7m99RkYsRwTkOrIHup7Wdn50qKTZiaDMWuKcvy9wmYCXiFEl WsHgA6NBe2g+xWQLYfA1O3q+p/HoOerf9uSiUoQKVWw76giHNpror2uWycrtj+VFgX5i jA8stTQ0mA6TqGVFfz2B7ZmS826Au3YRU2fWnEIfeSYKmq3vvv7pjGwmpKTVr18VaZyL KkwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=qPK1+gL+MoobCTsl4CpDGhdV0iuG3phJypMf9ssvWQc=; b=RDn4N4+alVbxaYydVsol8WfnY9uHRmEJJJaPco9PBeorNFNk3kFAWlusnyQkIL1B5r AEaTYNTVHB9QfFAEGa/W4eiaFkN1d3Wt0fZHGUyvjHyoL7a27eJE/iNFDYZYeYyshe1K t3AH9vBRXmLoPjs9HB61Co7CR+8hLzCDD+BdkAnaRazki9qxdhPREphhSLlcKWYr//Tr PCFNUEUMrS2mt3TJF7et64d/S4ANWeU60y8vkCModbce/1t34iMnWv1fUSv4wUBemaNu gmcGTS4NNWCjyJnTnw72WUnth+Noo9jt93VSXxBpkkI8rPoax3OndnbVHQa2k0wcORUN vW5Q== 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 m62si5723649pga.507.2018.02.26.09.13.27; Mon, 26 Feb 2018 09:13:43 -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 S1751676AbeBZRMG (ORCPT + 99 others); Mon, 26 Feb 2018 12:12:06 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.154.211]:45426 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505AbeBZRMF (ORCPT ); Mon, 26 Feb 2018 12:12:05 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1401.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Mon, 26 Feb 2018 17:10:45 +0000 Received: from mredfearn-linux.mipstec.com (192.168.155.41) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 26 Feb 2018 09:03:07 -0800 From: Matt Redfearn To: James Hogan , Ralf Baechle CC: , Paul Burton , "Matt Redfearn" , Subject: [PATCH 4/4] MIPS: VDSO: Replace __mips_isa_rev with MIPS_ISA_REV Date: Mon, 26 Feb 2018 17:02:45 +0000 Message-ID: <1519664565-10955-5-git-send-email-matt.redfearn@mips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519664565-10955-1-git-send-email-matt.redfearn@mips.com> References: <1519664565-10955-1-git-send-email-matt.redfearn@mips.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.155.41] X-BESS-ID: 1519665043-321457-2236-2367-4 X-BESS-VER: 2018.2-r1802232356 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.190443 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the need to check that __mips_isa_rev is defined by using the newly added MIPS_ISA_REV. Signed-off-by: Matt Redfearn --- arch/mips/vdso/elf.S | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/mips/vdso/elf.S b/arch/mips/vdso/elf.S index be37bbb1f061..428a1917afc6 100644 --- a/arch/mips/vdso/elf.S +++ b/arch/mips/vdso/elf.S @@ -10,6 +10,8 @@ #include "vdso.h" +#include + #include #include @@ -40,11 +42,7 @@ __mips_abiflags: .byte __mips /* isa_level */ /* isa_rev */ -#ifdef __mips_isa_rev - .byte __mips_isa_rev -#else - .byte 0 -#endif + .byte MIPS_ISA_REV /* gpr_size */ #ifdef __mips64 @@ -54,7 +52,7 @@ __mips_abiflags: #endif /* cpr1_size */ -#if (defined(__mips_isa_rev) && __mips_isa_rev >= 6) || defined(__mips64) +#if (MIPS_ISA_REV >= 6) || defined(__mips64) .byte 2 /* AFL_REG_64 */ #else .byte 1 /* AFL_REG_32 */ -- 2.7.4