Message ID | 001301cdcde9$a5d18c20$f174a460$%han@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org> 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 D5FAA3FC23 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 29 Nov 2012 08:12:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 13C42E64DF for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 29 Nov 2012 00:12:39 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id B1D76E5F9C for <dri-devel@lists.freedesktop.org>; Wed, 28 Nov 2012 20:26:15 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0ME800A8IEYXWGK0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 29 Nov 2012 13:26:05 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 2B.49.12699.DD3E6B05; Thu, 29 Nov 2012 13:26:05 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-81-50b6e3dd5b9d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 7A.49.12699.DD3E6B05; Thu, 29 Nov 2012 13:26:05 +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 <0ME800EPVEZHNY20@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 29 Nov 2012 13:26:05 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'David Airlie' <airlied@linux.ie> Subject: [PATCH v2 RESEND] drm/pci: add missing variable initialization Date: Thu, 29 Nov 2012 13:26:05 +0900 Message-id: <001301cdcde9$a5d18c20$f174a460$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac3N6aUeQj6uZG6vSpa4VcZr/V6iBA== Content-language: ko DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsVy+t8zfd27j7cFGPzpsLS48vU9mwOjx/3u 40wBjFFcNimpOZllqUX6dglcGbsWNbEXfGar6Fl7hrWB8QlrFyMnh4SAiUTL9rUsELaYxIV7 69m6GLk4hASWMUrMWbePGaZozaun7BCJRYwSZzt+QTnzmCQ6b3WBtbMJqEl8+XIYKMHBISKg KjHttD2IySzgLvG2yRWkQhjInPS4lxHEZgGqeD5zNZjNK2Arse1bMyuELSjxY/I9sInMAloS 63ceZ4Kw5SU2r3nLDDJSQkBd4tFfXZCwiICexOXu98wQJSIS+168gxovIPFt8iEWiHJZiU0H mEEOlhBoZ5f4MWcxI8RbkhIHV9xgmcAoNgvJ5llINs9CsnkWkhULGFlWMYqmFiQXFCel5xrp FSfmFpfmpesl5+duYoREivQOxlUNFocYBTgYlXh4N1puCxBiTSwrrsw9xCjBwawkwmtZDRTi TUmsrEotyo8vKs1JLT7E6AN0+URmKdHkfGAU55XEGxobm5iZmJqYW5qam+IQVhLnbfZICRAS SE8sSc1OTS1ILYIZx8TBKdXAmL6Yf1ewq9WqW62ONxqCOxP3PY56z1bw4tEvxuIrTSwaVV+7 JdzjLM3Mv92VmlCdGHhGr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.han@samsung.com>, 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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <http://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <http://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 |
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)
Fixed build warning as below: drivers/gpu/drm/drm_pci.c: In function 'drm_pcie_get_speed_cap_mask': drivers/gpu/drm/drm_pci.c:496:9: warning: 'lnkcap' may be used uninitialized in this function [-Wuninitialized] drivers/gpu/drm/drm_pci.c:497:10: warning: 'lnkcap2' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/gpu/drm/drm_pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)