Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp154796imm; Thu, 2 Aug 2018 16:00:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpepKEvkVhdFVvn7tblhM50WcGibiXkql/cj9RCeJkmaeustMRas6yVOfx0zCh5dArWnJixH X-Received: by 2002:a17:902:28aa:: with SMTP id f39-v6mr1192358plb.150.1533250800570; Thu, 02 Aug 2018 16:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533250800; cv=none; d=google.com; s=arc-20160816; b=iwTMqjtigTBqtE/4dR6yTaOwL/DxlshQeFQl2HADm1t8No4guNKXLEvKlNgf9Yfpr1 9I2bEs38RwdnhZbS+5kOMZTFN88+d6tPV0DwmjTJ7wLzUst6tWrFnwT6zkWVePPPJwfS FwYhV5aL9VzAI5oN4mc9gvffyRsPc6BEPYw/cMgMOV9Jwg8a+5gO7fdX1pAstkjNhX42 3y0h/HdC1N0xbuDTtqB9KlOJj+P8Tr5vFH/rFGa56eeI3d1KTzlIOD2LmPpnJ4HAFjvO ujUmFN9jvRWAdZIwPs1hGDq77Y4U29yRJVpYeG2cqi8ruEkXFaq40TIw6TmCy5nv6DpY H2fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=csHd2QQAlkwbAfCB5AfzsSIhwcvgDEQSrPMsy+81g7I=; b=etRt8gTK0ZtguYQQhrdoYGYGYUwqdWtqfxY747IQ6TFWE7hT069D+PPZ24wp6nbEF6 EGsccUVzdTHrj0assTae/9n3nOassrbG1sehikIX3X2nh260YU+eeB56FOgPM2Owm6jS f0JAdm7Dsub4j2aDIl+smTklzqjySNNQG6nyNMk3w8P73PRe8aJk9097B3+2ye+UkOXU MQBo7RFLnTmJuDudC4TfnMcZQwGqEX3a+UF8H+hN2CmrFaSXaxansDBmU/NdYgvQBdML X0ug2z5/5SfKEmBYEW/Pqmtd0Q0EtaVHEQt2kWwpBYGT6A3xdi+PfK/aidYlmbIyk4Vn jedw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bNQ72riw; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 128-v6si3516673pge.444.2018.08.02.15.59.46; Thu, 02 Aug 2018 16:00:00 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bNQ72riw; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732423AbeHCAwB (ORCPT + 99 others); Thu, 2 Aug 2018 20:52:01 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51860 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbeHCAwA (ORCPT ); Thu, 2 Aug 2018 20:52:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=csHd2QQAlkwbAfCB5AfzsSIhwcvgDEQSrPMsy+81g7I=; b=bNQ72riwdxOTKXMW5px03IgAX rmizJffELFGWf4CymPvUFhR7mrcUDRZGD0nVkHzV5gDk6erWsknwcP2B2T01lnh7M49Js59iW0i4Y 3kI5Oigt4Fe9lP00gMhgEqz4pVfVb5NVY3E9FYW9M+/Xy0ToctxZlDeRwgpzi+qventbHThrZpZ8U K2nTg1Fovtw+rsR42MEUlRT9xsWmp2tRWaMZ+IyuC7nA5NiRjYjhOgAhfSWqEKv4DP+OkbeZ9T7wC icbOmUuqgDQ3FtJXqxe5E6HN+5Ej+Hv1wOFUrWsHj94BA2seVL76Vfrhx8sspY55F2bthZBVWYByX 5sQR7OQdA==; Received: from 189.27.18.116.dynamic.adsl.gvt.net.br ([189.27.18.116] helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1flMY8-00018K-F0; Thu, 02 Aug 2018 22:58:28 +0000 Date: Thu, 2 Aug 2018 19:58:24 -0300 From: Mauro Carvalho Chehab To: Arnd Bergmann Cc: Lee Jones , Mauro Carvalho Chehab , Hans Verkuil , Jacob Chen , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: platform: cros-ec-cec: fix dependency on MFD_CROS_EC Message-ID: <20180802195824.26a9720a@coco.lan> In-Reply-To: <20180724093624.1670671-1-arnd@arndb.de> References: <20180724093624.1670671-1-arnd@arndb.de> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 24 Jul 2018 11:35:59 +0200 Arnd Bergmann escreveu: > Without the MFD driver, we run into a link error: Weird... I'm not seeing this driver at the media tree... was it merged via some other tree? > > drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_transmit': > cros-ec-cec.c:(.text+0x474): undefined reference to `cros_ec_cmd_xfer_status' > drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_set_log_addr': > cros-ec-cec.c:(.text+0x60b): undefined reference to `cros_ec_cmd_xfer_status' > drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_adap_enable': > cros-ec-cec.c:(.text+0x77d): undefined reference to `cros_ec_cmd_xfer_status' > > As we can compile-test all the dependency, the extra '| COMPILE_TEST' is > not needed to get the build coverage, and we can simply turn MFD_CROS_EC > into a hard dependency to make it build in all configurations. > > Fixes: cd70de2d356e ("media: platform: Add ChromeOS EC CEC driver") > Signed-off-by: Arnd Bergmann > --- > drivers/media/platform/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig > index 92b182da8e4d..018fcbed82e4 100644 > --- a/drivers/media/platform/Kconfig > +++ b/drivers/media/platform/Kconfig > @@ -535,7 +535,7 @@ if CEC_PLATFORM_DRIVERS > > config VIDEO_CROS_EC_CEC > tristate "ChromeOS EC CEC driver" > - depends on MFD_CROS_EC || COMPILE_TEST > + depends on MFD_CROS_EC > select CEC_CORE > select CEC_NOTIFIER > ---help--- Thanks, Mauro