From patchwork Tue Aug 14 09:11:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 144153 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4100679ljj; Tue, 14 Aug 2018 02:12:11 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyQP818FdRFlQcNNbaRTzmZ4sPPb2FviMcHEW8cFtMWqwf7cfe80mxmIYB5kScHh+qSRPYt X-Received: by 2002:a65:6398:: with SMTP id h24-v6mr20330869pgv.245.1534237930875; Tue, 14 Aug 2018 02:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534237930; cv=none; d=google.com; s=arc-20160816; b=pvLusnnQbyB9tjhOgic0h5wgP3HBt+Wsv7cLFSo/G8ByWUvxD0HwEtONdraX9izjr3 WPlwo4bgljpWipTPVPhCoONSXy/ldpsyEsbRrjucH9R6PfXxnH5ZQKO11Qub960FcFCr amrMjVVRs42ascVJ/OhZsr03Pauv0qffMeobMaTVrt50qtdrVvqrXG8Hi3MYyVMwoIAy Luu5lUQEtS1EIFDRGmlaqHw3WL4ycQzNEgqCeHQD2uGjnUrynLt4vcLorRKx8tlxMEt9 BuaVfvEe26bjvQ+h4YYp6aZ4t5Jic1+9wW7YPSS+soT8SFEQuS0uwJH1Aqo2YXG0u134 Hr6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=P7xwUJr/2MKNI0W+4kvXm9PQ38V0zasdjBkqSMpIlkI=; b=0xIaH2AF1089W5W78mxTIrNSVSHE0BX9N7G2/94Zv8PTJgBV+ZlHvWfurUx0dFxsho ImIC9Foo+7vYpBeydXT4XAy7UYdZUGcPRDm2RmIoITfK12Ba3OeVvZwhsJcamUbcsnGu LI8tgOoXmelPZ0G6F4o8DC348vhTAjXD6RI5YtVwOkSPVdMuY7JyLoIlb9NlgdR5jo2g Ii53vhYituR5EKlNM3U0sjrYVtI9Dk1oGBYVBziBk6v61joBSqrXOlb1ZUabhEnydSnU bYmnbtjgesuidCFGR8lgW3l/RApLlmsm6hoY+UmxCOxMDNRzvHvWVmizUriFI521xGTH vs6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7-v6si16299485plt.7.2018.08.14.02.12.10; Tue, 14 Aug 2018 02:12:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729493AbeHNL60 (ORCPT + 4 others); Tue, 14 Aug 2018 07:58:26 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:42623 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728314AbeHNL60 (ORCPT ); Tue, 14 Aug 2018 07:58:26 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MNc8Q-1fmjQB2wHa-007A4z; Tue, 14 Aug 2018 11:12:01 +0200 From: Arnd Bergmann To: Todor Tomov , Mauro Carvalho Chehab Cc: Arnd Bergmann , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: camss: add missing includes Date: Tue, 14 Aug 2018 11:11:30 +0200 Message-Id: <20180814091200.1851395-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:f7lxtpe9G6PfP7XR+CxXCWu3wroQ08vmx/oyZ0sKVCvuGKmyBjo yfc3VvPlVBU2Z2YAvn6jEc1sP010mevVxQm7e89B+sUecdmimevFqgyOifE9qNl3QI0Aky5 T5XRflpF98VnQgtbV55US9uAV0UL/Vs+oWFeUtw/NQEzXzcxxtE7OI2isPtiMn29WUqu5rp F40UN4aZrp+IWrkB6z35A== X-UI-Out-Filterresults: notjunk:1; V01:K0:X/NS0EWDqnU=:bHEebYYPGFeqz8ajnR1cZE 7g93uw/S27EsiCekI1YnX4SN3DjtNY8LvZHMUpu8I9FiFSz6rsBz/lYK6vUIgkno1tby2RuND e9M/LRhnx18j4nmT8PI2aydrxgN5pDByfhAObyS+1eZtpvP4Ukiea7RMb79kB5cPh/Q8Qq1hR QNKOWu16xHEei1+17Trl1Cr5Qq2RIhrxdDI6vp0gp0YMh5lbkSv7zfjAijvPGSkv2vhf0xesW 0yJqvweR+VQDgZIGiqFxJccw7cRNyASWuoHxGgsExCe/t5EmA9bL6vc42w39/9HgzeAcyog+q FDjHtBPCObtcTWM1cwikdEZKzHUr3SMVQLHPjF7MWFsPGoyUnCalB2gF+DXLPdanZk06SLvz+ 1V69GIDmEQVMueDMfn7ngjo8cOgYiBzmoqODv1KStu/z+RMMOF9KfvHuNKcSaQRLSmEqAwdJh jTY030l2Y7jbANFCL+K6SlyzQAFRhHvIxbamEcShTzV+GYAIWQB4PJp8H8cWMIgO75oHFO/P7 eMP0jtm5692IOX/GchhamtB4+USdNrbovPERckpFwX/lSNomFByswQ+KU6kuZceMEvkhhjhqY azSgrfgjR+e6cE7WtqV9YixgVQGdBvAOWCFHIgz/o4RvQGXEKgQfoB/CEvRsKrj79QKGqCzds BDXjLuc+R4UBo4/AhV6xYW22kV+EjDUR8Qt3KA23XmihJOfddtU120J/AUTBNQ8agpdA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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] 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] 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 --- 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-ispif.c | 1 + 3 files changed, 3 insertions(+) -- 2.18.0 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-ispif.c b/drivers/media/platform/qcom/camss/camss-ispif.c index 7f269021d08c..fa5f9373879e 100644 --- a/drivers/media/platform/qcom/camss/camss-ispif.c +++ b/drivers/media/platform/qcom/camss/camss-ispif.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include