Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1312045pxu; Mon, 23 Nov 2020 18:03:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1bTQDT532AznF3VoZKROUjwu72pH0bm2zsdsS0g1XVIX0mgbkYeu56nacWsf5EkDqIDNI X-Received: by 2002:a17:907:b02:: with SMTP id h2mr2299864ejl.128.1606183438006; Mon, 23 Nov 2020 18:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606183437; cv=none; d=google.com; s=arc-20160816; b=vHjCtGb1dEwyPSCzmIFa87iJsnR5+iLVup5T9qgmvTZulWXIegSl1oDqZ9BXqvxHDL a2ZMEzZOILajG7KLSzlp0cJIi2JTzEbzvxcmH13dsAKhGnrvFXyFMBqwDerlvXPz0yiE oYCnMZ+cyQusy/RTTNUMwqzj9wmZ9vFzToBK8krOxFDWWhJ+vK6wM4kvfv0hII1PRCK3 UZ1fSOSpIK6b4sSkmUaQcPRgBFkZzRTqxCfUhUGt9x8AXsRZpHOl/oZBLSDePJsfanoZ ScVEv2jbesybMs5gPlSD7dw4ayewHD9HZK6mNHcVWAXAx5lAExvFb6xAEoomAq62OmAL NZfA== 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=rOigs8fz04xlbzlFLJRvTocGpSsgj5xPaNYY9Zds3v8=; b=YZyLXTg27Y9U/zF0rcBXn4D6dbFSo27akFCHw4mJJbZKnq1zxeK8WJ+tOWWkm4OEWQ qOy8n7q3IR8B1OgKX07kZMUW9WaRFyvqmWasDPT0eFDpWyE44KJn87tyP12VrETuycI0 n9VTEBWKnxwSYdtMMkCICvQUwmDnLV507YqB+JOEV/zPdaeO5huwHUzuDXqPGLrZUdzH hvQcf7BKGqdzg+pph6FL2Fer72MWqKHg2Fo57qqtpnkmxi7onu7/DICTb0xfIeBhD5+0 GOIYskDyZGpkElT+vKAXhIatn2TkoxMiTs6lfmrMXImO4qpROwQdNTd7fG2hhcJs6ZUT UT3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CskJEY4s; 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 g17si8083516edy.62.2020.11.23.18.03.35; Mon, 23 Nov 2020 18:03:57 -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=CskJEY4s; 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 S2387996AbgKWM5D (ORCPT + 99 others); Mon, 23 Nov 2020 07:57:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:35062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387570AbgKWMuN (ORCPT ); Mon, 23 Nov 2020 07:50:13 -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 1442820732; Mon, 23 Nov 2020 12:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135811; bh=oPUhD/T6BLwobwl3vMets3BnqUAfw4rXvriwVf/7Wac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CskJEY4s5z9mLF2r4ddetedBE5xyZv/1sWQjXwCQKWiJCFMO1HPTu8aG8m87oHi2Z mP5jeMHA9+at4Ew5XXbrsEekSLO0tfjQa4t/abG0HHj7YNDijdw1GNhQSSEjaGfDtv 5Q027IPueqEDRW2D+YQUg3DbUK6RK+8nbtFedzyc= 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.9 204/252] iio: light: fix kconfig dependency bug for VCNL4035 Date: Mon, 23 Nov 2020 13:22:34 +0100 Message-Id: <20201123121845.419781663@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121835.580259631@linuxfoundation.org> References: <20201123121835.580259631@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 @@ -529,6 +529,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