Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3824114ybv; Mon, 10 Feb 2020 07:05:13 -0800 (PST) X-Google-Smtp-Source: APXvYqwuL4vINMe0xs+NoWbN17wJ/Kopng5pkZPFjgGtoC+VVQ/5bZM/ThfsIdkKnmkrGYSeStcB X-Received: by 2002:a9d:6a85:: with SMTP id l5mr1448086otq.231.1581347113050; Mon, 10 Feb 2020 07:05:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581347113; cv=none; d=google.com; s=arc-20160816; b=m7FdDwitHnWIgHQRatNjIqD3ShXj9QKbc5tnQb0cGjdB1mxKbALB5LlWoCxw1H01o/ fR3ApvYnGPsltNymJtk0Nj8Ja/NAuA9HsAZ5yyiUeXyqRv+kA92bHwlVgyw4HwdlCWa3 lUqqNoEVA24088fU6/ihN8N3YMYV4PG7N9w2oH4g6i4jQRmX3pUPYTes0UWNZoqb/kuE cu3J/Dxpxmfi9YhfFgXOE8N+RnWfruD2zO2rATjfBA9lcekXrxakGibR4GnKKpL928HA U3W8nsEnwIT53+2Aho4Ac4T6Z6y6aUL6jKV1oQRc/wdI/FLPaucfazHMFRpHTuSq4XSo o2kQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=BE0bCPZuTAfeUiylD9ocvf/QTwrb4ODzNmU5XCGzlsQ=; b=aJ2dD/pWBndW3iQK/FJrO1kkwxelOKZksvv0/3LKcWF15F0ApXjru/5lAtyHl9cOpG wKyFVoFp51jreSn/xG/SEftWBq/Y4IzjKLpP1frD5igIYinlIX5u1RcaYI56G4WDw1gn JcMSma/xG2QVlx6CSUs+U+EDHjmgpTj08vqKr9scf0Ro/+N0qIeuFChZG2DQcvilPVqr 8uVr8GbL5NTqjVmDS++TVY1Mfk1ILltYQsEpL7eRc9cRHnqnKxRyHashXbcFXDiwAw0N lf/A/ChMMwK04+s8Y3gcSE81ilv1VoOrmzgUmxBslRb9pjB54Qo6J8o6fvvb/bFX9O8k ITMQ== ARC-Authentication-Results: i=1; mx.google.com; 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f28si362788otc.110.2020.02.10.07.04.55; Mon, 10 Feb 2020 07:05:13 -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; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728815AbgBJPDO (ORCPT + 99 others); Mon, 10 Feb 2020 10:03:14 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51874 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbgBJPDN (ORCPT ); Mon, 10 Feb 2020 10:03:13 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 725CF290B17 Subject: Re: [PATCH v2] platform/chrome: wilco_ec: Platform data shan't include kernel.h To: Andy Shevchenko , Nick Crews , linux-kernel@vger.kernel.org, Daniel Campello References: <20200205094828.77940-1-andriy.shevchenko@linux.intel.com> <20200210145721.GX10400@smile.fi.intel.com> From: Enric Balletbo i Serra Message-ID: <4e78d3ca-7e41-a201-18c8-d91923423827@collabora.com> Date: Mon, 10 Feb 2020 16:03:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200210145721.GX10400@smile.fi.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On 10/2/20 15:57, Andy Shevchenko wrote: > On Wed, Feb 05, 2020 at 11:48:28AM +0200, Andy Shevchenko wrote: >> Replace with appropriate types.h. >> >> Also there is no need to include device.h, but mutex.h. >> For the pointers to unknown structures use forward declarations. >> >> In the *.c files we need to include all headers that provide APIs >> being used in the module. > > Anybody to comment? > LGTM, I silently queued this patch this morning in our kernelci branch to give a try. Waiting for the results, if all goes well will be queued for-next. Thanks, Enric >> >> Signed-off-by: Andy Shevchenko >> --- >> v2: update *.c files (kbuild test robot) >> drivers/platform/chrome/wilco_ec/properties.c | 3 +++ >> drivers/platform/chrome/wilco_ec/sysfs.c | 4 ++++ >> include/linux/platform_data/wilco-ec.h | 8 ++++++-- >> 3 files changed, 13 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/platform/chrome/wilco_ec/properties.c b/drivers/platform/chrome/wilco_ec/properties.c >> index e69682c95ea2..a0cbd8bd2851 100644 >> --- a/drivers/platform/chrome/wilco_ec/properties.c >> +++ b/drivers/platform/chrome/wilco_ec/properties.c >> @@ -3,8 +3,11 @@ >> * Copyright 2019 Google LLC >> */ >> >> +#include >> +#include >> #include >> #include >> +#include >> #include >> >> /* Operation code; what the EC should do with the property */ >> diff --git a/drivers/platform/chrome/wilco_ec/sysfs.c b/drivers/platform/chrome/wilco_ec/sysfs.c >> index f0d174b6bb21..3c587b4054a5 100644 >> --- a/drivers/platform/chrome/wilco_ec/sysfs.c >> +++ b/drivers/platform/chrome/wilco_ec/sysfs.c >> @@ -8,8 +8,12 @@ >> * See Documentation/ABI/testing/sysfs-platform-wilco-ec for more information. >> */ >> >> +#include >> +#include >> #include >> +#include >> #include >> +#include >> >> #define CMD_KB_CMOS 0x7C >> #define SUB_CMD_KB_CMOS_AUTO_ON 0x03 >> diff --git a/include/linux/platform_data/wilco-ec.h b/include/linux/platform_data/wilco-ec.h >> index afede15a95bf..25f46a939637 100644 >> --- a/include/linux/platform_data/wilco-ec.h >> +++ b/include/linux/platform_data/wilco-ec.h >> @@ -8,8 +8,8 @@ >> #ifndef WILCO_EC_H >> #define WILCO_EC_H >> >> -#include >> -#include >> +#include >> +#include >> >> /* Message flags for using the mailbox() interface */ >> #define WILCO_EC_FLAG_NO_RESPONSE BIT(0) /* EC does not respond */ >> @@ -17,6 +17,10 @@ >> /* Normal commands have a maximum 32 bytes of data */ >> #define EC_MAILBOX_DATA_SIZE 32 >> >> +struct device; >> +struct resource; >> +struct platform_device; >> + >> /** >> * struct wilco_ec_device - Wilco Embedded Controller handle. >> * @dev: Device handle. >> -- >> 2.24.1 >> >