From patchwork Wed Nov 7 05:37:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1708151 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 018633FC8F for ; Wed, 7 Nov 2012 06:27:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E83589EFD6 for ; Tue, 6 Nov 2012 22:27:12 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id 33FD19E814 for ; Tue, 6 Nov 2012 21:37:03 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD300D0URL1UFN0@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 07 Nov 2012 14:37:00 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 17.17.12699.C73F9905; Wed, 07 Nov 2012 14:37:00 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-d7-5099f37c4b34 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D6.17.12699.C73F9905; Wed, 07 Nov 2012 14:37:00 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MD300DM7RLOVCG0@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 07 Nov 2012 14:37:00 +0900 (KST) From: Jingoo Han To: 'David Airlie' Subject: [PATCH] drm/pci: add missing variable initialization Date: Wed, 07 Nov 2012 14:37:00 +0900 Message-id: <003c01cdbca9$e8c2d530$ba487f90$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac28qehx38Yoa9q1QWO09c35pk0qaA== Content-language: ko DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRmVeSWpSXmKPExsVy+t8zI92azzMDDF6u07K48vU9mwOjx/3u 40wBjFFcNimpOZllqUX6dglcGRce7mQsWMVaMePqXtYGxvUsXYycHBICJhLrt55gh7DFJC7c W8/WxcjFISSwjFFi3fF1jF2MHGBFsz8WQMQXMUqs/HIHqmgek8SkV7eYQLrZBNQkvnw5zA7S ICKgKjHttD2IySzgLvG2yRWkQljAVuL2v/Ngu1iAKqZuXgXWyQsU/z6zHcoWlPgx+R7YbcwC WhKbtzWxQtjyEpvXvGWGOEdd4tFfXZCwiICexL1rXWwQJSIS+168Y4QYLyDxbfIhFohyWYlN B5hBDpYQaGeXeLf5PCvEu5ISB1fcYJnAKDYLyeZZSDbPQrJ5FpIVCxhZVjGKphYkFxQnpeca 6RUn5haX5qXrJefnbmKExIn0DsZVDRaHGAU4GJV4eC1SZwYIsSaWFVfmHmKU4GBWEuGd+Qgo xJuSWFmVWpQfX1Sak1p8iNEH6PKJzFKiyfnAGM4riTc0NjYxMzE1Mbc0NTfFIawkztvskRIg JJCeWJKanZpakFoEM46Jg1OqgXFL9b61Npu/K6v8UVscWfNmouEFidv6LZmNgcdbIzbxdYdk zEpN3DFhsdDdK7usF826rx/ClqNjsWnTnNtViZVXTHR5hd+sbV4fMqFbbbvyvEcyy6fnbzr6 wuPUnqu72mL9V106wX9HaQu7cCdv5fynfz73vGdwCI9c0TbhVVMMZ49w5P3XsuFKLMUZiYZa zEXFiQB7zB8DwAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDIsWRmVeSWpSXmKPExsVy+t9jAd2azzMDDBadVre48vU9mwOjx/3u 40wBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYR1jBkXHu5kLFjFWjHj6l7W Bsb1LF2MHBwSAiYSsz8WdDFyApliEhfurWfrYuTiEBJYxCix8ssdKGcek8SkV7eYQKrYBNQk vnw5zA7SLCKgKjHttD2IySzgLvG2yRWkQljAVuL2v/PsIDYLUMXUzavAOnmB4t9ntkPZghI/ Jt9jAbGZBbQkNm9rYoWw5SU2r3nLDHGausSjv7ogYREBPYl717rYIEpEJPa9eMc4gVFgFpJJ s5BMmoVk0iwkLQsYWVYxiqYWJBcUJ6XnGukVJ+YWl+al6yXn525iBEfhM+kdjKsaLA4xCnAw KvHwWqTODBBiTSwrrsw9xCjBwawkwjvzEVCINyWxsiq1KD++qDQntfgQow/QoxOZpUST84EJ Iq8k3tDYxMzI0sjMwsjE3ByHsJI4b7NHSoCQQHpiSWp2ampBahHMOCYOTqkGxsTFbGt9rioa Gi7+lVFRHPbj2nGHtrAHpytX/zL++YClY94j2xifJfdvs9z77zdnicTmz231G/7e3rphx9c9 p9rYhSZHmj7X6I+wuDVPee5LEW+vrxGzth4yM/kf92aGVNS3PeoGhwu/mpybON0qk+9HueEj YdM/hYW7PgvcT3glxJuvn/jrobsSS3FGoqEWc1FxIgAv7F4+7wIAAA== X-CFilter-Loop: Reflected X-Mailman-Approved-At: Tue, 06 Nov 2012 22:26:59 -0800 Cc: 'Jingoo Han' , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Fixed build warning as below: arch/arm/mm/cache-l2x0.c:37:12: warning: 'l2_wt_override' defined but not used [-Wunused-variable] Signed-off-by: Jingoo Han --- drivers/gpu/drm/drm_pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index ba33144..754bc96 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c @@ -470,7 +470,7 @@ int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *mask) { struct pci_dev *root; int pos; - u32 lnkcap, lnkcap2; + u32 lnkcap = 0, lnkcap2 = 0; *mask = 0; if (!dev->pdev)