Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp14047imu; Mon, 19 Nov 2018 16:50:45 -0800 (PST) X-Google-Smtp-Source: AJdET5fBzNqD0jtkWtHNW8sj14K7jeC+qKXZViWD+aV1JEi3MXULoJoOTWm1jN7ZxmQ3dwFcfQdo X-Received: by 2002:a63:b218:: with SMTP id x24mr21543249pge.223.1542675045452; Mon, 19 Nov 2018 16:50:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542675045; cv=none; d=google.com; s=arc-20160816; b=kfuQlVgkIAb5BmDfuVHDtBsPaHnu4WObIl3XuHZrTGQGlVIHsD0OL+udBYRRKB2OZP ZqEdJwexBY/49oh7u6GYTK3Ve6r3wKYR6PjN6YLtde8PKxTTDmMnLp8QLo1Jw9j+OXW6 g88UqpF+LqHDdFVVAknHqaCBQjOU3RoivYGP6PshAST2/TucY+RBrvISrOqnngwe6Vkq w2wdU5ZhQmftnxzg60xQ13Hrrapy4TufptWypWb+YO10asTqBR5ZMk4NXJ02nUsiaO5A Hkv/6r1au0fDEUrVEpEASzR9jrzdxM1jQhe1rqDDkZ+cFbK1aUXdGnJPOa3JTU+szJXb iCXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=zkcYpCkkQhMh+rERBCYo4pAqPr1yffwoF2nsuSmMorM=; b=qWltWgnpzccFvnU/VTl+o0/aVQWvYcRLzlucNcFS56z3aFrERv9lfOnI7dOJt5x76v 7xYfoTF7pWRz2otUiQJFSLQBjrI1e4+DGsgNdoDYcoSvipY6kKuZeqVTYrB9NwRpbxTq GHWExxPfd/VYBIl2+2rD8+Nk184WGhiEG6LlpfYmm3r/3/0bf35GfISDq2VPytaw5aPQ +eCUgtWbyE4m5+kuBt9iOu6VNCR+DJ0B15KndSOFNNlvXSZVXTXowhSL+KalMqIcF9Oj +1WVzLvW+iyIhaPiJTJDlljB0leG7v6n3xCe6aX1VibGEl+zP0Uwj4QQqiy3HxcmPUJx qxlg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si41176757pgi.547.2018.11.19.16.50.08; Mon, 19 Nov 2018 16:50:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732329AbeKTKlk (ORCPT + 99 others); Tue, 20 Nov 2018 05:41:40 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:54538 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731074AbeKTKlk (ORCPT ); Tue, 20 Nov 2018 05:41:40 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 6C30872CA5E; Tue, 20 Nov 2018 03:15:24 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 62CDA7CD1FF; Tue, 20 Nov 2018 03:15:24 +0300 (MSK) Date: Tue, 20 Nov 2018 03:15:24 +0300 From: "Dmitry V. Levin" To: Andy Lutomirski , Geert Uytterhoeven Cc: Elvira Khabirova , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/15] m68k: define syscall_get_arch() Message-ID: <20181120001524.GF11387@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181120001128.GA11300@altlinux.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syscall_get_arch() is required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- v2: unchanged since v1 arch/m68k/include/asm/syscall.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 arch/m68k/include/asm/syscall.h diff --git a/arch/m68k/include/asm/syscall.h b/arch/m68k/include/asm/syscall.h new file mode 100644 index 000000000000..d4d7deda8d50 --- /dev/null +++ b/arch/m68k/include/asm/syscall.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_M68K_SYSCALL_H +#define _ASM_M68K_SYSCALL_H + +#include + +static inline int syscall_get_arch(void) +{ + return AUDIT_ARCH_M68K; +} + +#endif /* _ASM_M68K_SYSCALL_H */ -- ldv