Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5255507imu; Tue, 15 Jan 2019 14:11:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN7L9DNY+ArIzKE3GWPYoEGjJfgEh8Whma6yhcztXwCxaD9XSrxp018Gjkp9J+TqfHpDhys3 X-Received: by 2002:a63:6c48:: with SMTP id h69mr5568986pgc.139.1547590270133; Tue, 15 Jan 2019 14:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547590270; cv=none; d=google.com; s=arc-20160816; b=lUrwUAns6TF1gHa74WpP5IJDuU7S/wEgvPsdDIcat2zbSXZlypPJh0qsrtRvUpAQXK 1CPLnKWFi/NkbpyAJ8R8Wp0KndQhn/YtR7Kb+SJsjefmTK2WLllEXedT4PcCJvcX5OW0 IjpT7X7TARr5Du9PDIDy1jPrB/yh5K6thx3iFuavMOBv+ZLUq5dRjDlsSxTVWYs8CeYd qyt0xGAB4OFYuSo1hzxrY+zgix/DWj6Q04zVLI4zVT0sBKxPzPDZ71ATzVi6Ua7idfih XCwrTsKOfWh7ku7t/TuC+v8WQYS0tINACE6m23ZJb2iZBkI5NdwRPc9aF7B4dL3r7zkm fMDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=EpIzBv2JuwiOd+A0KNJW+FqkTH+uuE+Wcdu2A4E7Ku0=; b=FOrWMA1ChuvXEF7EH6d+2vUB7rj8zK58CenmjlE7T0kg1DGZQMYUGGTGmww4b4VrIM hQ0Oln3YM4PsQbdFyI4EHe6x7V1ZJX286zDfJhdOxqTxBCjjdaDOr6okPOtkYvtXTzyU vRytG+RMzUqbKV7kChNMolS0wRkrGwY9vKfn60cm1ke+iLfAiW7o+hmmU7JuOzfNyIaa iwz82yPOZuEaQeorhLOJ3S89AxrLyVHTtEVUE3ETuFUBpJEjnJJjBbMy8IzAdYPaz3Sj LWfpQqLA0rqkB/cBnm5CiT5Owqa2HyttqkuPNc+hmZ8fqCaOdz65uk/xRZ8rIwlelH3f 9Exg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Gw8hVVii; 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 c17si4223545pgl.385.2019.01.15.14.10.51; Tue, 15 Jan 2019 14:11:10 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Gw8hVVii; 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 S1729786AbfAOQwG (ORCPT + 99 others); Tue, 15 Jan 2019 11:52:06 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40085 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387622AbfAOQov (ORCPT ); Tue, 15 Jan 2019 11:44:51 -0500 Received: by mail-ot1-f68.google.com with SMTP id s5so3053233oth.7 for ; Tue, 15 Jan 2019 08:44:51 -0800 (PST) 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-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; bh=EpIzBv2JuwiOd+A0KNJW+FqkTH+uuE+Wcdu2A4E7Ku0=; b=ksgd9a/6RgiskQv+jiiAyeum4U+Ve4vOMxeN2+K8jTocYamf/BcryZueHfQbOPaOw2 1sAsh50w35yGfmkObsHgVnfkBVsAPf4KErsS/HXQNXueRQU4d0hyfJCduMbrlv+T0inQ 8lvJkEeIQBvET6nck/RJJ9AeJJTZzD9YgyaLewPF7M80TbyXjAYgtkAiFZ3+yhEBCeh9 Z0S8ntPY26ueeiha9p7XsUpZLUaLEw6LKIUR1vLEf5K8oAJHCWTWbv8Y/R2fvuOFE37/ dmcW6lrHNPJtUgacYd+rgPjzjWIkf0op0ymy9AuZOSK//UFKjyPN7tlYHX9LI7z0m+hP 41jQ== X-Gm-Message-State: AJcUukfOTKSdMV2S2/QvSEE0VvidkH2KAIc2g3siy1a/0Zu1jzBP2f57 U35uNLtTeme22vEPiNtXXC0YoA== 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.11.0