From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932898AbcH2Jai (ORCPT ); Mon, 29 Aug 2016 05:30:38 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:27434 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932863AbcH2Jaf (ORCPT ); Mon, 29 Aug 2016 05:30:35 -0400 From: Marcin Nowakowski To: , Ralf Baechle , "open list:MIPS" , open list CC: Marcin Nowakowski Subject: [PATCH 2/2] MIPS: set NR_syscall_tables appropriately Date: Mon, 29 Aug 2016 11:30:07 +0200 Message-ID: <1472463007-6469-2-git-send-email-marcin.nowakowski@imgtec.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472463007-6469-1-git-send-email-marcin.nowakowski@imgtec.com> References: <1472463007-6469-1-git-send-email-marcin.nowakowski@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.2.5] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Depending on the kernel configuration, up to 3 syscall tables can be used in parallel - so set the number properly to ensure syscall tracing is set up properly. Signed-off-by: Marcin Nowakowski --- arch/mips/include/asm/unistd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h index e558130..71162f3d 100644 --- a/arch/mips/include/asm/unistd.h +++ b/arch/mips/include/asm/unistd.h @@ -22,6 +22,10 @@ #define NR_syscalls (__NR_O32_Linux + __NR_O32_Linux_syscalls) #endif +#define NR_syscall_tables (1 + \ + IS_ENABLED(CONFIG_MIPS32_O32) + \ + IS_ENABLED(CONFIG_MIPS32_N32)) + #ifndef __ASSEMBLY__ #define __ARCH_WANT_OLD_READDIR -- 2.7.4