mtd: mxc_nand: Fix compiler warnings
Subsystems (3)
PATCH 1/1 mtd: mxc_nand: Fix compiler warnings
From: Dirk Behme <[email protected]>
Fix the compiler warnings
drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target type
--- drivers/mtd/nand/mxc_nand.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/mtd/nand/mxc_nand.c +4 -4
@@ -1264,16 +1264,16 @@ static const struct mxc_nand_devtype_data imx51_nand_devtype_data = {static const struct of_device_id mxcnd_dt_ids[] = { { .compatible ="fsl,imx21-nand" , - .data = &imx21_nand_devtype_data, + .data = (void *)&imx21_nand_devtype_data, }, { .compatible ="fsl,imx27-nand" , - .data = &imx27_nand_devtype_data, + .data = (void *)&imx27_nand_devtype_data, }, { .compatible ="fsl,imx25-nand" , - .data = &imx25_nand_devtype_data, + .data = (void *)&imx25_nand_devtype_data, }, { .compatible ="fsl,imx51-nand" , - .data = &imx51_nand_devtype_data, + .data = (void *)&imx51_nand_devtype_data, }, {/* sentinel */ } };
Signature · 1 line
1.7.7.4
PATCH 1/1 mtd: mxc_nand: Fix compiler warnings
Hello,
Quoted 8 lines · Dirk Behme
From: Dirk Behme <[email protected]>
Fix the compiler warnings
drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target type
These should be gone in next already.
Best regards,
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/1 mtd: mxc_nand: Fix compiler warnings
Quoted 5 lines · Uwe Kleine-K?nig
Hello,
Quoted 2 lines · Dirk Behme
From: Dirk Behme<[email protected]>
Quoted 7 lines
Quoted 6 lines
Fix the compiler warnings
drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target typeThese should be gone in next already.
Hmm, which next?
I tried linux-next [1] from today (next-20120803, 55fa9961f) and still get
Quoted 1 line
make
drivers/mtd/nand/
...
CC drivers/mtd/nand/mxc_nand.o
drivers/mtd/nand/mxc_nand.c:1298: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1301: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1304: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1307: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1310: warning: initialization discards qualifiers from pointer target type
CC drivers/mtd/nand/gpmi-nand/gpmi-nand.o
...
Sorry if I missed something ;)
Best regards
Dirk
[1]
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=shortlog;h=refs/heads/master
PATCH 1/1 mtd: mxc_nand: Fix compiler warnings
Quoted 12 lines · Dirk Behme
Quoted 11 lines · Uwe Kleine-K?nig
Hello,
Quoted 8 lines · Dirk Behme
From: Dirk Behme<[email protected]>
Fix the compiler warnings
drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target type
Quoted 5 lines
Quoted 1 line
These should be gone in next already.
Hmm, which next?
I tried linux-next [1] from today (next-20120803,
55fa9961f) and still get
next-20120725 contained 98d7bbb9929bcc14e11ac8a55245a4f2dc174e17, don't konw why it isn't included in the newer next snapshorts.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/1 mtd: mxc_nand: Fix compiler warnings
Quoted 13 lines · Uwe Kleine-K?nig
Quoted 12 lines · Dirk Behme
Quoted 11 lines · Uwe Kleine-K?nig
Hello,
Quoted 8 lines · Dirk Behme
From: Dirk Behme<[email protected]>
Fix the compiler warnings
drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target type
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
These should be gone in next already.
Hmm, which next?
I tried linux-next [1] from today (next-20120803,
55fa9961f) and still getnext-20120725 contained
98d7bbb9929bcc14e11ac8a55245a4f2dc174e17, don't konw why it isn't included in the newer next snapshorts.
First, yes, it was part of next-20120725. Second, I can confirm that the patch [1] fixes the compiler warnings I reported above. So my patch is obsolete now.
And third, strange is the absence in next-20120803 and 3.6-rc1. Do we a chance to find out what's ongoing here? It would be a shame if your patch get lost.
Many thanks
Dirk
PATCH 1/1 mtd: mxc_nand: Fix compiler warnings
In reply to Uwe Kleine-KönigQuoted 13 lines · Uwe Kleine-K?nig
Quoted 12 lines · Dirk Behme
Quoted 11 lines · Uwe Kleine-K?nig
Hello,
Quoted 8 lines · Dirk Behme
From: Dirk Behme<[email protected]>
Fix the compiler warnings
drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target type
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
These should be gone in next already.
Hmm, which next?
I tried linux-next [1] from today (next-20120803,
55fa9961f) and still getnext-20120725 contained
98d7bbb9929bcc14e11ac8a55245a4f2dc174e17, don't konw why it isn't included in the newer next snapshorts.
It seems to be in -next again:
I'm not so familiar with -next: Do we have any chance to get that commit into 3.6-rcX to get this warning fixed for the final 3.6?
Best regards
Dirk
PATCH 1/1 mtd: mxc_nand: Fix compiler warnings
Hi Dirk,
Quoted 22 lines · Dirk Behme
Quoted 13 lines · Uwe Kleine-K?nig
Quoted 12 lines · Dirk Behme
Quoted 11 lines · Uwe Kleine-K?nig
Hello,
Quoted 8 lines · Dirk Behme
From: Dirk Behme<[email protected]>
Fix the compiler warnings
drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target typedrivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target typeQuoted 7 lines
Quoted 5 lines
Quoted 1 line
These should be gone in next already.
Hmm, which next?
I tried linux-next [1] from today (next-20120803,
55fa9961f) and still getnext-20120725 contained
98d7bbb9929bcc14e11ac8a55245a4f2dc174e17, don't konw why it isn't included in the newer next snapshorts.
Quoted 6 lines
It seems to be in -next again:
I'm not so familiar with -next: Do we have any chance to get that commit into 3.6-rcX to get this warning fixed for the final 3.6?
Arnd sent a pull request that Linus T. seems to have ignored so far.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |