Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp262786imu; Thu, 8 Nov 2018 19:17:03 -0800 (PST) X-Google-Smtp-Source: AJdET5eYASg2gO6molAPZwKCN9QIbJcHhyTWsM4JOvBEcXEJU1vs/TVco1XduqrdRSj1c0t0GoBH X-Received: by 2002:a17:902:b203:: with SMTP id t3-v6mr7197233plr.128.1541733423750; Thu, 08 Nov 2018 19:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541733423; cv=none; d=google.com; s=arc-20160816; b=ul2GYF1fmjv7MbFE89PKgw3tf85IOW7QXUGGdNypZ3dFPuKpoWwACBV6J6vSZBaiRT psjmOckSTkYLaGCjQrpNG84O0pv2inCZqieIHxnYF2Z5UCOJ7cHZX5wZZt1kfAOJ2azr pQbTfnjY12AmC5vmguh/E49qNmpGljSL0hO88zhJkfcdJHl7+FRP8Vj1ec3WxSzFyMQM fpH/HWGb7GX9x1qQGXsZACA0sqvSaAGPPHEWfZHbjEYg7gSo2QoXtIuaaJ+z4xa8j5Xz fl0LAlBGBBjmEc22Lg/peyNXC58u6zH1mHWHlAXmbDfvKnP4Hs3RbCZl0oatGjTR9iPv HqFA== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=ijkNTcUeRAKSeHqEQRUZ8FFGjtZcUTKnaxRridpSrpI=; b=W15X8OCSczxiNh5IKviUw/+DWtBRV0snlF8mOTssw2Zq1IwKist+ndIeLZrzY80+JP AsRhPikwf5X3U8x0YokpAsyetJvglvzplq2XNDDjF12NpF1xJBQmG+R4nPBZCwVRa5R+ 8JfgKfLfEEypMmen0KNz2rC8wk9/A+OvEOGYZls5cuORhVNDdNaobeSfkQF/E0GmtvjG HgefFj9rsJ3JYb/vFFnXRFPcWVmiKguEcwI2hh/n/h6GdRwaEV1TxbXCDa+45XQDxr5b KQJtp3YqVsXaKC24pyZMpEf/l1m+gelZfyqt+Ad7hv+J8RUun1m4JbcnusGh8MDKY22m ifCg== 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 11si5678134pgs.126.2018.11.08.19.16.48; Thu, 08 Nov 2018 19:17: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; 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 S1727803AbeKIMyh (ORCPT + 99 others); Fri, 9 Nov 2018 07:54:37 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:48374 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727238AbeKIMyh (ORCPT ); Fri, 9 Nov 2018 07:54:37 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id A6B1E72CC59; Fri, 9 Nov 2018 06:15:59 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 9D3E27CD1FF; Fri, 9 Nov 2018 06:15:59 +0300 (MSK) Date: Fri, 9 Nov 2018 06:15:59 +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 05/13] m68k: define syscall_get_arch() Message-ID: <20181109031559.GE21511@altlinux.org> Mail-Followup-To: Andy Lutomirski , Geert Uytterhoeven , Elvira Khabirova , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181109031303.GA20906@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 that use tracehook_report_syscall_entry() in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- 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