From patchwork Wed May 21 06:13:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sunzc522@gmail.com X-Patchwork-Id: 4214891 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 66BF8BEEAB for ; Wed, 21 May 2014 07:32:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8001F2021B for ; Wed, 21 May 2014 07:32:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7474D2015E for ; Wed, 21 May 2014 07:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751067AbaEUHcY (ORCPT ); Wed, 21 May 2014 03:32:24 -0400 Received: from mprc.pku.edu.cn ([162.105.203.9]:41370 "EHLO mprc.pku.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861AbaEUHcY (ORCPT ); Wed, 21 May 2014 03:32:24 -0400 X-Greylist: delayed 2454 seconds by postgrey-1.27 at vger.kernel.org; Wed, 21 May 2014 03:32:23 EDT Received: from linuxdev-32 ([162.105.203.8]) by mprc.pku.edu.cn (8.13.8/8.13.8) with ESMTP id s4L6mp2d017069; Wed, 21 May 2014 14:48:52 +0800 Received: by linuxdev-32 (Postfix, from userid 1016) id 8AC4E1463DBD; Wed, 21 May 2014 14:13:33 +0800 (CST) From: sunzc522@gmail.com To: linux-kernel@vger.kernel.org Cc: gxt@mprc.pku.edu.cn, gang.chen.5i5j@gmail.com, Zhichuang SUN , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Jingoo Han , Daniel Vetter , Joe Perches , Laurent Pinchart , linux-fbdev@vger.kernel.org Subject: [PATCH] drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap Date: Wed, 21 May 2014 14:13:30 +0800 Message-Id: <1400652811-5206-1-git-send-email-sunzc522@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Zhichuang SUN Function unifb_mmap calls functions which are defined in linux/mm.h and asm/pgtable.h The related error (for unicore32 with unicore32_defconfig): CC drivers/video/fbdev/fb-puv3.o drivers/video/fbdev/fb-puv3.c: In function 'unifb_mmap': drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of function 'vm_iomap_memory' drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of function 'pgprot_noncached' Signed-off-by: Zhichuang Sun Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: Jingoo Han Cc: Daniel Vetter Cc: Joe Perches Cc: Laurent Pinchart Cc: linux-fbdev@vger.kernel.org --- drivers/video/fbdev/fb-puv3.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/video/fbdev/fb-puv3.c b/drivers/video/fbdev/fb-puv3.c index 6db9ebd..88fa2e7 100644 --- a/drivers/video/fbdev/fb-puv3.c +++ b/drivers/video/fbdev/fb-puv3.c @@ -18,8 +18,10 @@ #include #include #include +#include #include +#include #include /* Platform_data reserved for unifb registers. */