Message ID | 20180511190641.23008-12-jean-philippe.brucker@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0E3B60348 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 11 May 2018 19:08:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC19C28F54 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 11 May 2018 19:08:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B07B728F8B; Fri, 11 May 2018 19:08:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 190B028F95 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 11 May 2018 19:08:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9060B6B068B; Fri, 11 May 2018 15:08:34 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8B4696B068C; Fri, 11 May 2018 15:08:34 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7579C6B068D; Fri, 11 May 2018 15:08:34 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by kanga.kvack.org (Postfix) with ESMTP id 4626D6B068B for <linux-mm@kvack.org>; Fri, 11 May 2018 15:08:34 -0400 (EDT) Received: by mail-oi0-f70.google.com with SMTP id 5-v6so3421192oiq.6 for <linux-mm@kvack.org>; Fri, 11 May 2018 12:08:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=y5+Msx9dR4iMvHznCYeflpl/V/nTZHSy10gpksk8Neg=; b=lJJIJBDi3WzANdykC4dtaMwrO+Uex+Hf/LqDRQ7cN9CJD23BPe8U8n9QGDch1P9xKz sj1pt571MqV4KoMSP9TeS91AnFgKc3lOaSriHxxMmlBpTR2N5hS8W5Adh8wGd0UU9EnR ip9qkvjj8BzCtk+pl3WwGJMrenEkcQb5GaGmmC7qp6QPUzUe9WR5XnN/1iClHE+i7P0B 2aoQhC0/+4i59QJ8vydxYBamdn/SCXWJpyJ+/VPECm8L0WlxRjXkpFovKj3Sji+M0FTl H01wC87w/1ko1NVsR7DZRYqowzaoK3n9CYUzDetSTZxr3NTqXG1CDFRzuSgZiKnFSiNn AT/g== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of jean-philippe.brucker@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=jean-philippe.brucker@arm.com X-Gm-Message-State: ALKqPweH0k3KODVCKS1JQGiWCNJXet4OwTqdMVv2hlKIHJkFDw6g7Rp+ JdGOyeJLEL9ilBvBlrln8LF8atnnaByGVK/PtyALrKuZNQaMZu7uW6H2EbgxefpaEwzlUz1vtZQ g2DsXV+c0oNl06YU90kQ+6yQyDHPPcygEAUnxxEqijLvcoLrnq3UQGcn95XTEtTMdMw== X-Received: by 2002:aca:5d0b:: with SMTP id r11-v6mr7076oib.195.1526065714037; Fri, 11 May 2018 12:08:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoUn6Z4PsGY+PaOiV4lpxu55gaxeS5HRHkQKrZKKQyywXnOoLQE8dnIO6C7YmeFaqYs9tz1 X-Received: by 2002:aca:5d0b:: with SMTP id r11-v6mr7040oib.195.1526065713261; Fri, 11 May 2018 12:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526065713; cv=none; d=google.com; s=arc-20160816; b=GV8CPsv+qAkjgw0UKvvMJIuhvEY9EgWLvuWrCFfIwxYOIuyaMtkLjQj43KAns4jh2j k7HJrSZbBJqOg0yWOEM8XZdEnSXxX1zEXYB/AdvQA07T8x1LCSmb696WHw74aWpWIppj DCmSScU/ZIuZswle5VLzgCPVhb97JCYEYAxyCupmQX/ccBqiscZwjaghGzqSWfbqmWl7 APMxWmci+peSt/uyVcabqqjYoZeZ1qz16u1WiEMJVYp8Fap+zXqGLoZej/Dx3cbQXFBd DbFxenzQ/7fwMHMD8sFfOE5xgNSJVvoJpmuA7OUHkFARu3cApQ2IfVm4kw0FVdUdMILu Xy/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=y5+Msx9dR4iMvHznCYeflpl/V/nTZHSy10gpksk8Neg=; b=DjGywY/7L695ENADnboR6zU+rbaBL609k162QA4BTBdhrIxw1cc8EaUl5EbY46Jq+f bbltnpLpNRWiunDeUg/AS5yG12PKzU+7Wqhsg+Vw105k3b5y+rPLTpwUsTy03+/n6PYs WA/bAa3Y9xa8nyTKdh7FPYF/RTRd1cjsyvY7CCRjoczRDzAiNDOS+3H8yVR+whHdb2pS MthMunAw9FMf7itZiqDUbG68cReydu0kWnfgDzGObt7Izp2344t3Rjnorn3lpfHmxI9O TtnkJICwskD/BnNdgxicffbeDAEO22WMOboIi9QClRGKfCmIehCrv7vxuRs6KdVKPudy YpHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of jean-philippe.brucker@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=jean-philippe.brucker@arm.com Received: from foss.arm.com (foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id u57-v6si1342359otd.305.2018.05.11.12.08.33 for <linux-mm@kvack.org>; Fri, 11 May 2018 12:08:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jean-philippe.brucker@arm.com designates 217.140.101.70 as permitted sender) client-ip=217.140.101.70; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jean-philippe.brucker@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=jean-philippe.brucker@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D6B061991; Fri, 11 May 2018 12:08:32 -0700 (PDT) Received: from ostrya.cambridge.arm.com (ostrya.cambridge.arm.com [10.1.210.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6CC773F23C; Fri, 11 May 2018 12:08:27 -0700 (PDT) From: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> To: linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-mm@kvack.org Cc: joro@8bytes.org, will.deacon@arm.com, robin.murphy@arm.com, alex.williamson@redhat.com, tn@semihalf.com, liubo95@huawei.com, thunder.leizhen@huawei.com, xieyisheng1@huawei.com, xuzaibo@huawei.com, ilias.apalodimas@linaro.org, jonathan.cameron@huawei.com, liudongdong3@huawei.com, shunyong.yang@hxt-semitech.com, nwatters@codeaurora.org, okaya@codeaurora.org, jcrouse@codeaurora.org, rfranz@cavium.com, dwmw2@infradead.org, jacob.jun.pan@linux.intel.com, yi.l.liu@intel.com, ashok.raj@intel.com, kevin.tian@intel.com, baolu.lu@linux.intel.com, robdclark@gmail.com, christian.koenig@amd.com, bharatku@xilinx.com, rgummal@xilinx.com, akpm@linux-foundation.org Subject: [PATCH v2 11/40] mm: export symbol find_get_task_by_vpid Date: Fri, 11 May 2018 20:06:12 +0100 Message-Id: <20180511190641.23008-12-jean-philippe.brucker@arm.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511190641.23008-1-jean-philippe.brucker@arm.com> References: <20180511190641.23008-1-jean-philippe.brucker@arm.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/kernel/pid.c b/kernel/pid.c index 157fe4b19971..0b6d3201c42d 100644 --- a/kernel/pid.c +++ b/kernel/pid.c @@ -355,6 +355,7 @@ struct task_struct *find_get_task_by_vpid(pid_t nr) return task; } +EXPORT_SYMBOL_GPL(find_get_task_by_vpid); struct pid *get_task_pid(struct task_struct *task, enum pid_type type) {
Userspace drivers implemented with VFIO might want to bind sub-processes to their devices. In a VFIO ioctl, they provide a pid that is used to find a task and its mm. Since VFIO can be built as a module, export the find_get_task_by_vpid symbol. Cc: akpm@linux-foundation.org Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> --- Here I didn't add a comment because neighbouring functions that get exported don't have a comment either, and the name seems fairly clear. --- kernel/pid.c | 1 + 1 file changed, 1 insertion(+)