Message ID | 003e01cdbcaa$dc3f4a90$94bddfb0$%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@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 72256DFB7A for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 7 Nov 2012 06:28:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 94EB69F048 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 6 Nov 2012 22:28:50 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id D84EC9E732 for <dri-devel@lists.freedesktop.org>; Tue, 6 Nov 2012 21:43:49 -0800 (PST) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD300C47RWJK9O0@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 07 Nov 2012 14:43:49 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 81.0C.01231.515F9905; Wed, 07 Nov 2012 14:43:49 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-8e-5099f515d9e1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 41.0C.01231.515F9905; Wed, 07 Nov 2012 14:43:49 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MD300G1DRX01X30@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 07 Nov 2012 14:43:49 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'David Airlie' <airlied@linux.ie> References: In-reply-to: Subject: [PATCH v2] drm/pci: add missing variable initialization Date: Wed, 07 Nov 2012 14:43:48 +0900 Message-id: <003e01cdbcaa$dc3f4a90$94bddfb0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac28qehx38Yoa9q1QWO09c35pk0qaAAANytw Content-language: ko DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsVy+t8zQ13RrzMDDI5O5rO48vU9mwOjx/3u 40wBjFFcNimpOZllqUX6dglcGUu3zWYv+MhW8WfVGdYGxkesXYwcHBICJhIPn+R3MXICmWIS F+6tZ+ti5OIQEljGKHHybicbRAKo5vwLqMR0RomO7m4oZx6TxJtr59lBqtgE1CS+fDnMDjJV REBVYtppexCTWcBd4m2TK4gpJMAtsbo5CKSYU4BHYt2fTmaQsLCAg0TH9ViQMAtQ3999x1hB bF4BW4mnm2YwQ9iCEj8m32MBsZkFtCQ2b2tihbDlJTavecsM8Ym6xKO/uiBhEQEjie8vjkKV iEjse/GOEWK8gMS3yYdYIMplJTYdYAZ5Q0JgHrvEu3NbmSGelZQ4uOIGywRGiVlINs9CsnkW ks2zkKxYwMiyilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyMkpqR2MK5ssDjEKMDBqMTDOyF9 ZoAQa2JZcWXuIUYJDmYlEd4jn4BCvCmJlVWpRfnxRaU5qcWHGH2ALp/ILCWanA+M97ySeENj YxMzE1MTc0tTc1McwkrivM0eKQFCAumJJanZqakFqUUw45g4OKUaGNWsj095+rUr8PzEv5n3 /QzmGT7WM1jNeSpF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ter-Loop: Reflected X-Mailman-Approved-At: Tue, 06 Nov 2012 22:26:59 -0800 Cc: 'Jingoo Han' <jg1.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(-)