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) { From patchwork Mon Jul 30 14:37:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 10549171 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 7C9E114BC for ; Mon, 30 Jul 2018 14:38:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C63329EC4 for ; Mon, 30 Jul 2018 14:38:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6093C29ECD; Mon, 30 Jul 2018 14:38:19 +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 0400F29EC4 for ; Mon, 30 Jul 2018 14:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727082AbeG3QN3 (ORCPT ); Mon, 30 Jul 2018 12:13:29 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38194 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbeG3QNL (ORCPT ); Mon, 30 Jul 2018 12:13:11 -0400 Received: by mail-wm0-f67.google.com with SMTP id t25-v6so14003628wmi.3; Mon, 30 Jul 2018 07:37:53 -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=SJqFqukzCDbRFCUc2qyoBpYW1tChkYYlKTY4vfkJbYc=; b=nivmkgohdmwgFRJAfpt1MNmNwoFwVIe660l64xEvvu5W8yNE76Syytbdrk89/Wb3co xqnMMt70xhjWR09Y8TfSFuoUNDCA51+kr67nondm00280Di3MTYU6cJBxyHRxgnij7xp KJstsyVdd5VnJuf4chrur0Nex2Ri0uZX8BUq3HlBuZgDNjlDKh8+dgKtTeSGXQgBkxt5 Zq/hskeHZnLMJ36dIqBe2Wk53Lypx6UtUQcf7vJO0QefNwoPgemnuCGTHHN8xeLoNwAr +0DExas1wLyvXxjZfIomJMUzBtJ9Oo/6ZfuEcBQKbkjCLHYJou54tX5QelKpNsD+2Dx4 xGTw== X-Gm-Message-State: AOUpUlFeZwuP5G/RliXWTP2K32CJRurTib+XktEYq9AdwYHHAyQrkREl v+LPguMmESZLBWUe4rsfZMg= X-Google-Smtp-Source: AAOMgpc+VS2tej5t9/mnsVH5t0nQjkZMzqxWcrVwtLFfJvZYScOfCPRMRvH0QDgTtESyGmY9KJ5vDQ== X-Received: by 2002:a1c:adca:: with SMTP id w193-v6mr446041wme.147.1532961472706; Mon, 30 Jul 2018 07:37:52 -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.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 07:37:52 -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 2/4] file: export __fd_install() Date: Mon, 30 Jul 2018 16:37:08 +0200 Message-Id: <20180730143710.14413-3-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 __fd_install() 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 90382c3ac6e7..b1ffa7acff69 100644 --- a/fs/file.c +++ b/fs/file.c @@ -607,6 +607,7 @@ void __fd_install(struct files_struct *files, unsigned int fd, rcu_assign_pointer(fdt->fd[fd], file); rcu_read_unlock_sched(); } +EXPORT_SYMBOL(__fd_install); void fd_install(unsigned int fd, struct file *file) { From patchwork Mon Jul 30 14:37:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 10549167 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 ACBB713BB for ; Mon, 30 Jul 2018 14:38:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CBB4297D5 for ; Mon, 30 Jul 2018 14:38:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90D4C297E4; Mon, 30 Jul 2018 14:38:09 +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 3BDB2297D5 for ; Mon, 30 Jul 2018 14:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731967AbeG3QNO (ORCPT ); Mon, 30 Jul 2018 12:13:14 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34276 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731927AbeG3QNN (ORCPT ); Mon, 30 Jul 2018 12:13:13 -0400 Received: by mail-wm0-f68.google.com with SMTP id l2-v6so8564154wme.1; Mon, 30 Jul 2018 07:37:54 -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=OXyu/uXHanDF8qSWkwavLjCObdKKHdrqjDJFGsNHsiY=; b=NxP3e5eEO/gln92fP1mu22iIuKOvsk6wTK6gGrJZnnBsgSuwu+hICkAlNQZ6nTF3V9 OW8gDkMEcoUy4t0nBnEIK3PTwF8pPRXfgXBxfpZZbt1JCjFNds91yS9vZv7H/L8fvOus rJ/cNlhueDe2dHardsvZB0c3bhzjdukWT4B0vxZ+nEPtVlR1ZS+hxO8XY+p9cG4vSE1E BH/qFrcyj6AWKPaUIClF50NTkcTN4dUk1I3GUPy6yF3pOjHEE0rLsm4ULzbszq85OoDP b8R0/mR1YbTZ+UdyzZXbcX9GZaWk2gtQzd/NZC7QQRKRcHjhKe0SR1yvPNDd92UAMjdT 2l6g== X-Gm-Message-State: AOUpUlHUin5B9n0Dbf8qWPvyCKavDwyny5CikQnHwSyNacOcTwrJcFC9 kd40Jy2bXCFoW28HEdWrK0FRvOSVoUQ= X-Google-Smtp-Source: AAOMgpdb1fNHlzJ/rLu9S4BocnyDD7DLMFl1fAmbCffEPmEV1p7TevaGhrIEzRaR4inFECiU8IfoFg== X-Received: by 2002:a1c:b80c:: with SMTP id i12-v6mr6552501wmf.30.1532961473893; Mon, 30 Jul 2018 07:37:53 -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.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 07:37:53 -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 3/4] file: export get_files_struct() Date: Mon, 30 Jul 2018 16:37:09 +0200 Message-Id: <20180730143710.14413-4-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 get_files_struct() 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 b1ffa7acff69..430d74642e00 100644 --- a/fs/file.c +++ b/fs/file.c @@ -409,6 +409,7 @@ struct files_struct *get_files_struct(struct task_struct *task) return files; } +EXPORT_SYMBOL(get_files_struct); void put_files_struct(struct files_struct *files) { From patchwork Mon Jul 30 14:37:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 10549165 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 0E60513BB for ; Mon, 30 Jul 2018 14:38:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7F00297CF for ; Mon, 30 Jul 2018 14:38:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DABE8297E2; Mon, 30 Jul 2018 14:38:03 +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 68EEB297CF for ; Mon, 30 Jul 2018 14:38:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732008AbeG3QNP (ORCPT ); Mon, 30 Jul 2018 12:13:15 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39025 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727082AbeG3QNO (ORCPT ); Mon, 30 Jul 2018 12:13:14 -0400 Received: by mail-wr1-f66.google.com with SMTP id h10-v6so13144219wre.6; Mon, 30 Jul 2018 07:37:55 -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=g6uA/ItY/jvy50+CLjnIIK3lTFRrbJaUxjf6MtvCKkw=; b=n8QVUfuQNhrJhhxGOwjMjVS2Qtu/DIaK3BQ97l5HXSft/PyPP67p5WTqRpV9teJwFt tw+QlzQiaVV9exL3g8r0bthNpmgSwZwApms6tL71N9hdkPuwGQ+wXHVKLNs78XMAkt8a D3DQPzv0ijTQk+0iCK2PmvHf2m5TOFE19zrC5NwDqWjs7mNdVeHe/G7A0au2BQvH5fsg pcJTKgnIGR2mV031/2Y+kzrz+L0mkwBihA2F7Hec45oel8HvrQJjKvElhx9n67EJcEcz hqM2s1EhboAMj0GBe6fYoRK5HJspZWbbtH5p3LYC4GnDyMQtO24lsjgLzX8DbunStR8M SDdg== X-Gm-Message-State: AOUpUlGV2Jz2lH+KMc2Ibj3fYdU/MX3L3TBREHxQ/77lOEurHZLTMA1K U7VRHdu6nhD8olym9HmPNVY= X-Google-Smtp-Source: AAOMgpeo6JvDLIlZkQMawe3L7fjIdZ1uwKJ8Hm2rj2/EetrnDmF5YS1Sgp2vpSPrjyBuN0Xw4jaRYQ== X-Received: by 2002:a5d:44c6:: with SMTP id z6-v6mr17936427wrr.236.1532961474858; Mon, 30 Jul 2018 07:37:54 -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.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 07:37:54 -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 4/4] file: export put_files_struct() Date: Mon, 30 Jul 2018 16:37:10 +0200 Message-Id: <20180730143710.14413-5-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 put_files_struct() 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 430d74642e00..89a62165c5a0 100644 --- a/fs/file.c +++ b/fs/file.c @@ -422,6 +422,7 @@ void put_files_struct(struct files_struct *files) kmem_cache_free(files_cachep, files); } } +EXPORT_SYMBOL(put_files_struct); void reset_files_struct(struct files_struct *files) {