[Nouveau] [PATCH] drm/nouveau: Fix some sparse warnings.
Francisco Jerez
currojerez at riseup.net
Tue Nov 24 06:58:13 PST 2009
Signed-off-by: Francisco Jerez <currojerez at riseup.net>
---
drivers/gpu/drm/nouveau/nouveau_bios.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 1f472ff..7e54142 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -2646,7 +2646,7 @@ init_gpio(struct nvbios *bios, uint16_t offset, struct init_exec *iexec)
}
/* hack to avoid moving the itbl_entry array before this function */
-int init_ram_restrict_zm_reg_group_blocklen;
+static int init_ram_restrict_zm_reg_group_blocklen;
static bool
init_ram_restrict_zm_reg_group(struct nvbios *bios, uint16_t offset,
@@ -5062,7 +5062,7 @@ parse_dcb_gpio_table(struct drm_device *dev, struct nvbios *bios)
int header_len = gpio_table[1],
entries = gpio_table[2],
entry_len = gpio_table[3];
- void (*parse_entry)(struct nvbios *, uint16_t);
+ void (*parse_entry)(struct nvbios *, uint16_t) = NULL;
int i;
if (bios->bdcb.version >= 0x40) {
--
1.6.4.4
More information about the Nouveau
mailing list