From patchwork Sat Jun 28 06:34:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 4439321 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 68CA79F319 for ; Sat, 28 Jun 2014 06:41:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 914F120256 for ; Sat, 28 Jun 2014 06:41:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8A7C820222 for ; Sat, 28 Jun 2014 06:41:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751237AbaF1Glp (ORCPT ); Sat, 28 Jun 2014 02:41:45 -0400 Received: from smtp40.i.mail.ru ([94.100.177.100]:58273 "EHLO smtp40.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbaF1Glo (ORCPT ); Sat, 28 Jun 2014 02:41:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=pdXU+ALTW+iL9wgnD+hnVG6nqK9gIaDXW+b6lGvVZpc=; b=qpMblVh+BG746MOvRQSc7VTHvYLXvM6HIWCayYpsS35nfn2OG90hjAYMucsqf7bKJN1WJvNdW0bjikVzfF3Uf6O4T6EgqPRslvRD4ZJdFhbPkvkuc4FMwFEcKD7c9ToWQN+K2l6rJyXEelL5f8Tvcn1F9MAhIKwmTsfjAnOd0PE=; Received: from [5.18.98.7] (port=64180 helo=shc.zet) by smtp40.i.mail.ru with esmtpa (envelope-from ) id 1X0mDT-0000PD-Ob; Sat, 28 Jun 2014 10:34:35 +0400 From: Alexander Shiyan To: linux-fbdev@vger.kernel.org Cc: Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Alexander Shiyan Subject: [PATCH 2/2] video: clps711x: Fix sparse warnings Date: Sat, 28 Jun 2014 10:34:06 +0400 Message-Id: <1403937246-14506-2-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.5.5 In-Reply-To: <1403937246-14506-1-git-send-email-shc_work@mail.ru> References: <1403937246-14506-1-git-send-email-shc_work@mail.ru> X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam: Not detected X-Spam: Not detected X-Mras: Ok Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no 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 This patch fixes below warnings: CHECK drivers/video/fbdev/clps711x-fb.c drivers/video/fbdev/clps711x-fb.c:247:24: warning: incorrect type in argument 1 (different address spaces) drivers/video/fbdev/clps711x-fb.c:247:24: expected void const *ptr drivers/video/fbdev/clps711x-fb.c:247:24: got char [noderef] *screen_base drivers/video/fbdev/clps711x-fb.c:248:35: warning: incorrect type in argument 1 (different address spaces) drivers/video/fbdev/clps711x-fb.c:248:35: expected void const *ptr drivers/video/fbdev/clps711x-fb.c:248:35: got char [noderef] *screen_base drivers/video/fbdev/clps711x-fb.c:314:17: warning: incorrect type in initializer (different address spaces) drivers/video/fbdev/clps711x-fb.c:314:17: expected void *__p drivers/video/fbdev/clps711x-fb.c:314:17: got char [noderef] *screen_base CC [M] drivers/video/fbdev/clps711x-fb.o Reported-by: kbuild test robot Signed-off-by: Alexander Shiyan --- drivers/video/fbdev/clps711x-fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c index 4d17fbb..bbf40fe 100644 --- a/drivers/video/fbdev/clps711x-fb.c +++ b/drivers/video/fbdev/clps711x-fb.c @@ -244,8 +244,8 @@ static int clps711x_fb_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 1); info->screen_base = devm_ioremap_resource(dev, res); - if (IS_ERR(info->screen_base)) { - ret = PTR_ERR(info->screen_base); + if (IS_ERR((__force void *)info->screen_base)) { + ret = PTR_ERR((__force void *)info->screen_base); goto out_fb_release; } @@ -311,7 +311,7 @@ static int clps711x_fb_probe(struct platform_device *pdev) /* Setup start FB address */ writeb(info->fix.smem_start >> 28, cfb->base + CLPS711X_FBADDR); /* Clean FB memory */ - memset(info->screen_base, 0, cfb->buffsize); + memset_io(info->screen_base, 0, cfb->buffsize); } cfb->lcd_pwr = devm_regulator_get(dev, "lcd");