Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4715530ooa; Tue, 14 Aug 2018 09:34:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyJCACMcCn0uPGxqaCA2CFQGO2fPu+TCIMu5o9UXGeaqANYoU6e4xJyV7GMFyfTmWRdU0kM X-Received: by 2002:a62:c288:: with SMTP id w8-v6mr23979750pfk.92.1534264441594; Tue, 14 Aug 2018 09:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534264441; cv=none; d=google.com; s=arc-20160816; b=teWe6O1xmG8eFvCXO+DC9pBMBYr8xv4f6ZTKw6vF69uowR6yRVG5W2ZLOD5Jk1AoIL 8QttRmBaI2ZlB7CC6vRmXYo97tfTN3YXdqcqHjEvqvtkvzOOdNQnkaUVs36A+Gz40KRE 1quFcmDB1v9nL4EWrTzBIznW7Cr8C8/frXJJqdJfjqlTw0OLA9zSkH20sExMuXqb8AYi 95exXPuQ/lGJJbcxxSVLTNpCTR4KuDbmZLyP35nBKnF8/nF5BvW3/3yOWFFVpE4nCtM0 BSBymSeqooCX7Ff5XjRiTBTT2Z7H3aGVaiIaJIb2G++6QCbeE8kGh6geiZM4oinGagLF IqPQ== 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=h5r8TFRT0Bp2IcXHZlee0tyxzoWUuB1iJn+r8y1tBjg=; b=VT9YZwxlqxCdcbvxRzG5/VgK5x3CWrjnY/oe1gqYLLyoKTQEz+gEUTqjfZo4neGfa7 pGRLqz8SAYTOA5KCmWqAg/n0hS46Ksdl1E0LtlIJre0O67JVPhVqJtt9CRMugyhxEc/M HoT05PLMdkHfEOSXlzT6NyeBXST8HLTm6piDGE5FYJyN8H1lx+e2pYZiWoQas8E7OHWc FFQMhS1cQVtexZNt5mJH6OAV3fAHQK69DqAb5+P8FgQcrFDQzj2mvOGukJqbOgjGYrP/ b/TPy6qL2cXqgkh82Q34sWbFXc5Sl/ruU0L80x0k0dslcoznB3flExhxCj9uQy2AwGsX 91sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZyRiUpLt; 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 p7-v6si16998055plo.159.2018.08.14.09.33.46; Tue, 14 Aug 2018 09:34:01 -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=ZyRiUpLt; 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 S1732517AbeHNStJ (ORCPT + 99 others); Tue, 14 Aug 2018 14:49:09 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52348 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729108AbeHNStJ (ORCPT ); Tue, 14 Aug 2018 14:49:09 -0400 Received: by mail-wm0-f65.google.com with SMTP id o11-v6so12750088wmh.2 for ; Tue, 14 Aug 2018 09:01:23 -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=h5r8TFRT0Bp2IcXHZlee0tyxzoWUuB1iJn+r8y1tBjg=; b=ZyRiUpLt+i4/dY1utlW4SXSeUGiY3GUliQvsF4kAzR5GiVaOd99RGU+PXxztPPAJWf VMLouCUvs7z1R2YLvzy73UJdLuPf4GDXl2rWuagO1l/rqsImRYjLSnxyheZv+fzXx2T2 GB9VEarXreted53KcDqr/Rab/ypSMm6CHzg0Y= 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=h5r8TFRT0Bp2IcXHZlee0tyxzoWUuB1iJn+r8y1tBjg=; b=uKcvhizPe2vGqMCjdtzzFDnknjUKP4+WoGjxshgPRNPxkhs23XGVu+KaXSWoFAAB9M bfQtQ1yRQ5p9N86OcxQt2F3HXf9SIx7xlaqBBtFQkvN7C81UQoi5mg4i4v59pMkS4Uoy PW7ftrrIKWMw4eUPgzF+lZLjem2w3n9HHst1yaEoTmWG6zyGm2k5wvvLBxmOweoqdHpD tIlQobVmIG5WSlqb3lA4EX7eiDGioGffElcbHZYCZ1+02GctJza3eH5aTkWBCgtd2gUY vv/f0fyw1ALxGypK1ZRg2XL5FaO1cvZz0fYXK8V/C7bmqlAofYhgvAGJBBJEE77H1/QC Hvxw== X-Gm-Message-State: AOUpUlHkVNaWW0UdtdX5KJDKkhBy74y1CTMeatQ/U2lo5lkb+b2TnRxT agjHKt21tV2I5b2bJyx0qwhN/pe464Q= X-Received: by 2002:a1c:90ce:: with SMTP id s197-v6mr10495194wmd.11.1534262483088; Tue, 14 Aug 2018 09:01:23 -0700 (PDT) Received: from [192.168.27.197] ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id u7-v6sm26014281wmd.46.2018.08.14.09.01.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 09:01:22 -0700 (PDT) Subject: Re: [PATCH] [v2] media: camss: add missing includes To: Arnd Bergmann Cc: Mauro Carvalho Chehab , hansverk@cisco.com, Linux Media Mailing List , Linux Kernel Mailing List References: <20180814091636.1960071-1-arnd@arndb.de> <565437f4-e01a-4558-ccc1-4f312e26cf35@linaro.org> From: Todor Tomov Message-ID: Date: Tue, 14 Aug 2018 19:01:20 +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: 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 15:58, Arnd Bergmann wrote: > On Tue, Aug 14, 2018 at 2:45 PM Todor Tomov wrote: >> >> 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? > > I try lots of randconfig builds, and only one of them hit this, so > it's surely some > header that may or may not include io.h and slab.h depending on the > configuration, > or based on some other changes in linux-next. > > Since the solution seemed obvious, I did not investigate further. > > If you want to try reproducing the problem, see the arm64 config file > at https://pastebin.com/raw/bNTPvYfZ Thank you, I was able to reproduce it. I have sent another patch which changes kcalloc to devm_kcalloc so the hunk including slab.h is not needed anymore. For the rest of the patch you can have my: Acked-by: Todor Tomov -- Best regards, Todor Tomov