Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6514359imm; Mon, 23 Jul 2018 20:42:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe93wKbdI21Ta5A1VsZBzdDyqx2g2IZSy1PJQDjbfvmVgCpY9wZwgLHOlx7WRas6dj6FQF9 X-Received: by 2002:a17:902:aa87:: with SMTP id d7-v6mr15358977plr.215.1532403755233; Mon, 23 Jul 2018 20:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532403755; cv=none; d=google.com; s=arc-20160816; b=gfbclzaiFRYAF38hUyYYKgLU4KzS/qcQ106DdZc4ZDLQmLw8YsKOjUzbq0vsDP8dWl 6nAkmFq20y/iT0kGrYrMZYcMk4tBDkb4UXw43fKA55NXoOOwuFsaVZes/Ghfsi1xexp1 umQmWnoXMtHNO3/6g9Y4LjK8jXcTBAfTCHzIxywBwq5jlCn86KLD132RH6BSfiFdV9jV cugv8IIY1/s6Ju0AarDuguHbHjwDO4+R65HHhP5csn6KR2p7tJIpdo/EMzUG5jbN03Xu W7xjb7xPoOgyGbi0Kg3tbukxL7yoaOTnMdIxB+3AkZJHNSzb5lLtQbf5MFyomsVe8K3n 3Gtw== 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=3B/WbQ8hBZP3+9iX7EqmZhhuR4kBHCIaCgHIL3q9U/Y=; b=W/ZIjfwEaRNrgEPmnKFcFxfoxucwccix9tGRo2Ai5Gj+22A42MxgKjEazYbE7WWbdM i8EiTsUsRtn3rLoo8gn/CT4rriyDcKozjfiYbmHF7yBLybFCyeQExUITwMYuwRbQPv3P sEKY/cwQQ6yQXpHzlFC22SMrs/S9lyChmkGtn2hTtcNBNhwSoOwBgaVP+CTerEXPNcf0 RfNGWGpcegdE0+2g8LsDNVhEhlawcxCCKIoXmQ8jorpicWvBfI97nvfHqJcYYv3+YGy7 cufYq7OFXSJhH2FSuHoEcZ7bcxfksX5jw+6P1qCi4RZdWc7E1rd4HhT5ZBBGqsNlDjDJ TOUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gPsa83ag; 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 u21-v6si9479737pgm.230.2018.07.23.20.42.20; Mon, 23 Jul 2018 20:42:35 -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=gPsa83ag; 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 S2388382AbeGXEps (ORCPT + 99 others); Tue, 24 Jul 2018 00:45:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49336 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388142AbeGXEps (ORCPT ); Tue, 24 Jul 2018 00:45:48 -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=3B/WbQ8hBZP3+9iX7EqmZhhuR4kBHCIaCgHIL3q9U/Y=; b=gPsa83agw7NvRePjiLXfPWMHL Wsf0nkAKWoGgru9nl+iFezsEssO28LBTiqHmzNI4znZBvSiQCV637rjt+IDD0xb9ZEfbjF7XydGze /r+UzUmyTtxutlg7xVUJa8TMlJjWmmGx5Li6oxDnpJ87Kokq38of+LqEGjo0ZgjlVjPo7/01gFqCx aOoq/bBsZS4u3NzFE+4BLMn2dqNUOfNL6yGJMic38wH9CViKvFuTXZPFfGxZhDnkuwzdr/GbvhMvi RQ2lNc/ysxfuK3IoqRXs196gwF99zRRsV2JMJMa3mfJxnF2oepty0TFGnGW4DtzIsT8w6x/tpRcUm grp05LgQQ==; Received: from 177.41.135.13.dynamic.adsl.gvt.net.br ([177.41.135.13] helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhoCP-0003y2-60; Tue, 24 Jul 2018 03:41:21 +0000 Date: Tue, 24 Jul 2018 00:41:15 -0300 From: Mauro Carvalho Chehab To: Guenter Roeck Cc: Laurent Pinchart , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Linus Torvalds , David Miller , Randy Dunlap Subject: Re: [PATCH] media: staging: omap4iss: Include asm/cacheflush.h after generic includes Message-ID: <20180724004110.37d0e5dc@coco.lan> In-Reply-To: <1532381973-11856-1-git-send-email-linux@roeck-us.net> References: <1532381973-11856-1-git-send-email-linux@roeck-us.net> 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 Mon, 23 Jul 2018 14:39:33 -0700 Guenter Roeck escreveu: > Including asm/cacheflush.h first results in the following build error when > trying to build sparc32:allmodconfig. > > In file included from arch/sparc/include/asm/page.h:10:0, > from arch/sparc/include/asm/string_32.h:13, > from arch/sparc/include/asm/string.h:7, > from include/linux/string.h:20, > from include/linux/bitmap.h:9, > from include/linux/cpumask.h:12, > from arch/sparc/include/asm/smp_32.h:15, > from arch/sparc/include/asm/smp.h:7, > from arch/sparc/include/asm/switch_to_32.h:5, > from arch/sparc/include/asm/switch_to.h:7, > from arch/sparc/include/asm/ptrace.h:120, > from arch/sparc/include/asm/thread_info_32.h:19, > from arch/sparc/include/asm/thread_info.h:7, > from include/linux/thread_info.h:38, > from arch/sparc/include/asm/current.h:15, > from include/linux/mutex.h:14, > from include/linux/notifier.h:14, > from include/linux/clk.h:17, > from drivers/staging/media/omap4iss/iss_video.c:15: > include/linux/highmem.h: In function 'clear_user_highpage': > include/linux/highmem.h:137:31: error: > passing argument 1 of 'sparc_flush_page_to_ram' from incompatible > pointer type > > Include generic includes files first to fix the problem. > > Fixes: fc96d58c10162 ("[media] v4l: omap4iss: Add support for OMAP4 camera interface - Video devices") > Suggested-by: Linus Torvalds > Cc: David Miller > Cc: Randy Dunlap > Signed-off-by: Guenter Roeck > --- > drivers/staging/media/omap4iss/iss_video.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/media/omap4iss/iss_video.c b/drivers/staging/media/omap4iss/iss_video.c > index a3a83424a926..16478fe9e3f8 100644 > --- a/drivers/staging/media/omap4iss/iss_video.c > +++ b/drivers/staging/media/omap4iss/iss_video.c > @@ -11,7 +11,6 @@ > * (at your option) any later version. > */ > > -#include > #include > #include > #include > @@ -24,6 +23,8 @@ > #include > #include > > +#include > + > #include "iss_video.h" > #include "iss.h" While I won't be against merging it, IMHO a better fix would be to add the includes asm/cacheflush.h needs inside it, e. g. something like adding: #include at the sparc32 variant of it. Btw, ./arch/sparc/include/asm/cacheflush_64.h seems to include linux/mm.h... So, I guess the right fix would be something like: diff --git a/arch/sparc/include/asm/cacheflush_32.h b/arch/sparc/include/asm/cacheflush_32.h index fb66094a2c30..daeccbdc371a 100644 --- a/arch/sparc/include/asm/cacheflush_32.h +++ b/arch/sparc/include/asm/cacheflush_32.h @@ -2,6 +2,8 @@ #ifndef _SPARC_CACHEFLUSH_H #define _SPARC_CACHEFLUSH_H +#include + #include #define flush_cache_all() \ Thanks, Mauro