Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp669713imu; Thu, 13 Dec 2018 02:22:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/VB3neZZI/wh8wZDzf8zgKCP2G7OT7O/ROxmn1O523v36aAc3Kg8+Z1uMdSkH7T52SQ+qBD X-Received: by 2002:a17:902:82c2:: with SMTP id u2mr23073039plz.110.1544696549118; Thu, 13 Dec 2018 02:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544696549; cv=none; d=google.com; s=arc-20160816; b=oeljUB6jJz5luIeYBtp5GPghzcayI8fj+iV9ffowA4JyVlpUbQoeoJ5qYZIrO0dsDT tPGbPLGvCvMfX2iEK+D7sR76raH3hCvpxtUCLVE79BZsbL0Z+ez6ilCsq/rNKu3e+zS8 VDOAdlRye1XL55OXY8N9O/Omo+HW3raSrOXK3kUM3wvJDla3PHnlSYHtx11+g+FFr+o9 +GPTrFqH85WwzPl76UL8RkqouXKcjowvkmOv7/i5hUKcK+Cm+WWXnXSkjCuQl46Ihftc l/Tq/oUQdmJG9C9OR5qJiqUAPsLHjTGTqKpy60TNP5OFZLBo7IBeJBqu9ZrDEs4aybJd QIbw== 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 z11si1318958pfg.107.2018.12.13.02.22.14; Thu, 13 Dec 2018 02:22: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 S1727618AbeLMJE1 (ORCPT + 99 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(-) 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 -- 1.9.1