From patchwork Tue Jan 15 16:44:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 10764827 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 88A9A13B4 for ; Tue, 15 Jan 2019 16:44:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A56F2D7AB for ; Tue, 15 Jan 2019 16:44:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 660702D79B; Tue, 15 Jan 2019 16:44:56 +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,DKIM_SIGNED, DKIM_VALID,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 9DC662D7B1 for ; Tue, 15 Jan 2019 16:44:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7DBD58E0003; Tue, 15 Jan 2019 11:44:52 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 7C07C8E0002; Tue, 15 Jan 2019 11:44:52 -0500 (EST) 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 6A10B8E0003; Tue, 15 Jan 2019 11:44:52 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) by kanga.kvack.org (Postfix) with ESMTP id 3C3968E0002 for ; Tue, 15 Jan 2019 11:44:52 -0500 (EST) Received: by mail-ot1-f72.google.com with SMTP id r15so1289439ota.0 for ; Tue, 15 Jan 2019 08:44:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=EpIzBv2JuwiOd+A0KNJW+FqkTH+uuE+Wcdu2A4E7Ku0=; b=aTTuoqYeJFaSy4an6p5ZUeVK3BWDy0RwdpFhX9XpcszMtP9wCWjYk2mJhJ1+P6IYfA mmUiYuM6yENZrjOTS6OOQxbz/E4kTg8iVo5EouSxF8ma1pIYLAx1HTrvOL6zj1YmCvS/ GYJ4vBARO9MMKxVxgsNqXrG0ORVh60U6Igvg2VzgMZyb/Yak9EZ7rRRvki3SAJ1roi47 wILzMz8+eF5W6b1wS5SuyyEbLYj1/7IkeJuwgwh/H0Yb4jDHE34pQU4pxQfyL6THWN2j MQHDwOu5ov9gDo2D/88AhAksgCZivqcI2RV38pbBoSJ8fTmxc84RnDlm9lDZOJkykrHK 1jDg== X-Gm-Message-State: AJcUukc2jRYR8xjFeF2MQZGPPBzZ2PALPW00w+wZaoJZT7fCf8s90ImN AHQYsr3PbDZ8NCnP6yjhp90eo8L+Ax/rT/Xnzz8Zc0iIJ3qRtAPeONY6BK1ShJt+7RWHvm0J8de YBuwGLRv7BN9e21/G0mRzsPB5vC7OoQ3hNYGOiErNzAxy83GnFCIvC13gN4t447FkWDodaobJca IWFlKGPjLr8u3CzMx0+koeOmhWh+/3Vde731/8Y38YIVyevrG8LmQrXQr+D+DbXlNklMVSzU1db VZGC8EtbRC7ydPyDQVGDh7C04umRkqiqDrw8+YOrAzewhWK0Has1iWZ0OSeXU45jp8mdz3bgpT8 3y4dJErN5eFpFmErXVX1RhLeKUGS2/pb1U1jie0idSEErWHlSIWofoNRrvdSTV8EEfbh6BjQLrz e X-Received: by 2002:a9d:6b82:: with SMTP id b2mr2715414otq.210.1547570691855; Tue, 15 Jan 2019 08:44:51 -0800 (PST) X-Received: by 2002:a9d:6b82:: with SMTP id b2mr2715387otq.210.1547570691080; Tue, 15 Jan 2019 08:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547570691; cv=none; d=google.com; s=arc-20160816; b=xuRFE0/7dBMjeQjABuM4sU3HHKun7kMeAY64MqKvdu/qDqFx75FVV7xgwU8T0aZLZU /NvkEBoTvIh+1p/DxiQaATuWUZ5Cj9GC/BdjHXdOZsY/IUdtld98ZM6b/rSyb18oCq2E 9m0GXd5NgXMCT/Fqp+5wlqSBMsNJSgaNmsllR7ArCUV5OwiG0vvRxsuQRF9AxsZIzeqB yrPEhbCUqx5AnJYmeTTZAk8+LZgJpS4m+1qETsUwjJ2xLb14hW8FqJ29JnXX37NJFPjJ H54tHDH0hqPv+6hyTfxMQlQMMuzCAjP4KF/PECXaH9NpiwFKhSSEk6dJ2H439EGaKuTn MUiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=EpIzBv2JuwiOd+A0KNJW+FqkTH+uuE+Wcdu2A4E7Ku0=; b=oDHCdKyRj4ojJ9tN6bfxyYVO3y5nv6bloxKNlsx8kCs3PW0VcRZxPLm2Nfyva9hnU+ iVdH8cNfKPX9Ch0dPhZ6OVHlAb7wV7e0/OXC/XofuyZyfIpRiBVOfbqh1vDz69ohC7kw l4zkJn/srKwUaFYvIZ1qGu8N1YK3iI8pJmr3iDcVIYc2LfE8RNfNknzng/qqjxcM7W5m g1fYDO+cPJc1EUvhTn9zlavVMsdqgG5djLd1C7gGW2qHgCY2JGrDzl02kBO0lo8AvBhR UmEclEJ58KwfX1bI5MsBamtcWPWF8IVGFwGT+v+eO2vOfN7poK1iMinkopZK6rQO4Rw0 8dIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Gw8hVVii; spf=neutral (google.com: 209.85.220.65 is neither permitted nor denied by best guess record for domain of olof@lixom.net) smtp.mailfrom=olof@lixom.net Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e39sor2603785otb.132.2019.01.15.08.44.50 for (Google Transport Security); Tue, 15 Jan 2019 08:44:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.65 is neither permitted nor denied by best guess record for domain of olof@lixom.net) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Gw8hVVii; spf=neutral (google.com: 209.85.220.65 is neither permitted nor denied by best guess record for domain of olof@lixom.net) smtp.mailfrom=olof@lixom.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=EpIzBv2JuwiOd+A0KNJW+FqkTH+uuE+Wcdu2A4E7Ku0=; b=Gw8hVViiN68Y7xAR86tXDrISMG/bOjOnhZRG8kgYbaN2uhrhuWCprB30UZaekIcD9D Ejrq6tOOREeMpW7Brq7OnMq+abi5SsjdEajhVTKtJ7n0OOU3Keiy01oPcNKKXfOqL/Ag iabOKKtndFxRX0to/1FJZiclhEZwsGENzSxor14golKdlWPCkOJiZSaZYK7EWVv/t1ph JceUGwRwdECmbUfYWEk7pIim6rRgRJUAps8ojYKAebZhRtMP7AFMVVyAHO3AB7ZMy4rJ 10mGPWtuKuFTLrJDzkr8TCH1wBjh/7Sv6IpLiqHVQtqY2hkEQi6C/qS1KGIAF0pJHQWb XJwA== X-Google-Smtp-Source: ALg8bN6ePYYtCm7gM1GaBwvyZhItb5TXdEKJWB/wiA5F0owuWr8SwmgI4ZCeQT5DCjqUD9X/b9Msow== X-Received: by 2002:a9d:3784:: with SMTP id x4mr2676681otb.89.1547570690600; Tue, 15 Jan 2019 08:44:50 -0800 (PST) Received: from rip.lixom.net (99-152-116-91.lightspeed.sntcca.sbcglobal.net. [99.152.116.91]) by smtp.gmail.com with ESMTPSA id w4sm1462314otm.46.2019.01.15.08.44.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 08:44:48 -0800 (PST) From: Olof Johansson To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jan Kara , Olof Johansson Subject: [PATCH] mm: Make CONFIG_FRAME_VECTOR a visible option Date: Tue, 15 Jan 2019 08:44:35 -0800 Message-Id: <20190115164435.8423-1-olof@lixom.net> X-Mailer: git-send-email 2.11.0 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: X-Virus-Scanned: ClamAV using ClamSMTP CONFIG_FRAME_VECTOR was made an option to avoid including the bloat on platforms that try to keep footprint down, which makes sense. The problem with this is external modules that aren't built in-tree. Since they don't have in-tree Kconfig, whether they can be loaded now depends on whether your kernel config enabled some completely unrelated driver that happened to select it. That's a weird and unpredictable situation, and makes for some awkward requirements for the standalone modules. For these reasons, give someone the option to manually enable this when configuring the kernel. Signed-off-by: Olof Johansson --- mm/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 25c71eb8a7dbd..0d80d06d3715b 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -731,7 +731,10 @@ config DEVICE_PUBLIC the CPU config FRAME_VECTOR - bool + bool "Frame vector helper functions" + help + Provide some helper functions for frame vectors, to be used + by drivers who operate on userspace memory for DMA. config ARCH_USES_HIGH_VMA_FLAGS bool