From patchwork Mon Dec 17 10:40:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 153976 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2311506ljp; Mon, 17 Dec 2018 02:41:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/XtzgTL1eXJRLzKIAM+ANFQ4s2YLo0N/0Jd4CBUqGk7nFMf5vU5ntRwAEpl0IY2EnqccPNx X-Received: by 2002:a62:2c4d:: with SMTP id s74mr12265727pfs.6.1545043292813; Mon, 17 Dec 2018 02:41:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545043292; cv=none; d=google.com; s=arc-20160816; b=0wsg+I18p/wo+4wl8Ff/0AlDS2hZc0s1yLHzknogXdvu2ClbOrjdwEAy1fu858UtFs Zcy87wUWY2px5oJ7it2wt2ZcoJKs2YbB9m1+ySKb4GzGe4MgOmBRGjo9l9w1p9Kjqaz3 KzIc0CT9pthfPSrE7nhj8Ht9JoKddm5tbzQTenNrMsqFB2Ue6rGmEDCQsWs5oos8hDgV y/tqduON+1NDJhEZ6U6ciPjpu97kX/KDE1qf7/w/Ud0r6wmZh3GPdY3g75N15cC3fPuh aMPu4ztvsVgYMt3z8MYd73ecbXnS1SxZ693qCuW4RXS29HJLTGDnXhV9xJrKoq0xARN2 ORvA== 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=aQVog45Muhh4+8rPHSMzXpRDGsuiVwt40x+NJHWKZJTwxiHuGqR2RoHOaR+1ENT6K+ kSxtAtHWPszMosBIaQfwDSv6E7mJYMRKRxEOQx/pYMYubdXfnuRHNoeT3KGv84tbS0iS jiYoeVRj8PMqUEmSkg2QmkaObMN9TkcuDGlr7Oov+xiNgdWIZVsNxIEAi+IUA+gXZPDf 3QV+FDLj+SrTUJIePGUyHgM/z07ZxnVQYybor/cpFG/y1vFNu8xJO0LAj1BmbNV0dfnd MU4g/2wL1ciUlV5/6ip3yp/BbS+zlBXxfbAO6fyOIxTLPlrWzKguABhr4DYp36kI0Wcs BHEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hmXcmuaD; 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 r25si11338903pfk.28.2018.12.17.02.41.32; Mon, 17 Dec 2018 02:41:32 -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=hmXcmuaD; 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 S1732394AbeLQKla (ORCPT + 31 others); Mon, 17 Dec 2018 05:41:30 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40569 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726991AbeLQKl3 (ORCPT ); Mon, 17 Dec 2018 05:41:29 -0500 Received: by mail-pg1-f194.google.com with SMTP id z10so5929722pgp.7 for ; Mon, 17 Dec 2018 02:41: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=qjj0KbdPyGPLhWFi0hQxVzhzwcqRrlCgAX7ybTH+ePE=; b=hmXcmuaDhZ0CcAlynyVIpsXJsLvTnfV0Qt0XU0uZhAH2WL/hrBusGX151JiPMw2ViG 5/rzLUz41dcdHYEmFfMEmyGe4IAyZIfaLg/JbzndcP+2H1aIEojBM9jvvNVqtbkCCfoM 0qNn6/c/iJgmb4TgsDVmRR/jyvadAn7lLXmlQ= 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=lw1iY6oQ3fYlA0qyvvbUEnvJrzsc11bffUpj+kONkqBtpyy9QM/IxrZewFs75mP9ny Rv4RHjNp9w/nxgquOCVZQDa1HtDuABobIm8MyNN+N//FehJHuEiOIxtUBKUWm8VEQ7Ht N9yE0sfwJi53IQO7F5JSh8A9oaJkk7bB/Li6zB93+TDpFPDzf076VljQdKMrA4Mue3VZ /msJGY2oyCl+Wn5U9mkRm5CZyMb8YFfkgdIzHw12YuqBmO7gV2a8zxMW9N9igH/XnQ3Y +Al1fpvKrKyP0CbEa/hvNiihsftQeYtsIbXcpamV769uMhPdxdPYVZ+5zmMhU9511qmU Qrjg== X-Gm-Message-State: AA+aEWZua7slt+BQ0UDeX3yXIxGuXTJxzrWIULqnFk0ZB5XzxeOlvZ2S 4XdtTeEozWQvIkeT6J1EPLKPtw== X-Received: by 2002:a63:8e43:: with SMTP id k64mr11656442pge.346.1545043288598; Mon, 17 Dec 2018 02:41: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 b27sm17224826pfh.113.2018.12.17.02.41.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 02:41:28 -0800 (PST) From: Firoz Khan To: linuxppc-dev@lists.ozlabs.org, sathnaga@linux.vnet.ibm.com, 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 v6 2/5] powerpc: move macro definition from asm/systbl.h Date: Mon, 17 Dec 2018 16:10:33 +0530 Message-Id: <1545043236-11649-3-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545043236-11649-1-git-send-email-firoz.khan@linaro.org> References: <1545043236-11649-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