From patchwork Thu Nov 29 04:26:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 152362 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1928029ljp; Wed, 28 Nov 2018 20:28:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/VJQRZ1W+dPsanH2FMlM1v4tg+CrcGDJWq5RuNKPE46HNNABCtIZ6a2iSvTZwAgZYClKhPL X-Received: by 2002:a63:fb46:: with SMTP id w6mr35832954pgj.321.1543465684762; Wed, 28 Nov 2018 20:28:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543465684; cv=none; d=google.com; s=arc-20160816; b=jsJvMjqrPJISpBxykVclCFY8XYHsk9LTbB/+njDLRs2n5euE2hSXNE0CqHB4MvE4XM okBASJs6afEFb68rY29Vm9PdqYI8+FiFk9FVN3vw6x2+iCtdCWQeSqCFqWP51ruQb3T1 Ce9+BjcntLdfHE/A9UqeJNfQCNSmKhZTXWHjGqWWuDJAeiHwhQ4pLB5uPtBLuA0Cgp1D /gWzp/Jm1VcRTXL311GJtKwjrdIK9xDU1q0kSYbHJMaeADzsW1QiKaz+4ujlYV9/6JDv G5JCRxwaA7fuovwy5yXQ+f81h4P826O/p2MMjkWhs9pW/Bn/UXy2nxW4Rgoymnz5v8Bn xF/g== 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=zmIWNDrBKsLq3quuvULN/ATeiFRqM0d7m68kntOFhyOqFXbXvfpCcXmtUNH7Fc159g LTZTCThuB567e8GyIhSWXGkVZTdJXmPhIVPm8ygF5p35XwBfJD2XhQc6MsnElWS4+Ya8 kBN0b4iLRBt0D1fop2TMFWM+ZN95okQ6EYa9iYcoRjL6AT+GVJvyAzU0WCu+SjwyZ8gJ QcaGjqhmnVVl53NuLecCAJa4KQMKg2SWqdfottAWmtIV7Hpgs/mbF9wLCh89fRy/TG/s gS4leVPSravK/GSPwHDQgmcTWqyFE+2JAir/uQdzsnNO6mw+woYPHxYbMBf6wf9MKIQp 92MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="H/eG7dHn"; 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 3si891191pla.240.2018.11.28.20.28.04; Wed, 28 Nov 2018 20:28:04 -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="H/eG7dHn"; 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 S1727770AbeK2PcB (ORCPT + 32 others); Thu, 29 Nov 2018 10:32:01 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34787 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727693AbeK2PcB (ORCPT ); Thu, 29 Nov 2018 10:32:01 -0500 Received: by mail-pf1-f193.google.com with SMTP id h3so387390pfg.1 for ; Wed, 28 Nov 2018 20:28:02 -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=H/eG7dHnYIasQsXZydOLMC1j8gdRu6lu61eyrvxTeEjmAgsC9Q2f/UA55N/VIcMbJ6 vR+cqv6E7puAitYnn/45zmfcTo9+TzaCELBiChm/uXK2+ZpYYJ0isvp1jHjzkh8zPXR4 B+XmjAgSEgRGIkBgajO2AFK/QUpAl2QrUixgM= 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=kYchZLDXFbRqwWVr5rZDQ7zMmEY0VmjSbH0aKDh7+LTtCasrSECLO1SZvmJBUMEk0H /8d55RxvaRhWHWTZbfBAkCU85mqIURw94S+GZ7yGNVGQrofBWlmhuRhWVt5xzmub8TVF 7WZjqbVPRdIvxqBS1LWh2kvGFjy13wkdCOrK56HyZBY+LRI2X8FFCq8i9V39Crm+X1WI uHU1j4A2RsE62tOFsWGa41gy6g4kDj+klt/wfUyoM36L4q34qmuwzkOMtjSVTY3jivor tBBYA3Cyh8DhMgiYMXgcS9YNK4LQDnWuhttju5+a9opaqgc4Wi4FREAZ4YyoRBP+Ma18 4DMQ== X-Gm-Message-State: AA+aEWa5GsUUCsEb0vkDUZtnBCaWUAYRHaqPPtRzeML6octP3/6qsL94 r4XpbqpwnMJn/xCQLABPmDXnSQ== X-Received: by 2002:a63:f241:: with SMTP id d1mr4429pgk.2.1543465682219; Wed, 28 Nov 2018 20:28:02 -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 p2sm770473pfb.28.2018.11.28.20.27.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Nov 2018 20:28:01 -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 , 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, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v3 2/4] powerpc: move macro definition from asm/systbl.h Date: Thu, 29 Nov 2018 09:56:49 +0530 Message-Id: <1543465611-17122-3-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543465611-17122-1-git-send-email-firoz.khan@linaro.org> References: <1543465611-17122-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