From patchwork Thu Dec 13 09:02:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 153609 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp566866ljp; Thu, 13 Dec 2018 01:04:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/WPqnLVMn5ji3lwYzN89qQT65qtWabjdnZvqgGQ0rS0iACRCvKvrJe+qljhy2LMKpePflA8 X-Received: by 2002:a63:df13:: with SMTP id u19mr21281121pgg.294.1544691869158; Thu, 13 Dec 2018 01:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544691869; cv=none; d=google.com; s=arc-20160816; b=z2Ywc7NY1QiUP52ucoBSb3SpdFmjCPf2nEYlaaLyGqBnnkJOhuw9+8WPmka4knjiVA vmzMWWnIV+Zn7w4KJOWceeHVi87MCBSaU3CQBAMHBQDiCIa2zsONoRQfjyxdMvZ3kszj pLZdppJEQEpdj3FqOeyKh3KY5+FhBMK4xK4ZteFENuLZOe1HLONVh6k2l1UMs8ynfZ/8 3JHRTtqt0+Qphno+INOST5sbW9HUjrt9FWMmquiTYZAwf506aQ1yAa7MJk4gWaxH3KeI /SbxJvuN4t4MkKbBIovYvIfZNR+kMpjuWALXPlzTyn4DH28C77Ovnu/dE02Hjeo9yTqu SRpg== 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=mqZSahIxnI7yDrkER0Paeyi6kXDeq6WU7jt2+oKfWeB7vALRDOijbFllrMW4muC8kP DXvg+M51Fl+VlLxa4Q4HhlpO+HazR8zRXsdgqJEX1TU8a0s9S1Q//2uv4QRgpGhGyRvQ EUlndnHbt3lyi8JznHxPDtr7/4duZhdutcNVrw2TFBO//FFRZ9a317WcdOAn5d0FmOCf LggaLheLudEimYfAmNjffs1En+KW33IUhqDW9GtLcZkrHh6XsWTPX7ATKRqmOToXf82K +cdXHmjaF3QqcNryDRCMwb8XsuFpl2Ab9QMoKEmAHZBYt1JuoFvrM7dRO1TiwsKGhTNg 4drw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QZoXy6gg; 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 8si1165860plc.88.2018.12.13.01.04.28; Thu, 13 Dec 2018 01:04:29 -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=QZoXy6gg; 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 S1727632AbeLMJE1 (ORCPT + 31 others); Thu, 13 Dec 2018 04:04:27 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34698 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727296AbeLMJEZ (ORCPT ); Thu, 13 Dec 2018 04:04:25 -0500 Received: by mail-pg1-f193.google.com with SMTP id 17so762856pgg.1 for ; Thu, 13 Dec 2018 01:04:25 -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=QZoXy6ggGo+xzbCOSLmSlXnTihhbBCKcq0OZFB097Tjfx/Felb+2d9oacyLcBPijz4 lMByQFEoof7CJ4PaKLm4a9BYaYWpfGy8M74kiggnlj++gXdJOil64fUOuX4rXoPb0L7B Xn/gYNdWpHBMx1u5WLN4aRdAsKLPEn4MogTEY= 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=HKHwQSMQaaLgNoaXLTIPFY5Pp97K48v4jER5wl37f16ATpXr3Mhzu5psdV/qo03qSJ AMJVtT8SF4rosVyLfR7C3IEEBJxSUrYLSinJsH7vP1J8bIj3IIAzK/SjscKh5VUZJbAU f6YBelB/Y538XPvwsEB1pm90pYKK0/zA4ZUpQIRGAQBaEuK7fOU6WXcJK4wKnOi4qyl2 2Snrqx6LR0xO33ZoV65xxsAu7OeNbCYg76QpGJoaBn1eH1tv4J97ytB4pijAIWRyGh3Q QOB49DwSNneJCt1AldNBPPAz2R/Z0WxaREzdZmIdf9spZaPtb8BdSkxYN4TujYzmhFue cG+w== X-Gm-Message-State: AA+aEWY0p/FfGQgJ9SL9id3g1XXTlPnYLGlaFX63IBs5Jxx6iWPZiti/ 04DwT4W1W1d+BfYDzwHSzpddnQ== X-Received: by 2002:a63:5407:: with SMTP id i7mr21043368pgb.413.1544691864761; Thu, 13 Dec 2018 01:04:24 -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 s9sm1888305pgl.88.2018.12.13.01.04.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Dec 2018 01:04:24 -0800 (PST) From: Firoz Khan To: linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Arnd Bergmann , Geert Uytterhoeven , Ram Pai , Mathieu Desnoyers , Boqun Feng , Breno Leitao , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v5 2/5] powerpc: move macro definition from asm/systbl.h Date: Thu, 13 Dec 2018 14:32:47 +0530 Message-Id: <1544691770-8938-3-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544691770-8938-1-git-send-email-firoz.khan@linaro.org> References: <1544691770-8938-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