Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1239514pxu; Mon, 23 Nov 2020 15:39:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlPmkI1AuLogkbbmAFXLUyzWA8ZBnS9Uc7JxitziX9whVbhCaIhHtokItrz4f/5Iug6B11 X-Received: by 2002:a50:8562:: with SMTP id 89mr1514942edr.144.1606174746398; Mon, 23 Nov 2020 15:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174746; cv=none; d=google.com; s=arc-20160816; b=tFBq2Ag0iE1ZMaC0/PdTzdqMDf7ZCxTakfsYhUxPU+ruGj/dOc7jVJxYFO2c9JGnVd 2mkAQXVb2rZCukiu6EJA3Od9Ra7nKedy/ANoPiGL+QsTqwTu9U1+9mnBx/DNo2+rdTqV 7IFPqdxWEEsQQuDNeCumjyQBsunXnMgLuz3KoBpvbo8jDazy3UpRQx05RJVZnEYXrfKW +5fGHpR0EwzR/fvrNpqok1dYMr9+eiAZccJRJyeSbba6rB8W0ejMdr7RMQadRAvx6RHL WVCIHsmHF3wVOjb9Aku8tyFZ8qgo4fJYRXPhW6sNkycKueWqW1x+uM1w9PpaVFuzEi2b hoig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jog4o7b0XpDRNon/7W+WzENlGAAuoIxDayzqD1yy/Is=; b=haCJf1DTHicXe9TIF49rWXl/hF9ZceYvZRnCBH7PcjO06uNHhfUTBLJL1zJdKihokd ZMmxCO+OvlsdZ66swJ3Puu+uCUswAi84C54PnZCXxtY9g/rrXoWhof2yH2Xmr34dVHH2 E3bY4Im81FZohz1xKI4ryH/X0Hm2uLGZnsncX3oB4+jRi6jnVC5bkESdJSMG8eIKSX5z ychxlVbQ/AASATscxfBnNDAZgJ6DPHuXRFEqMpjNf6KCT5uHt1qmLCWenH6pYb/ALkt7 czFq1iD1KXBnjxWfiJNoLQsAKQ6GEqQwypJaT6ALjm48QcvEVU1nUsphUHww7yJKRlSK yFkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FNDXzjxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si7837280edm.82.2020.11.23.15.38.43; Mon, 23 Nov 2020 15:39:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FNDXzjxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732588AbgKWMlB (ORCPT + 99 others); Mon, 23 Nov 2020 07:41:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:53608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732553AbgKWMkv (ORCPT ); Mon, 23 Nov 2020 07:40:51 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8507320732; Mon, 23 Nov 2020 12:40:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135247; bh=ymHBzHjZBKjhUiOdIHUAkAUL3+rX6EiiTK+jwWixTVI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FNDXzjxcMSbeeIt2LT+frfgD1yhaikN3RDMa2KrcsUNBtzVWrOXJym2anRSFlQqSm CE0RZqzGW6fXum521FFdZtMdRjW8v5MezL8eqh5TEs/jxUJniTMrZzvpj1ExODG5kv ENknouFe7Og78508KXsoPlajVSSYYtNl+is4LGy4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Necip Fazil Yildiran , Jonathan Cameron Subject: [PATCH 5.4 128/158] iio: light: fix kconfig dependency bug for VCNL4035 Date: Mon, 23 Nov 2020 13:22:36 +0100 Message-Id: <20201123121826.109321732@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Necip Fazil Yildiran commit 44a146a44f656fc03d368c1b9248d29a128cd053 upstream. When VCNL4035 is enabled and IIO_BUFFER is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for IIO_TRIGGERED_BUFFER Depends on [n]: IIO [=y] && IIO_BUFFER [=n] Selected by [y]: - VCNL4035 [=y] && IIO [=y] && I2C [=y] The reason is that VCNL4035 selects IIO_TRIGGERED_BUFFER without depending on or selecting IIO_BUFFER while IIO_TRIGGERED_BUFFER depends on IIO_BUFFER. This can also fail building the kernel. Honor the kconfig dependency to remove unmet direct dependency warnings and avoid any potential build failures. Fixes: 55707294c4eb ("iio: light: Add support for vishay vcnl4035") Signed-off-by: Necip Fazil Yildiran Link: https://bugzilla.kernel.org/show_bug.cgi?id=209883 Link: https://lore.kernel.org/r/20201102223523.572461-1-fazilyildiran@gmail.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/light/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/drivers/iio/light/Kconfig +++ b/drivers/iio/light/Kconfig @@ -485,6 +485,7 @@ config VCNL4000 config VCNL4035 tristate "VCNL4035 combined ALS and proximity sensor" + select IIO_BUFFER select IIO_TRIGGERED_BUFFER select REGMAP_I2C depends on I2C