From patchwork Wed Nov 14 10:03:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 151060 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5488347ljp; Wed, 14 Nov 2018 02:04:03 -0800 (PST) X-Google-Smtp-Source: AJdET5d32mKF6ekjBiJ23e0q5pi9+Ty49+pIRz9KWGycSAOYQO8d6Yq2uQHtGNzmPAzWqaySKq5m X-Received: by 2002:a17:902:f81:: with SMTP id 1-v6mr1239040plz.203.1542189843116; Wed, 14 Nov 2018 02:04:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542189843; cv=none; d=google.com; s=arc-20160816; b=BKm33Y78pPRzv4yTh9eD8zTDB9inDDDzc5f1CgM6WnPYOYoLp+JCo5zNCENUGM3Dt5 T2FJZ7Zk+W1GD9/f+PDK4EIokzZWTspdr+T6HVQbKhBKXMqtVb4NxV7bEPuaEcpgaNvO VcBkaYt8x+TpK0JsDYlLlCWntTVIKRiebCVLbTpltFNWQ2g4RDXuZkAoME+roBt4gSZG wR3E7GmWHOO2JFfnkcXOtAapz7jFW6xdSvAV1Q1Umge9YDuvxCubYew7DVx6kjIuBkrr tNDBnFgwGtkcq+hVSd4P9x+jwHk+AgC5eUvff5LHi/mO5UqZH6DmQMgfLnlaMnVzX9z6 yDgA== 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=fBOiHjj1Vb9CM2P9BbAhEtmK+gIGLynoLuGXLaiP/cg=; b=zaRON6SQ9+3mj/+5ZC9+1bVP2iG/2yu1UUq5E9nWBI/Cr75ktpdui5W7Qj3E1Tstc3 nmV6QDZpjeQQVisO2bnOofw1NEltQnjDSlMMygABhhgF3VfMX63fr/gJZW7a6rH35Ud8 cLBX6vi2KJqwoUHBMiJq6nzGASUAzkclWIFY2g1HiJYS43neKB4Ubvk/tL1Z5pzLwHc5 Cg10rr/jVkfc0q6FPpNIYMyB4yDsHiVa8DCODr51pIH6+KIi4U/8CcxMA39Voka0Ypvi b4l/1MhA3FnnNlXee4OoGoVVLZJL6VpSaVeKIE4MvYQfKxrVFCeDuI1zcktDmCcBxtln ATNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NrJJrhEb; 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 69si22700735pgc.164.2018.11.14.02.04.02; Wed, 14 Nov 2018 02:04:03 -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=NrJJrhEb; 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 S1732658AbeKNUGe (ORCPT + 32 others); Wed, 14 Nov 2018 15:06:34 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35939 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727558AbeKNUGe (ORCPT ); Wed, 14 Nov 2018 15:06:34 -0500 Received: by mail-pf1-f193.google.com with SMTP id b85so839327pfc.3 for ; Wed, 14 Nov 2018 02:04:00 -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=fBOiHjj1Vb9CM2P9BbAhEtmK+gIGLynoLuGXLaiP/cg=; b=NrJJrhEbSERnmq+rxVaUBy/OVX7rGBE4Gde01GM49QoeOfXyZaEWdAZxnSHXkYpBzQ rcYdEyz/C4LGFMHKZMcP9o78GWdyQkUrCTEIFfRWVdVpYkNWwtjxcSe4g8mMul+OwoOX 4KieTnH/cbOq6aDn8FSE2/7dx1hs+yv6Wwuhk= 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=fBOiHjj1Vb9CM2P9BbAhEtmK+gIGLynoLuGXLaiP/cg=; b=tHIzTWjDtV2QtKgDZobnVnVf2fE79jUJyQVTegx1+kyYmeu/cYXTFaN3pJ9eSNMfJH w/uC2kJT2Or8zEIk54WR4EhMy2UVhnlco+7pN32h5eQZ9erLo8M8vEMCaQ4lMdycHn3q Is0WGHeE75hAXXY8TqStvXRmK5YiQ77rBUm6aMH8k2YynEmrYpk3W+YNxM2ZS8vWDeT2 sa+hNCWm3v1yz8sJH9gkKdoOfMQWfo0ltkKpu3P1oIBQ35NQ2w/5wIOFsc/Ty3W1jMHy /h9Ph7X+1oP5P9x529vimhyXiigqphIau0NIz9DPqOR6U/6W3PHAeEiA1Lx/PeeJqxpc jzjQ== X-Gm-Message-State: AGRZ1gIKndB0F5sWpPwHkXGFYvz9m9Bt5C4mVvbQqGXp9skI8N56iLis 75a4DNfNCuZ5hSLYqVXqKCzttg== X-Received: by 2002:a65:5a8e:: with SMTP id c14mr1118400pgt.137.1542189839712; Wed, 14 Nov 2018 02:03:59 -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 g15sm21633873pfj.131.2018.11.14.02.03.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Nov 2018 02:03:59 -0800 (PST) From: Firoz Khan To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Arnd Bergmann , Ram Pai , Geert Uytterhoeven , Breno Leitao , Boqun Feng , linuxppc-dev@lists.ozlabs.org, Thomas Gleixner , Greg Kroah-Hartman , Philippe Ombredanne , 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 v2 2/4] powerpc: move macro definition from asm/systbl.h Date: Wed, 14 Nov 2018 15:33:16 +0530 Message-Id: <1542189798-27713-3-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542189798-27713-1-git-send-email-firoz.khan@linaro.org> References: <1542189798-27713-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 + arch/powerpc/kernel/systbl_chk.c | 1 + arch/powerpc/platforms/cell/spu_callbacks.c | 1 + 4 files changed, 3 insertions(+), 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 diff --git a/arch/powerpc/kernel/systbl_chk.c b/arch/powerpc/kernel/systbl_chk.c index 4653258..db97da7 100644 --- a/arch/powerpc/kernel/systbl_chk.c +++ b/arch/powerpc/kernel/systbl_chk.c @@ -56,5 +56,6 @@ #define getrlimit ugetrlimit START_TABLE +#define compat_sys_sigsuspend sys_sigsuspend #include END_TABLE NR_syscalls diff --git a/arch/powerpc/platforms/cell/spu_callbacks.c b/arch/powerpc/platforms/cell/spu_callbacks.c index 8ae8620..7517a43 100644 --- a/arch/powerpc/platforms/cell/spu_callbacks.c +++ b/arch/powerpc/platforms/cell/spu_callbacks.c @@ -47,6 +47,7 @@ #define COMPAT_SPU_NEW(func) sys_##func, #define SYSX_SPU(f, f3264, f32) f, +#define compat_sys_sigsuspend sys_sigsuspend #include };