Skip to contentSkip to conversation

drm/pci: add missing variable initialization

PATCH Superseded Jingoo Han 1 participant 2 messages Nov 7, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 drm/pci: add missing variable initialization

Fixed build warning as below:

arch/arm/mm/cache-l2x0.c:37:12: warning: 'l2_wt_override' defined but not used [-Wunused-variable]

---
 drivers/gpu/drm/drm_pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/drm_pci.c +1 -1
index ba33144..754bc96 100644
@@ -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)
Signature · 1 line
1.7.1
author
#1 lore raw

On Wednesday, November 07, 2012 2:37 PM Jingoo Han wrote

Quoted 4 lines

Fixed build warning as below:

arch/arm/mm/cache-l2x0.c:37:12: warning: 'l2_wt_override' defined but not used [-Wunused-variable]

Sorry, this error message is wrong.
I made a mistake.

I will fix the error message and send v2 patch.

Best regards,
Jingoo Han

Quoted 21 lines
---
 drivers/gpu/drm/drm_pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/drm_pci.c +1 -2
index ba33144..754bc96 100644
@@ -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)
--

1.7.1