Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2198384imu; Thu, 29 Nov 2018 00:45:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/WhJxMChC2tJy1BTifPMhPFdGHxcYQ5Vhj8IbjgWaEi5ffovMq0/1YuXfFFQFfTwy8IdOK/ X-Received: by 2002:a63:413:: with SMTP id 19mr481862pge.7.1543481137937; Thu, 29 Nov 2018 00:45:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543481137; cv=none; d=google.com; s=arc-20160816; b=NNe+K77dX7XHodzFq5QhP556ZMbyeJA5hdm48RNHJ8coboeDF4pcJlsdE5QylIX34B XJ/GzxiG8ehRQ2HJluIiecW4ADRBVwUEUipnNoxqjdUPo6LIBB/myarJiNGgNi282AV8 3OAa5HoidMeKvvzsvrfLIKWh3KJODe6Vp5J8d6XMg1PmJTQ7/vQvJ+9kYQQXCskTeE7G ja3isCYb3keDbrAkpNcb3KIoTH1sh9QuJ4TYVD0h/I3UNSy261sbXcrVnSjqgqGXMJln q2f+jIeYoB9AOGoEgLB1/5+UrxNxM6DrrYeY8n57WbJcf0xzi81byr6b+7gjCDiZCmLu LVcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=O1oTkPJ6qrXNeDh6ydGScbRxC5yjbuUQ1NYPCDxj/lM=; b=xn07UIDVUUvbs1jy5qnAVT0eV1NAPaRClyAxaUK345KgNfQw/xkiaNwAexnoIya5+G hXm/nh6Gj+hgdyFzUbMcCl7pSk/HZbGwcDrvwDFSzDLrjIw5WwWwbe52ZtGu80HvzfrK KJttmnYJvnxF1rnuMZ62aat3Fy4Ab1U5bxqz5ecxHD+BmqDxhXZ5mPIir1+ZX+dJZT7D sreP2hktrNtSpR2SAe+IHNSCle6KP+7aTUnf7n/yJ3O4ph+b5nk4KJR8R50bn2WCga5b WdbYyUulaRi89vb5Xzsm7g/cX9p3cuLfUh+bG4yPqcd+8yTVJtEs+IX9gFt4aVhuH796 JvAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g+t3zy6I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si744875pls.408.2018.11.29.00.45.23; Thu, 29 Nov 2018 00:45:37 -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=@linaro.org header.s=google header.b=g+t3zy6I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727698AbeK2TtF (ORCPT + 99 others); Thu, 29 Nov 2018 14:49:05 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44293 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbeK2TtE (ORCPT ); Thu, 29 Nov 2018 14:49:04 -0500 Received: by mail-pf1-f194.google.com with SMTP id u6so662716pfh.11 for ; Thu, 29 Nov 2018 00:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=O1oTkPJ6qrXNeDh6ydGScbRxC5yjbuUQ1NYPCDxj/lM=; b=g+t3zy6I97eqy6vXR1JgC0qJ4uRNIfYaFSMilJh7FKjhFf3VZoYJBep1Skw2y6+tFM /+sIUg2r6S1/A01sJd17/FZYr8Egc3yVztjJO2hk2hAChZr/hiZfsO4109BRiqCybxA+ Est1cQyutH3gwPgABQBC+uWQjGrLSm5lqGJEs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=O1oTkPJ6qrXNeDh6ydGScbRxC5yjbuUQ1NYPCDxj/lM=; b=RQX+juAYxa1T+di6q5HA8V6co2mARQ2GSb++Wo5FdP55kXN15F0UqGD/hRgMrYTNeN hMuFG7aXwm5SQAJJpn7/BqkuK2hnBO1EIdu5dgKv4kYGWI1TXjqztjTM94BIg4V8j1m/ e4Fby5C16X1ueuXOJzpge0exZVLOe72UxMGzONiKzpwcU7WGSSrAgvlg0VXeC2WAxjpU OzW7SPXqASe4ofwTyqyuxKBtkxQYSqKMFhYGw80EHbo7Ex8MINhOF8aquOi/Q1UtDjNK 1cBNw96KWWGW4j1EBB2lowtqKO2+3u+wdG+N0X2YeWdsO1Ws5YU0TjRwg6DSA4ijA5Gy bThw== X-Gm-Message-State: AA+aEWYu59A38heCmAvvbouxu5Xxr1t3AI5ORip6+VeqrR5GiBjT1qSH lDQLEx9FvYs+VMxwfzhwJphzPg== X-Received: by 2002:a63:6c48:: with SMTP id h69mr456110pgc.139.1543481068123; Thu, 29 Nov 2018 00:44:28 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 73-v6sm2322683pfl.142.2018.11.29.00.44.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Nov 2018 00:44:27 -0800 (PST) From: Firoz Khan To: linux-mips@linux-mips.org, Ralf Baechle , Paul Burton , James Hogan , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v3 2/6] mips: remove unused macros Date: Thu, 29 Nov 2018 14:13:32 +0530 Message-Id: <1543481016-18500-3-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> References: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove NR_syscalls from asm/unistd.h as there is no users to use NR_syscalls macro in mips kernel. MAX_SYSCALL_NO can also remove as there is commit 2957c9e61ee9 ("[MIPS] IRIX: Goodbye and thanks for all the fish"), eight years ago. Signed-off-by: Firoz Khan --- arch/mips/include/asm/unistd.h | 8 -------- arch/mips/kernel/scall32-o32.S | 3 --- 2 files changed, 11 deletions(-) diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h index c68b8ae..d7ee846 100644 --- a/arch/mips/include/asm/unistd.h +++ b/arch/mips/include/asm/unistd.h @@ -14,14 +14,6 @@ #include -#ifdef CONFIG_MIPS32_N32 -#define NR_syscalls (__NR_N32_Linux + __NR_N32_Linux_syscalls) -#elif defined(CONFIG_64BIT) -#define NR_syscalls (__NR_64_Linux + __NR_64_Linux_syscalls) -#else -#define NR_syscalls (__NR_O32_Linux + __NR_O32_Linux_syscalls) -#endif - #ifndef __ASSEMBLY__ #define __ARCH_WANT_NEW_STAT diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 91d3c8c..fea6edb 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S @@ -22,9 +22,6 @@ #include #include -/* Highest syscall used of any syscall flavour */ -#define MAX_SYSCALL_NO __NR_O32_Linux + __NR_O32_Linux_syscalls - .align 5 NESTED(handle_sys, PT_SIZE, sp) .set noat -- 1.9.1