Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1810805imm; Mon, 3 Sep 2018 10:02:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYRLfC8t2GheWC1uxFChlPWenQCzvYA17uen5bCpvpZqmUcPyzROcfLalXSlfxq4vdwD5JS X-Received: by 2002:a63:c00b:: with SMTP id h11-v6mr27069826pgg.279.1535994158355; Mon, 03 Sep 2018 10:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535994158; cv=none; d=google.com; s=arc-20160816; b=kjOxd3wjAs/S9zhIDiuYxbDGdO3FQf+WT+YnEgyn1vF9H32duU5uNpaMlqIQo3e3Vk gpH7Ch5Xde3yGqg5scnmqdUVCAPVetjeX8O/koOx0bcA1UwHeUCza2/XsSfSqAZo1GmS Jl34SG10J1awFeKd3a/rm09Dpx17mAjiABQy3IoedjC0EIsdN/sWOWzQGFpNLyF3ASZH EDJA3/npgFtO0dru0V+Nbg5H5ceVxKC547DVDo812e8lBtVokgRhtCXT3pGrC6PdLfHJ oq675KeIlfsvZ+kHkfsdprMZPef3XTKVn8AK1QtOxHnHFCCZEo1iO5fx2QhGbC9Ga5zu F5Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=9tF2f/dDuqwdn/wAtlcOSKKkv3CsIEJkFFgIor+HJiU=; b=Eyf5Y/1v0ce2fZYPbM5xSUQLjui2WqfW1Rd6YP2ERC7NMyKgcte1Dahy5KeJyLbyQy WVRtlhYpdz6QQXoHAfdKJJk+WHc0WBFCR+46YFhROZ1P2jr47SuqFOWXP4cC6ZbwFKJC JjqZP5BHDG6t9vEVY+JmGy8MIh3U/xvSpYA6FjnqcjVC5J64pLSBhE6wbQgPhHGzxDXj 5zT4h9nD4G+R5bfY8pnd1f8bq6vLrqTIlsh/ekbNlCWk+4Qbp9fCQ6qTtThHxdAofGoB vu6S5I7+8W0TT727aI9lfmA7TsWOgdhsF7c9Qjphy3HLTa+1iw/IxCqdA/MtI7rShv3d naPg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15-v6si18041454pgu.205.2018.09.03.10.02.23; Mon, 03 Sep 2018 10:02:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728693AbeICVWU (ORCPT + 99 others); Mon, 3 Sep 2018 17:22:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38688 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728047AbeICVWU (ORCPT ); Mon, 3 Sep 2018 17:22:20 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 43266D00; Mon, 3 Sep 2018 17:01:20 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , "David S. Miller" , Randy Dunlap , Guenter Roeck , Sasha Levin Subject: [PATCH 4.4 24/80] media: staging: omap4iss: Include asm/cacheflush.h after generic includes Date: Mon, 3 Sep 2018 18:49:02 +0200 Message-Id: <20180903164935.122711893@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903164934.171677301@linuxfoundation.org> References: <20180903164934.171677301@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Guenter Roeck [ Upstream commit 0894da849f145af51bde88a6b84f95b9c9e0bc66 ] Including asm/cacheflush.h first results in the following build error when trying to build sparc32:allmodconfig, because 'struct page' has not been declared, and the function declaration ends up creating a separate (private) declaration of struct page (as a result of function arguments being in the scope of the function declaration and definition, not in global scope). The C scoping rules do not just affect variable visibility, they also affect type declaration visibility. The end result is that when the actual call site is seen in , the 'struct page' type in the caller is not the same 'struct page' that the function was declared with, resulting in: In file included from arch/sparc/include/asm/page.h:10:0, ... 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 Acked-by: David S. Miller Cc: Randy Dunlap Signed-off-by: Guenter Roeck [ Added explanation of C scope rules - Linus ] Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/omap4iss/iss_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- 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 @@ -22,6 +21,8 @@ #include #include +#include + #include "iss_video.h" #include "iss.h"