From patchwork Thu Feb 8 03:08:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 127245 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1080251ljc; Wed, 7 Feb 2018 19:08:15 -0800 (PST) X-Google-Smtp-Source: AH8x226NnDtZAj4FIuccD0BtloM+ICJDUvAW0Y5lDWCvEGxG8wmg+oeZ8eRQxRr5c0TuRpihHkxv X-Received: by 10.98.217.25 with SMTP id s25mr8088957pfg.38.1518059295772; Wed, 07 Feb 2018 19:08:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518059295; cv=none; d=google.com; s=arc-20160816; b=vSNrW5TRRo9vPzzyqCUid+KGD5/L92CRtJV9F1llOUHLTHo0Iix7K/adn4kUUil1xl O+XulzZZrihC8z+SBLrPQBLlt7wTUzYtSe44CxxzhIS6fzWek/4noV7//G/zlGZ7KgQq e2sQBb+4ZxMC4wL9b9vITmS28fWL4NhhLwIbh0lrniNS64ztpocEH3ULMO21i/a4MXgG j88c5kPRTdMOrEaFLy3brIzZ0ZWTsufmu9z+jPmcjeWpictMMHeQUkNlxx1uf/TYEGLa hGV8AW8tCVu8zi+/pAWgnxEE8/FfmypFLUaeCkW+jE4JDaU/9KZxWffHTjY07QGQdeUn q/NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date:dkim-signature:arc-authentication-results; bh=6x1Z77slQlGMp2nnO8RPU2pM3Wfjo8sLITYoQncOtT8=; b=HkDmdNYD4rcWMzNAFl8ZRcB87xJjzXxcZ6J6e+g4dCG/M4rAVVE9GnYDQ7tLNApvrb bH2U0gX2lnL0q72FifHu5O1K+J3YrNpPP26aFNB8NGmT8IQ/woePKHtgeAfK0EnprvX2 vYBvgq7gXczaRV5lzvdJbhOLU+hfL5u79fKdMKvE4CMgsRXfzKgO8K0DvkllMPB5p2Ou 2TO3IuapQsiSkOUqTlcVuCP6nxceyFAs2nnsrOlN6FPp03sqoBpOjFJuQMNY7NOOnXGa 7XsBVMmDdzFIbVnfpW87bBY7ZcB4lAPJbAJQ5fmIg9DrgN+5vihhy7JE9XvemGQ0ZADz Xlsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BYT0vRrB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8-v6si2069348plp.785.2018.02.07.19.08.15; Wed, 07 Feb 2018 19:08:15 -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=@linaro.org header.s=google header.b=BYT0vRrB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751946AbeBHDIM (ORCPT + 14 others); Wed, 7 Feb 2018 22:08:12 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:35734 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbeBHDIL (ORCPT ); Wed, 7 Feb 2018 22:08:11 -0500 Received: by mail-qt0-f193.google.com with SMTP id g14so4486926qti.2 for ; Wed, 07 Feb 2018 19:08:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=6x1Z77slQlGMp2nnO8RPU2pM3Wfjo8sLITYoQncOtT8=; b=BYT0vRrBq2/I/4NbaWIcbtCxkSx+dVWr+4niaQaFVg5Yp+xQA9bwFOI1WXusUK4msR UAh8j5O13GhnqQ7Zau4RGJEn/R1MrTesM6jlkNHZqSkf5G5mFrB8lNfbRnmEPsluA6vu S+0oD1/XTZe/oc0u6t+CSXzz8ipFDgvuyXW/o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version; bh=6x1Z77slQlGMp2nnO8RPU2pM3Wfjo8sLITYoQncOtT8=; b=IALpKZsGS5CEFKg5xUqI9WjSHI2reN4qDzPWnZ2Xid6K97WJO1jq3bVBe1j5t/p8vx 83X4de0O74PgBq2b9cQXxK7R+IDAatoU2MQV7wH/Ack1jwbQbU4rweq8aZ7QQL5KZP69 VwaE6FGnZyrLZgKPtFqgoO3MkQDWjLa5MdkmWBImbVyy/b4bN+zmSy4KvRwNaOB4OeyP j7XAXYaf4RZjev6sDjZqiw2E2Kwh3EFKEahOxc2iJfM6/9jiAsW1GaEbVdBoxTqsP98k aSSS5QnGMDdo9Ur2CUBJUL5YjrpA7OovKarCZ73DFvpLTVkdJ2ggjliLMRAU49K9gRX2 6+cQ== X-Gm-Message-State: APf1xPDJFjy4tjywzJMEFfX2M0YJmvSs7PVc1IQMhzGbERc6TYsXNPA6 zT7JRO1uE6QQyWoSLbcP+DxXtK75u7Y= X-Received: by 10.200.53.107 with SMTP id z40mr13080930qtb.278.1518059290771; Wed, 07 Feb 2018 19:08:10 -0800 (PST) Received: from xanadu.home (modemcable228.104-82-70.mc.videotron.ca. [70.82.104.228]) by smtp.gmail.com with ESMTPSA id t22sm2173921qtj.39.2018.02.07.19.08.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 19:08:09 -0800 (PST) Date: Wed, 7 Feb 2018 22:08:08 -0500 (EST) From: Nicolas Pitre To: Linus Torvalds cc: Al Viro , linux-kernel@vger.kernel.org Subject: [PATCH] cramfs: better MTD dependency expression Message-ID: User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit b9f5fb1800d8 ("cramfs: fix MTD dependency") did what it says. Since commit 9059a3493efe ("kconfig: fix relational operators for bool and tristate symbols") it is possible to do it slightly better though. Signed-off-by: Nicolas Pitre --- Linus, Viro once told me that my cramfs pull requests could go either to him or to you. I have only this one patch at the moment, and since it depends on a commit that recently appeared in your tree I'm therefore sending it directly to you. diff --git a/fs/cramfs/Kconfig b/fs/cramfs/Kconfig index 58e2fe40b2..5933f99530 100644 --- a/fs/cramfs/Kconfig +++ b/fs/cramfs/Kconfig @@ -33,8 +33,7 @@ config CRAMFS_BLOCKDEV config CRAMFS_MTD bool "Support CramFs image directly mapped in physical memory" - depends on CRAMFS && MTD - depends on CRAMFS=m || MTD=y + depends on CRAMFS && CRAMFS <= MTD default y if !CRAMFS_BLOCKDEV help This option allows the CramFs driver to load data directly from