Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4414389ooa; Tue, 14 Aug 2018 05:46:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzYXk/LNW26cppF0FNPrsg//vWl6dh2Qx1aXg24IboKDuFHpEKJkiLXiyJGfj6NHhElroSp X-Received: by 2002:a62:591a:: with SMTP id n26-v6mr23271771pfb.94.1534250808113; Tue, 14 Aug 2018 05:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534250808; cv=none; d=google.com; s=arc-20160816; b=EtXL+pOgwKrTYpaGZQjdkvH17igO0hnX9wYHCTSIDxJ1Tx55dWnV5XZVVCxLh9N1g5 MWfyXfCRsVjcGsKul57cC4LZIqW6uC+wYP9B31PGX8ZW6uppJoIRVjm6aTtl9uSKgAwD mURRDXQp0DSapsmZHTA7xs7KHGw7O8PH8oDX3EC3rq40z6wQWHp5Hr31xt9klIJUony0 aRIUKQyHdBOV4z6yJo/ypraRDpr70h1gdMNUyALcIFl67zdDO9a3JJ6iIsEgsDw03xhx dBvNxFnG9Bm+gG3be0tlvlIIpeuSmbh5nvEhlRUtR90UVVEvPmuO59hV40LF+IY9BE0L LWNg== 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:cc:to:subject:dkim-signature :arc-authentication-results; bh=vI/M425Eix1liHmzuPZme1Dyugw4ohhFXgrbfxEYQlw=; b=N4gXVCJVVzAI/F0gEYDSW4/djBCxcdLkAMsK+6dQmQkZUinIRayCBEA/jmlKnR8ads AiyYrz1DzrTKjr+PpDPZHcgDn7MMY1Qwo4ZAAunucF6PHWzC3ofXQHFb1wFCfyVRRD0w 5Ypz2ji/NqB0ZaW0oqidlgiAEBEEK0+YQBgpPTmrGfkHasvuJRnVL0vNgbSTWoDlVqzz epqoga4QdHQhxEvZQYNvkVgZ9zzjd/keBOH2ThXj8asueXMemkb1r6tKQAbWDtNT3kUp O73pufWgjM/JYHh+t2NrDQuSWjBb1iEywmrEXaqRCONoGCUfMBK6iRbffKq0vQG+rst9 dMqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uw0QK07X; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4-v6si18438028pgd.657.2018.08.14.05.46.32; Tue, 14 Aug 2018 05:46:48 -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=pass header.i=@linaro.org header.s=google header.b=Uw0QK07X; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732287AbeHNPci (ORCPT + 99 others); Tue, 14 Aug 2018 11:32:38 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:47055 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731328AbeHNPci (ORCPT ); Tue, 14 Aug 2018 11:32:38 -0400 Received: by mail-wr1-f65.google.com with SMTP id h14-v6so17083433wrw.13 for ; Tue, 14 Aug 2018 05:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vI/M425Eix1liHmzuPZme1Dyugw4ohhFXgrbfxEYQlw=; b=Uw0QK07XVjp8UjbvBKWtpJW/dfR1zgMnt4jurv/krjuYmF+9MLOjQPVdmOovIM3DOS 7cWn3AAyF9jYCz1hq3LQwqWGcROxUt49VmXY3kB0Rvm74bBso2ZM+OpJt75/APPOOEuY y4DTporFvFkXP8nloAWVkDcDzkPv4K6buBOHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vI/M425Eix1liHmzuPZme1Dyugw4ohhFXgrbfxEYQlw=; b=AEJhUp8Gx30JDu4yhqtXV2OZm/vQ8wSjOGZNwUYAgmli+A6hzmYkxsqRDFsqqaiorg SFjqtI2+8zZ6bDFCG4zerWP2ouLd6jxROebqljvC2rVCa+dEkxuTpe7qmRQmMD2ZRBFQ cg93LdkMGhrR/7axf91u1CoU0rthDkMleeGs6niQYX4acvvEppl6bBewTmo3O4G7osRo hvvQ0BSvbkaS80aeJysS83tM9ytWwIEGYcwcY0GjEAmv4or78sP/Qk26vBeAt6Nj5lGQ EUt+L0HZwa10GDvIELneioa5YWV4uQ/lN4DLaSJ0RInZz+p2CWmKO+Ol/DLk5iGH9XkP QhgA== X-Gm-Message-State: AOUpUlFoAEEHuORvzdTrqUAiHatfWmJrRwJ5Dpcp0csNuZiKPCUgl3Yh nBDy8yLWyMS31WXVeToC8yg/b8u3xxU= X-Received: by 2002:adf:ff11:: with SMTP id k17-v6mr14049212wrr.255.1534250734820; Tue, 14 Aug 2018 05:45:34 -0700 (PDT) Received: from [192.168.27.197] ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 198-v6sm24980380wmm.0.2018.08.14.05.45.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 05:45:33 -0700 (PDT) Subject: Re: [PATCH] [v2] media: camss: add missing includes To: Arnd Bergmann Cc: Mauro Carvalho Chehab , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180814091636.1960071-1-arnd@arndb.de> From: Todor Tomov Message-ID: <565437f4-e01a-4558-ccc1-4f312e26cf35@linaro.org> Date: Tue, 14 Aug 2018 15:45:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180814091636.1960071-1-arnd@arndb.de> 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 Arnd, On 14.08.2018 12:13, Arnd Bergmann wrote: > Multiple files in this driver fail to build because of missing > header inclusions: > > drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c: In function 'csiphy_hw_version_read': > drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c:31:18: error: implicit declaration of function 'readl_relaxed'; did you mean 'xchg_relaxed'? [-Werror=implicit-function-declaration] > drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c: In function 'csiphy_hw_version_read': > drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c:52:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration] Thank you for noticing this and preparing a patch. I build for arm64 and x86_64 with compile test enabled and I don't see these errors. Do you have a guess what is different that I don't have them? > drivers/media/platform/qcom/camss/camss-ispif.c: In function 'msm_ispif_subdev_init': > drivers/media/platform/qcom/camss/camss-ispif.c:1079:16: error: implicit declaration of function 'kcalloc'; did you mean 'kvcalloc'? [-Werror=implicit-function-declaration] Maybe we have to use devm_kcalloc instead of kcalloc here, I will check this. Best regards, Todor > > Add the ones that I observed, plus linux/io.h in all other files that > call readl/writel and related interfaces. > > Signed-off-by: Arnd Bergmann > --- > v2: actually add the linux/io.h instances for files that did not show > the error but might still be affected because of the readl/writel usage > --- > drivers/media/platform/qcom/camss/camss-csid.c | 1 + > drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c | 1 + > drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c | 1 + > drivers/media/platform/qcom/camss/camss-csiphy.c | 1 + > drivers/media/platform/qcom/camss/camss-ispif.c | 2 ++ > drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 1 + > drivers/media/platform/qcom/camss/camss-vfe-4-7.c | 1 + > 7 files changed, 8 insertions(+) > > diff --git a/drivers/media/platform/qcom/camss/camss-csid.c b/drivers/media/platform/qcom/camss/camss-csid.c > index 729b31891466..a5ae85674ffb 100644 > --- a/drivers/media/platform/qcom/camss/camss-csid.c > +++ b/drivers/media/platform/qcom/camss/camss-csid.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c b/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c > index c832539397d7..12bce391d71f 100644 > --- a/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c > +++ b/drivers/media/platform/qcom/camss/camss-csiphy-2ph-1-0.c > @@ -12,6 +12,7 @@ > > #include > #include > +#include > > #define CAMSS_CSI_PHY_LNn_CFG2(n) (0x004 + 0x40 * (n)) > #define CAMSS_CSI_PHY_LNn_CFG3(n) (0x008 + 0x40 * (n)) > diff --git a/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c b/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c > index bcd0dfd33618..2e65caf1ecae 100644 > --- a/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c > +++ b/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c > @@ -12,6 +12,7 @@ > > #include > #include > +#include > > #define CSIPHY_3PH_LNn_CFG1(n) (0x000 + 0x100 * (n)) > #define CSIPHY_3PH_LNn_CFG1_SWI_REC_DLY_PRG (BIT(7) | BIT(6)) > diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c b/drivers/media/platform/qcom/camss/camss-csiphy.c > index 4559f3b1b38c..008afb85023b 100644 > --- a/drivers/media/platform/qcom/camss/camss-csiphy.c > +++ b/drivers/media/platform/qcom/camss/camss-csiphy.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/drivers/media/platform/qcom/camss/camss-ispif.c b/drivers/media/platform/qcom/camss/camss-ispif.c > index 7f269021d08c..d824c4958c07 100644 > --- a/drivers/media/platform/qcom/camss/camss-ispif.c > +++ b/drivers/media/platform/qcom/camss/camss-ispif.c > @@ -10,11 +10,13 @@ > #include > #include > #include > +#include > #include > #include > #include > #include > #include > +#include > #include > #include > #include > diff --git a/drivers/media/platform/qcom/camss/camss-vfe-4-1.c b/drivers/media/platform/qcom/camss/camss-vfe-4-1.c > index da3a9fed9f2d..174a36be6f5d 100644 > --- a/drivers/media/platform/qcom/camss/camss-vfe-4-1.c > +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-1.c > @@ -9,6 +9,7 @@ > */ > > #include > +#include > #include > > #include "camss-vfe.h" > diff --git a/drivers/media/platform/qcom/camss/camss-vfe-4-7.c b/drivers/media/platform/qcom/camss/camss-vfe-4-7.c > index 4c584bffd179..0dca8bf9281e 100644 > --- a/drivers/media/platform/qcom/camss/camss-vfe-4-7.c > +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-7.c > @@ -9,6 +9,7 @@ > */ > > #include > +#include > #include > > #include "camss-vfe.h" > -- Best regards, Todor Tomov