From patchwork Tue Dec 17 03:20:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 301985 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4488B2C009D for ; Tue, 17 Dec 2013 14:20:24 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751719Ab3LQDUY (ORCPT ); Mon, 16 Dec 2013 22:20:24 -0500 Received: from mail-bk0-f52.google.com ([209.85.214.52]:46487 "EHLO mail-bk0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088Ab3LQDUX (ORCPT ); Mon, 16 Dec 2013 22:20:23 -0500 Received: by mail-bk0-f52.google.com with SMTP id u14so2592064bkz.25 for ; Mon, 16 Dec 2013 19:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=usVWjUUWyCEV5o2WmxaZkMQq8FK42Vuh5fakISK4q/U=; b=cZAr1ohEAd5VqVve6yHVp8fhaPtjcodCn3E0HyB/W/pkPVj0Jrb6+LdEunUotL4Pps skXqNqlDwQY0+6V7ABpieB23HfA7ZFVlkjgPGhpW6+vmCGuSU0SE50bAqFjEMIYDW5gZ pmVz3SVieufdU4QqzzCvorEE/5GGxkmA8mHsO7yFk8tQum4/fHyfwGz6T8cwaDtlhy/W BonR0SW+K2DlJQXPI11N6hkKv25nfbxLlbfSvRLHw+3j68Yo6++himfm80TPMj7EcUFZ mSuAcELdPGPofEjFxc92wDdSOvtstFGUF5SfHSQd/iAVV5yiOaqAYoaV2D7rmk2E0bgj zwCQ== MIME-Version: 1.0 X-Received: by 10.204.100.199 with SMTP id z7mr1504748bkn.62.1387250422339; Mon, 16 Dec 2013 19:20:22 -0800 (PST) Received: by 10.204.74.130 with HTTP; Mon, 16 Dec 2013 19:20:22 -0800 (PST) Date: Tue, 17 Dec 2013 11:20:22 +0800 Message-ID: Subject: [PATCH -next] gpu: ion: fix sparse non static symbol warnings From: Wei Yongjun To: gregkh@linuxfoundation.org, swarren@wwwdotorg.org, thierry.reding@gmail.com, rebecca@android.com, john.stultz@linaro.org Cc: yongjun_wei@trendmicro.com.cn, devel@driverdev.osuosl.org, linux-tegra@vger.kernel.org Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Wei Yongjun Fixes the following sparse warnings: drivers/staging/android/ion/tegra/tegra_ion.c:23:19: warning: symbol 'idev' was not declared. Should it be static? drivers/staging/android/ion/tegra/tegra_ion.c:24:19: warning: symbol 'tegra_user_mapper' was not declared. Should it be static? drivers/staging/android/ion/tegra/tegra_ion.c:25:5: warning: symbol 'num_heaps' was not declared. Should it be static? drivers/staging/android/ion/tegra/tegra_ion.c:26:17: warning: symbol 'heaps' was not declared. Should it be static? drivers/staging/android/ion/tegra/tegra_ion.c:28:5: warning: symbol 'tegra_ion_probe' was not declared. Should it be static? drivers/staging/android/ion/tegra/tegra_ion.c:66:5: warning: symbol 'tegra_ion_remove' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/staging/android/ion/tegra/tegra_ion.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/staging/android/ion/tegra/tegra_ion.c b/drivers/staging/android/ion/tegra/tegra_ion.c index 0849600..b3c4707 100644 --- a/drivers/staging/android/ion/tegra/tegra_ion.c +++ b/drivers/staging/android/ion/tegra/tegra_ion.c @@ -20,12 +20,11 @@ #include "../ion.h" #include "../ion_priv.h" -struct ion_device *idev; -struct ion_mapper *tegra_user_mapper; -int num_heaps; -struct ion_heap **heaps; +static struct ion_device *idev; +static int num_heaps; +static struct ion_heap **heaps; -int tegra_ion_probe(struct platform_device *pdev) +static int tegra_ion_probe(struct platform_device *pdev) { struct ion_platform_data *pdata = pdev->dev.platform_data; int err; @@ -63,7 +62,7 @@ err: return err; } -int tegra_ion_remove(struct platform_device *pdev) +static int tegra_ion_remove(struct platform_device *pdev) { struct ion_device *idev = platform_get_drvdata(pdev); int i;