From patchwork Mon Oct 3 07:52:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 77206 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1525194qgf; Mon, 3 Oct 2016 00:52:56 -0700 (PDT) X-Received: by 10.98.223.65 with SMTP id u62mr7794453pfg.15.1475481176864; Mon, 03 Oct 2016 00:52:56 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si6276703pfg.61.2016.10.03.00.52.56; Mon, 03 Oct 2016 00:52:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751140AbcJCHwz (ORCPT + 4 others); Mon, 3 Oct 2016 03:52:55 -0400 Received: from mail-lf0-f47.google.com ([209.85.215.47]:33793 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751098AbcJCHwz (ORCPT ); Mon, 3 Oct 2016 03:52:55 -0400 Received: by mail-lf0-f47.google.com with SMTP id b81so28214750lfe.1 for ; Mon, 03 Oct 2016 00:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QGnb8nS0aHj1GmZbWsNZwI57/KkmjSpVFyEXSJd+xEo=; b=dw8Csh8+6fS+MKSGrsRFCzHJIJcnCdpc7nDJMWWT+rFblCMOr+0lZPvT4Wimhb1EWd 2V3nuMyamHRmbiLyxfeTJa7ybXyjzrBMS0cZDQMiQZghcHVTmfvByxwxgx93gciY0g56 WlVXN6RvnZzi/aKPwq9eZXe9T2bJ7wruwhdGM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QGnb8nS0aHj1GmZbWsNZwI57/KkmjSpVFyEXSJd+xEo=; b=VaHPcv/PvANJAmZSy9z0u2riE2MrxsDVciJL/wSogddfvzMrM+8gTN+iNekTldfRgd oYUEChdbGC6O1U4eYFD74Mv+7Ch9HGOuCbuffLLVUk30kx+bU6RFVtRGxl/iq9fDQlu8 zPRJxlf1XOg/Cgr4MYSmXOVfcZtrTalovPpWGFY1Bw5sqSAFVmaTVj9e/GZhXsTWHUUB EwccmvE/RnTTA4fgJIPgmM4ITpcPk0DJPizr2q0VWWPBGmQIaNlipYuTVJccLPdvH+zV fpWyl3PpBmCnkaiIPOcPFbvZXbHGCZXHwifpTVlUzNtMkjRTZfzf7GuB2eZ+FC4tVRSn V9Jw== X-Gm-Message-State: AA6/9RnxtG/FMV8R9kEi4omshIk65rq1P6h5zNvMwDTaS2rwoFBJHlexgr2dc9MxU2iz/q6+ X-Received: by 10.25.213.194 with SMTP id m185mr7318706lfg.55.1475481173667; Mon, 03 Oct 2016 00:52:53 -0700 (PDT) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id d15sm5492799lfg.0.2016.10.03.00.52.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Oct 2016 00:52:53 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org, Alexandre Courbot Cc: Linus Walleij Subject: [PATCH v2] gpio: make memory-mapped drivers depend on HAS_IOMEM Date: Mon, 3 Oct 2016 09:52:51 +0200 Message-Id: <1475481171-4416-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This one is pretty obvious: on UM Linux compilation of things like allmodconfig and allyesconfig will fail due to the absence of IO memory. Simply make these drivers depend on HAS_IOMEM, it has been implicitly assumed all the time, so just make it explicit. The generic MMIO library also assumes that IOMEM is present so make also this depend on HAS_IOMEM. Reported-by: kbuild test robot Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Also make GPIO_GENERIC depend on HAS_IOMEM --- drivers/gpio/Kconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 59ba58b8ac13..2401443cbf28 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -65,6 +65,7 @@ config GPIO_SYSFS exported to userspace; this can be useful when debugging. config GPIO_GENERIC + depends on HAS_IOMEM # Only for IOMEM drivers tristate # put drivers in the right section, in alphabetical order @@ -74,6 +75,7 @@ config GPIO_MAX730X tristate menu "Memory mapped GPIO drivers" + depends on HAS_IOMEM config GPIO_74XX_MMIO tristate "GPIO driver for 74xx-ICs with MMIO access"