From patchwork Thu Dec 18 17:50:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 42467 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6DC9126C6B for ; Thu, 18 Dec 2014 17:52:11 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id c13sf1252622eek.6 for ; Thu, 18 Dec 2014 09:52:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=UMbU5mD1wTxZ8RruffIjhDyhsfdBRXuY9EpWnY+ZutQ=; b=kPNr4AYlx1VKBuoth3dvM7DIUixgLNgBpeMfaeMWHHxnc17K+s/R2+UsQnRE8ppn7b b/5aNlhE7VHi4eWt9F2zdVcHos1cgROLuZE8+c8y4UtBPnjMYW4eiWsSvhewFFq3FU5q ROBNHmQhAmX6EKtxbaXhj4n+S8bY5isYTa+D+N8yqicybSM8CE3aMvH46uP+/36BEcda gKKmf8BsSzdHo/8B157idOKr9clowELnfhzdrRqUO8ScNc2deurZinqXTaC4Xw+K2v03 HabyjAmXocpTnnFY2iR3TgLbkvGRm62BaZB269JRg5CJU/i/nhon5peRN9aakp62s5Wo xXeA== X-Gm-Message-State: ALoCoQlLqCyynb6GgqNJImjS9K/Y9h/ZkpYSI+2VsLNvDeZfk5qH/GmTiyP2orqaW+8ZMba2F70u X-Received: by 10.180.24.35 with SMTP id r3mr602820wif.0.1418925130596; Thu, 18 Dec 2014 09:52:10 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.165 with SMTP id 5ls1270347lav.42.gmail; Thu, 18 Dec 2014 09:52:10 -0800 (PST) X-Received: by 10.152.6.67 with SMTP id y3mr3526662lay.90.1418925130408; Thu, 18 Dec 2014 09:52:10 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id uc2si7550292lac.80.2014.12.18.09.52.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 09:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id l4so1358557lbv.25 for ; Thu, 18 Dec 2014 09:52:10 -0800 (PST) X-Received: by 10.152.26.201 with SMTP id n9mr3601470lag.50.1418925130267; Thu, 18 Dec 2014 09:52:10 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp19215lbb; Thu, 18 Dec 2014 09:52:09 -0800 (PST) X-Received: by 10.68.248.69 with SMTP id yk5mr5249747pbc.155.1418925128408; Thu, 18 Dec 2014 09:52:08 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fn10si11135930pab.65.2014.12.18.09.52.04; Thu, 18 Dec 2014 09:52:08 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751695AbaLRRuu (ORCPT + 27 others); Thu, 18 Dec 2014 12:50:50 -0500 Received: from mail-wg0-f46.google.com ([74.125.82.46]:49222 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660AbaLRRus (ORCPT ); Thu, 18 Dec 2014 12:50:48 -0500 Received: by mail-wg0-f46.google.com with SMTP id x13so2327246wgg.33 for ; Thu, 18 Dec 2014 09:50:47 -0800 (PST) X-Received: by 10.180.20.6 with SMTP id j6mr7153018wie.59.1418925047313; Thu, 18 Dec 2014 09:50:47 -0800 (PST) Received: from mohikan.mushroom.smurfnet.nu (cpc4-cmbg17-2-0-cust71.5-4.cable.virginm.net. [86.14.224.72]) by mx.google.com with ESMTPSA id ly9sm9755510wjb.24.2014.12.18.09.50.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Dec 2014 09:50:46 -0800 (PST) From: Leif Lindholm To: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: viro@zeniv.linux.org.uk, matthew.garrett@nebula.com, jk@ozlabs.org, matt.fleming@intel.com, pjones@redhat.com Subject: [RFC] fs: make efivarfs a pseudo filesystem, built by default with EFI Date: Thu, 18 Dec 2014 17:50:49 +0000 Message-Id: <1418925049-3659-1-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.1.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leif.lindholm@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , efivars is currently enabled under MISC_FILESYSTEMS, which is decribed as "such as filesystems that came from other operating systems". In reality, it is a pseudo filesystem, providing access to the kernel UEFI variable interface. Since this is the preferred interface for accessing UEFI variables, over the legacy efivars interface, also build it by default as a module if CONFIG_EFI. Signed-off-by: Leif Lindholm --- fs/Kconfig | 2 +- fs/efivarfs/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/Kconfig b/fs/Kconfig index 664991a..a6bb530 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -165,6 +165,7 @@ config HUGETLB_PAGE def_bool HUGETLBFS source "fs/configfs/Kconfig" +source "fs/efivarfs/Kconfig" endmenu @@ -209,7 +210,6 @@ source "fs/sysv/Kconfig" source "fs/ufs/Kconfig" source "fs/exofs/Kconfig" source "fs/f2fs/Kconfig" -source "fs/efivarfs/Kconfig" endif # MISC_FILESYSTEMS diff --git a/fs/efivarfs/Kconfig b/fs/efivarfs/Kconfig index 367bbb1..c2499ef 100644 --- a/fs/efivarfs/Kconfig +++ b/fs/efivarfs/Kconfig @@ -1,6 +1,7 @@ config EFIVAR_FS tristate "EFI Variable filesystem" depends on EFI + default m help efivarfs is a replacement filesystem for the old EFI variable support via sysfs, as it doesn't suffer from the