From patchwork Fri Dec 7 06:11:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 153089 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp135606ljp; Thu, 6 Dec 2018 22:12:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/WTeErDAM9QTIAbshB7NRpJIUG3j3FicZpNmdeOk0DlrrkCmcVm4gyxVlSY20E/27JQLRSy X-Received: by 2002:a17:902:6185:: with SMTP id u5mr957987plj.194.1544163142925; Thu, 06 Dec 2018 22:12:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544163142; cv=none; d=google.com; s=arc-20160816; b=i7AzHs8IBfBneOwObY7mHZNPp+i8kipJRKxJVuvJ+ZFJMlex3qSSGwgL0EmDDIFI49 1dqzlhsK5LHqRipWq1Lw7Z3d7vM4s58s2+EPaBAn0DFLYGpkXj2g+toTPCEvSG16rttU azaGU96k+9edSDrjk8lA/MrR65Ov5y8wELUaEO0iDjn94FaHG7vHagTDAzA32adceLAz fsJwlPi5BwFX+RirCbMkwpDlDAXAW0Wp6lFyuztZpQj74xjbWpYOuheG0cDTCg3T6ODH DizP1O6TNxWhlp5rqKSOG84UlbwDTh7YrmCFcnGymS6Hi/4qCDSHWC4GsZDqTU46ejGY 6VFg== 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=qjj0KbdPyGPLhWFi0hQxVzhzwcqRrlCgAX7ybTH+ePE=; b=Bfw6MI4TetXqNQUfh1gZ0f5vk90ONTBMAh4ndZHMIUAJ+ErRidqEMkjR25gr3CobC6 UWqTWIvjamJokg4/eKRdDPTs/VffrutyR6kwTULirU0s1hwmOl3cX08o38o+e4F2Blq+ CFyT9ajIGcDLROxFtdFvPMoMXPtYl39mul6f1VvKX465mO/7t7bb4yIc0qokaDrvn6MZ 2RPOXer1zeJpjBiwZVJR9Vl0QMrw9GP9F3O6Xtb0TG+uWBck6oTKNxyCP+RFN2nnokUL 5g+pLg/XworxcRODy2+zf1lQ33T/dFp3iteAR/lncIEMo9wAsLVS1fCr+uAFGBNNzt/m gK6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hxOzaXWn; 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 k5si715120plt.111.2018.12.06.22.12.22; Thu, 06 Dec 2018 22:12:22 -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=hxOzaXWn; 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 S1726069AbeLGGMU (ORCPT + 31 others); Fri, 7 Dec 2018 01:12:20 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40531 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726052AbeLGGMU (ORCPT ); Fri, 7 Dec 2018 01:12:20 -0500 Received: by mail-pf1-f196.google.com with SMTP id i12so1413948pfo.7 for ; Thu, 06 Dec 2018 22:12:19 -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=qjj0KbdPyGPLhWFi0hQxVzhzwcqRrlCgAX7ybTH+ePE=; b=hxOzaXWnpR/CWtOGR+Cfrzu5RjQW2/sTKcSx+4jTa2/lG+yOhjzJzEFTVhyv71mMT7 5TGx5TE+d8IZlCTcGoqQkNgrKVi3G/fGVtE+iGsiKWYet6JfLrBnE9fB2aJfWX+a34QK 9XJjzVXRnsGz4cUWdIiN1uBX8U7f0x+EYj0jk= 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=qjj0KbdPyGPLhWFi0hQxVzhzwcqRrlCgAX7ybTH+ePE=; b=WCnant2jk7XxNVfAJ/dBUjJ/PSh488nfjukrmTCQY/p4oHxb7BZkGgKbhSviKOpVmQ ciMp6PUEm9e8QJZ0nyUY/WB4Z/eV79OlsHxuiOSej5MgN4v0ihhDumQgl592Oz5z93ZO +7NguZOQfmw3DZ3Yk3XT38vDPeUMocnu8V3n5u2DK0MiQD6fU9/n5I+R6yvNjMAXNWOv Dy0b0/XNWDXBmgUQ3gpHMp6wTX0++VA6X+JoJGzAUtHDrYShqUVBR1LkQwDrrVfIJepN HhVaB7URpPRcpdub39IEBxZSG0hOmoR+zRHF4zz4mmGO17kacNYTne0SNx1+ACC52SAU DgRA== X-Gm-Message-State: AA+aEWYPpt37sjeNykZg2U1Hx1fArQllotclvorAN3bRtFFRuqOnAZrj wsU89OzUBZ9sqnkwJo1eGs+MEg== X-Received: by 2002:a62:e201:: with SMTP id a1mr981796pfi.75.1544163139282; Thu, 06 Dec 2018 22:12:19 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([49.207.61.25]) by smtp.gmail.com with ESMTPSA id r4sm5719862pgn.54.2018.12.06.22.12.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Dec 2018 22:12:18 -0800 (PST) From: Firoz Khan To: linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Ram Pai , Geert Uytterhoeven , Mathieu Desnoyers , Breno Leitao , Boqun Feng , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v4 2/5] powerpc: move macro definition from asm/systbl.h Date: Fri, 7 Dec 2018 11:41:37 +0530 Message-Id: <1544163100-15510-3-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544163100-15510-1-git-send-email-firoz.khan@linaro.org> References: <1544163100-15510-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 Move the macro definition for compat_sys_sigsuspend from asm/systbl.h to the file which it is getting included. One of the patch in this patch series is generating uapi header and syscall table files. In order to come up with a common implimentation across all architecture, we need to do this change. This change will simplify the implementation of system call table generation script and help to come up a common implementation across all architecture. Signed-off-by: Firoz Khan --- arch/powerpc/include/asm/systbl.h | 1 - arch/powerpc/kernel/systbl.S | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h index 01b5171..c4321b9 100644 --- a/arch/powerpc/include/asm/systbl.h +++ b/arch/powerpc/include/asm/systbl.h @@ -76,7 +76,6 @@ SYSCALL_SPU(ssetmask) SYSCALL_SPU(setreuid) SYSCALL_SPU(setregid) -#define compat_sys_sigsuspend sys_sigsuspend SYS32ONLY(sigsuspend) SYSX(sys_ni_syscall,compat_sys_sigpending,sys_sigpending) SYSCALL_SPU(sethostname) diff --git a/arch/powerpc/kernel/systbl.S b/arch/powerpc/kernel/systbl.S index 919a327..9ff1913 100644 --- a/arch/powerpc/kernel/systbl.S +++ b/arch/powerpc/kernel/systbl.S @@ -47,4 +47,5 @@ .globl sys_call_table sys_call_table: +#define compat_sys_sigsuspend sys_sigsuspend #include