[PATCH 15/25] powerpc/fsl_msi: add a const qualifier

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE5070d

2 messages, 2 authors, 2012-10-15 · open the first message on its own page

[PATCH 15/25] powerpc/fsl_msi: add a const qualifier

From: Uwe Kleine-König <hidden>
Date: 2012-07-23 09:13:20

This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

	arch/powerpc/sysdev/fsl_msi.c: In function 'fsl_of_msi_probe':
	arch/powerpc/sysdev/fsl_msi.c:379:11: error: assignment discards 'const' qualifier from pointer target type [-Werror]

Signed-off-by: Uwe Kleine-König <redacted>
---
 arch/powerpc/sysdev/fsl_msi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c
index 6e097de..a40acd6 100644
--- a/arch/powerpc/sysdev/fsl_msi.c
+++ b/arch/powerpc/sysdev/fsl_msi.c
@@ -368,7 +368,7 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev)
 	int err, i, j, irq_index, count;
 	int rc;
 	const u32 *p;
-	struct fsl_msi_feature *features;
+	const struct fsl_msi_feature *features;
 	int len;
 	u32 offset;
 	static const u32 all_avail[] = { 0, NR_MSI_IRQS };
-- 
1.7.10.4

[PATCH 15/25] powerpc/fsl_msi: add a const qualifier

From: Tabi Timur-B04825 <hidden>
Date: 2012-10-15 16:14:27

On Mon, Jul 23, 2012 at 4:13 AM, Uwe Kleine-K=F6nig
[off-list ref] wrote:
This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

        arch/powerpc/sysdev/fsl_msi.c: In function 'fsl_of_msi_probe':
        arch/powerpc/sysdev/fsl_msi.c:379:11: error: assignment discards =
'const' qualifier from pointer target type [-Werror]
Signed-off-by: Uwe Kleine-K=F6nig <redacted>
Acked-by: Timur Tabi <redacted>

--=20
Timur Tabi
Linux kernel developer at Freescale=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help