From patchwork Mon Jul 30 14:37:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 10549169 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 97B5014BC for ; Mon, 30 Jul 2018 14:38:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88AFA297D5 for ; Mon, 30 Jul 2018 14:38:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CE14297E4; Mon, 30 Jul 2018 14:38:13 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9AD9297D5 for ; Mon, 30 Jul 2018 14:38:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731333AbeG3QNM (ORCPT ); Mon, 30 Jul 2018 12:13:12 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:39298 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727082AbeG3QNK (ORCPT ); Mon, 30 Jul 2018 12:13:10 -0400 Received: by mail-wm0-f68.google.com with SMTP id h20-v6so13995935wmb.4; Mon, 30 Jul 2018 07:37:52 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=DrRW/Hn8A9KP+1fA5hKZ/J+h0jcvXtgHoVpA5bqReIA=; b=rOpOvV3mClDndCHipbW5A9YYw179S98Rqz16gaJw/x37woOnhYbU9iY4mpGee2YjFx ZzKDdbdHt2L0qlbJ/1rpMgJA/fOYnF7sf7j4NfrjrZ7rJmHfRatwhClmVBnm9UOjRIFh 8Y0RpEHfZsA+AnzD5Q2cg0B1wIdi9jdxITJ7Rmb/DAFqP8gCILG9e6mvJ5xN0FHqNUkY atAzGvfEap9wIN1VSPm8mMXB+7Fwu2rXqAW0M8DSCgP9saLCxOtOgz8UcJlO4jTKKpoY 53D06Hie6T9G4va0Ozjg1fx9NRMuNQBtX90kFBijL5eUSKoR4vDUZq+rjUkTTPCQ/lU4 yYng== X-Gm-Message-State: AOUpUlELLI+I4ll0VYpgG4qvpzzaoc0eZQSY+/D7y1658ELL/v13ks4K SUwCPrMLCk4qfwdUee8PeOw= X-Google-Smtp-Source: AAOMgpcPHnHzqRcRIn98ud1pp4RfYFyOqIqgh7LqHsFIVfBgrgJhIctZob4tNq7KiLBR2tfi1+h8Pg== X-Received: by 2002:a1c:8c12:: with SMTP id o18-v6mr14870093wmd.120.1532961471556; Mon, 30 Jul 2018 07:37:51 -0700 (PDT) Received: from localhost.localdomain (u-084-c050.eap.uni-tuebingen.de. [134.2.84.50]) by smtp.gmail.com with ESMTPSA id 71-v6sm16599753wmq.17.2018.07.30.07.37.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 07:37:50 -0700 (PDT) From: Christian Brauner To: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arve@android.com, tkjos@android.com, maco@android.com, rlove@google.com, ben@decadent.org.uk, Christian Brauner Subject: [PATCH 1/4] file: export __alloc_fd() Date: Mon, 30 Jul 2018 16:37:07 +0200 Message-Id: <20180730143710.14413-2-christian@brauner.io> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180730143710.14413-1-christian@brauner.io> References: <20180730143710.14413-1-christian@brauner.io> MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Android binder driver will be turned into a module. Since it uses __alloc_fd() we need to export this function. Signed-off-by: Christian Brauner Cc: Todd Kjos Cc: Robert Love Cc: Ben Hutching Cc: Martijn Coenen Cc: Arve Hjønnevåg --- fs/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/file.c b/fs/file.c index 7ffd6e9d103d..90382c3ac6e7 100644 --- a/fs/file.c +++ b/fs/file.c @@ -533,6 +533,7 @@ int __alloc_fd(struct files_struct *files, spin_unlock(&files->file_lock); return error; } +EXPORT_SYMBOL(__alloc_fd); static int alloc_fd(unsigned start, unsigned flags) {