From patchwork Sun Jan 18 02:04:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 43270 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8214B240BA for ; Sun, 18 Jan 2015 02:05:50 +0000 (UTC) Received: by mail-we0-f199.google.com with SMTP id k11sf13920510wes.2 for ; Sat, 17 Jan 2015 18:05:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=zKI7XZSmJc1qYjz3+/Q/Eze3LoFSH/7nqN/MJh+IPzE=; b=Qnvjk2Wulv7oqdS3frJeLdYA+O61j1PsxcMX1h5BFyJC07Yxj12d7kFUmJOCvtSG4w t+3gcXX0H9Mv5l1kZwPgFd8OhzVfcsVfzITfPeN4rS8yFvJdcw53SIbe0q5yc6tYlTnL FChDL7LFV2iDK4EZ9B6SdZAc43xw1j7ng3MwyxBlCHpu8Gww6DmRyGVC0/EWMh+LkzMi HdEjjjuKPeebLu2OfapYhyHC68rr9/ro6UnCECHfsz3arfcmK1aCGDpSAF8aMZXcjSE6 xIG2ugHbFc11b5QZziYG+8wrHHqzKmlX/aWvu92O+/D2y3wdOfqGhMkSlV+e5rw2vc+c UQvQ== X-Gm-Message-State: ALoCoQlKWVFRbpHi/kJ0/63nBjrBQEU52jZIrGoxsC9JOu5DO8dTpZoBB+3uf0wB3jZYIgovGsnM X-Received: by 10.112.154.232 with SMTP id vr8mr637lbb.10.1421546749713; Sat, 17 Jan 2015 18:05:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.176 with SMTP id az16ls386498lab.87.gmail; Sat, 17 Jan 2015 18:05:49 -0800 (PST) X-Received: by 10.112.14.6 with SMTP id l6mr23102753lbc.91.1421546749373; Sat, 17 Jan 2015 18:05:49 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id h3si8401299lam.29.2015.01.17.18.05.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 17 Jan 2015 18:05:49 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gm9so24116744lab.12 for ; Sat, 17 Jan 2015 18:05:49 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr22588838lbb.32.1421546749152; Sat, 17 Jan 2015 18:05:49 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp716310lbb; Sat, 17 Jan 2015 18:05:48 -0800 (PST) X-Received: by 10.68.179.165 with SMTP id dh5mr34164559pbc.131.1421546747410; Sat, 17 Jan 2015 18:05:47 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zy6si8762215pac.220.2015.01.17.18.05.46; Sat, 17 Jan 2015 18:05:47 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbbARCFS (ORCPT + 28 others); Sat, 17 Jan 2015 21:05:18 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:46505 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751928AbbARCE6 (ORCPT ); Sat, 17 Jan 2015 21:04:58 -0500 Received: by mail-pa0-f41.google.com with SMTP id rd3so31642244pab.0 for ; Sat, 17 Jan 2015 18:04:58 -0800 (PST) X-Received: by 10.70.91.99 with SMTP id cd3mr33407152pdb.117.1421546698019; Sat, 17 Jan 2015 18:04:58 -0800 (PST) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPSA id zk9sm7852666pac.1.2015.01.17.18.04.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Jan 2015 18:04:57 -0800 (PST) From: mathieu.poirier@linaro.org To: forest@alittletooquiet.net, gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org Subject: [PATCH 3/4] staging: vt6655: fix wrong parameter as reported by sparse Date: Sat, 17 Jan 2015 19:04:25 -0700 Message-Id: <1421546666-21461-4-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1421546666-21461-1-git-send-email-mathieu.poirier@linaro.org> References: <1421546666-21461-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mathieu Poirier mpoirier@t430:~/work/kernel1$ make C=1 M=drivers/staging/vt6655/ LD drivers/staging/vt6655/built-in.o CHECK drivers/staging/vt6655/device_main.c CC [M] drivers/staging/vt6655/device_main.o CHECK drivers/staging/vt6655/card.c CC [M] drivers/staging/vt6655/card.o CHECK drivers/staging/vt6655/channel.c CC [M] drivers/staging/vt6655/channel.o CHECK drivers/staging/vt6655/mac.c CC [M] drivers/staging/vt6655/mac.o CHECK drivers/staging/vt6655/baseband.c drivers/staging/vt6655/baseband.c:2180:45: warning: incorrect type in argument 1 (different address spaces) drivers/staging/vt6655/baseband.c:2180:45: expected struct vnt_private *priv drivers/staging/vt6655/baseband.c:2180:45: got void [noderef] *dwIoBase CC [M] drivers/staging/vt6655/baseband.o Since 8e8a9f5133cf staging: vt6655: BBbReadEmbedded replace __iomem with vnt_private The first parameter to @BBbReadEmbedde is a vnt_private. The patch is changing all occurences _except_ this one, as reported by sparse. Signed-off-by: Mathieu Poirier --- drivers/staging/vt6655/baseband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index 86c72ba0a0cd..f8c5fc371c4c 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers/staging/vt6655/baseband.c @@ -2177,7 +2177,7 @@ bool BBbVT3253Init(struct vnt_private *priv) /* Init ANT B select,RX Config CR10 = 0x28->0x2A, 0x2A->0x28(VC1/VC2 define, make the ANT_A, ANT_B inverted) */ /*bResult &= BBbWriteEmbedded(dwIoBase,0x0a,0x28);*/ /* Select VC1/VC2, CR215 = 0x02->0x06 */ - bResult &= BBbWriteEmbedded(dwIoBase, 0xd7, 0x06); + bResult &= BBbWriteEmbedded(priv, 0xd7, 0x06); /* }} */ for (ii = 0; ii < CB_VT3253B0_AGC; ii++)