[PATCH 04/06] Fix compilation warning for drivers/input/touchscreen/htcpen.c
From: Subrata Modak
Date: Tue Jul 14 2009 - 22:20:28 EST
gcc 4.4.1 generates the following build warning on i386:
CC drivers/input/touchscreen/htcpen.o
drivers/input/touchscreen/htcpen.c:50: warning: â??pnp_idsâ?? defined but not used
Fix this by removing the static keyword when you are actually
exporting that structure.
Signed-off-by: Subrata Modak<subrata@xxxxxxxxxxxxxxxxxx>,
---
--- a/drivers/input/touchscreen/htcpen.c 2009-05-20 10:40:54.000000000 +0530
+++ b/drivers/input/touchscreen/htcpen.c 2009-07-15 06:15:34.000000000 +0530
@@ -47,7 +47,7 @@ static int invert_y;
module_param(invert_y, bool, 0644);
MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted");
-static struct pnp_device_id pnp_ids[] = {
+struct pnp_device_id pnp_ids[] = {
{ .id = "PNP0cc0" },
{ .id = "" }
};
---
Regards--
Subrata
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/