Received: by 10.223.185.116 with SMTP id b49csp3979421wrg; Mon, 26 Feb 2018 09:09:21 -0800 (PST) X-Google-Smtp-Source: AH8x227DltkQ/phazwsnt66NV8RV5lkDv8pke9UShnfCW0LpqOhKpvoyxIe5jl++VgItA1yzA3Db X-Received: by 10.99.110.133 with SMTP id j127mr9040245pgc.79.1519664960949; Mon, 26 Feb 2018 09:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519664960; cv=none; d=google.com; s=arc-20160816; b=QbxvMq5Bz7AdDGLJx44aUjWJTsTpBS7pE7yPbXx9AbHEeLo6p2QktWAaRYfCKxd9j2 2y7PHtav67JHhw99HeZPfvRirka9RDRmACda6ET0lnNbmB48zkS0hFpGv4naZXBR8FwP NT3VkdydsSd/Zcffyw2yfocJtZ1ou50T+TzgomZZT0OJ5+FdE3ACNffP+//fhG6kJVIA /y3WWWIMR1GIPGHB63uRtFhEWa0ZVb5farWAFQzNkMDwhVrCjN2UbN2+XwTEz0nb6P8Z u5CR3DwWWfgWwnCE7ft5WNUl6At/24jGZfdT8arve2HokCY9dwaBzPweiB0cv4gkFc4I I+LQ== 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=b7tYCuLOneNVapblMKSIKpmwT7lGekdbsrxLFfav5HY=; b=ZoRgfCid0e++XGidKblpypg3El5+/OpPRMCh1QZj5zmIDSxRgd5dxd8IR3+UCp9KwQ Asl3RJvEnyfVdhvTHH4rPbfD+7vY+o/rt82G66G+eHXR+JVIk43rQjKDwlFDJjH1Bd4J Y0jfZSruCTHndexottdHY/rSFC2uKDFkQA/guBa9xFebzN8324KKZGh+8cWeVWFq38Si C4rEeGj6o2IOQF9t1cZBw4f1A3MlIUlE0Lh8cZxkLjmLf88WbYvCgcQml9I6Bw5cTdGV RuqnGQg1VaUPcp93aCKsloEsOZE0BNCWJdj5/UrBbuqnG3w5CttvXBUnSfUxfMOgQGLd jsOw== 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 m189si6937764pfc.410.2018.02.26.09.09.04; Mon, 26 Feb 2018 09:09:20 -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 S1751499AbeBZRIJ (ORCPT + 99 others); Mon, 26 Feb 2018 12:08:09 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.154.210]:36895 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbeBZRIH (ORCPT ); Mon, 26 Feb 2018 12:08:07 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1412.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Mon, 26 Feb 2018 17:06:22 +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:05 -0800 From: Matt Redfearn To: James Hogan , Ralf Baechle CC: , Paul Burton , "Matt Redfearn" , , "David Daney" Subject: [PATCH 3/4] MIPS: BPF: Replace __mips_isa_rev with MIPS_ISA_REV Date: Mon, 26 Feb 2018 17:02:44 +0000 Message-ID: <1519664565-10955-4-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: 1519664779-452060-25350-185482-2 X-BESS-VER: 2018.2.1-r1802232342 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/net/bpf_jit_asm.S | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/mips/net/bpf_jit_asm.S b/arch/mips/net/bpf_jit_asm.S index 88a2075305d1..57154c5883b6 100644 --- a/arch/mips/net/bpf_jit_asm.S +++ b/arch/mips/net/bpf_jit_asm.S @@ -11,6 +11,7 @@ */ #include +#include #include #include "bpf_jit.h" @@ -65,7 +66,7 @@ FEXPORT(sk_load_word_positive) lw $r_A, 0(t1) .set noreorder #ifdef CONFIG_CPU_LITTLE_ENDIAN -# if defined(__mips_isa_rev) && (__mips_isa_rev >= 2) +# if MIPS_ISA_REV >= 2 wsbh t0, $r_A rotr $r_A, t0, 16 # else @@ -92,7 +93,7 @@ FEXPORT(sk_load_half_positive) PTR_ADDU t1, $r_skb_data, offset lhu $r_A, 0(t1) #ifdef CONFIG_CPU_LITTLE_ENDIAN -# if defined(__mips_isa_rev) && (__mips_isa_rev >= 2) +# if MIPS_ISA_REV >= 2 wsbh $r_A, $r_A # else sll t0, $r_A, 8 @@ -170,7 +171,7 @@ FEXPORT(sk_load_byte_positive) NESTED(bpf_slow_path_word, (6 * SZREG), $r_sp) bpf_slow_path_common(4) #ifdef CONFIG_CPU_LITTLE_ENDIAN -# if defined(__mips_isa_rev) && (__mips_isa_rev >= 2) +# if MIPS_ISA_REV >= 2 wsbh t0, $r_s0 jr $r_ra rotr $r_A, t0, 16 @@ -196,7 +197,7 @@ NESTED(bpf_slow_path_word, (6 * SZREG), $r_sp) NESTED(bpf_slow_path_half, (6 * SZREG), $r_sp) bpf_slow_path_common(2) #ifdef CONFIG_CPU_LITTLE_ENDIAN -# if defined(__mips_isa_rev) && (__mips_isa_rev >= 2) +# if MIPS_ISA_REV >= 2 jr $r_ra wsbh $r_A, $r_s0 # else -- 2.7.4