linux-next: build failure after merge of the tty tree
Hi all,
After merging the tty tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
drivers/tty/serial/samsung.c: In function 's3c24xx_serial_rx_enable':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^drivers/tty/serial/samsung.c:138:2: note: in expansion of macro 'rx_enabled'
rx_enabled(port) = 1;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_rx_disable':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^drivers/tty/serial/samsung.c:153:2: note: in expansion of macro 'rx_enabled'
rx_enabled(port) = 0;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_stop_tx':drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector
#define tx_enabled(port) ((port)->unused[0])
^
drivers/tty/serial/samsung.c:165:7: note: in expansion of macro 'tx_enabled'
if (!tx_enabled(port))
^~~~~~~~~~
drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector
#define tx_enabled(port) ((port)->unused[0])
^drivers/tty/serial/samsung.c:185:2: note: in expansion of macro 'tx_enabled'
tx_enabled(port) = 0;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_start_tx':drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector
#define tx_enabled(port) ((port)->unused[0])
^
drivers/tty/serial/samsung.c:343:7: note: in expansion of macro 'tx_enabled'
if (!tx_enabled(port)) {
^~~~~~~~~~
drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector
#define tx_enabled(port) ((port)->unused[0])
^drivers/tty/serial/samsung.c:347:3: note: in expansion of macro 'tx_enabled'
tx_enabled(port) = 1;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_stop_rx':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^
drivers/tty/serial/samsung.c:392:6: note: in expansion of macro 'rx_enabled'
if (rx_enabled(port)) {
^~~~~~~~~~
drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^drivers/tty/serial/samsung.c:399:3: note: in expansion of macro 'rx_enabled'
rx_enabled(port) = 0;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_rx_drain_fifo':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^
drivers/tty/serial/samsung.c:621:8: note: in expansion of macro 'rx_enabled'
if (rx_enabled(port)) {
^~~~~~~~~~
drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^
drivers/tty/serial/samsung.c:623:6: note: in expansion of macro 'rx_enabled'
rx_enabled(port) = 0;
^~~~~~~~~~
drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^
drivers/tty/serial/samsung.c:631:6: note: in expansion of macro 'rx_enabled'
rx_enabled(port) = 1;
^~~~~~~~~~
drivers/tty/serial/samsung.c: In function 's3c24xx_serial_shutdown':
drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector
#define tx_enabled(port) ((port)->unused[0])
^drivers/tty/serial/samsung.c:981:3: note: in expansion of macro 'tx_enabled'
tx_enabled(port) = 0;
^~~~~~~~~~drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^drivers/tty/serial/samsung.c:990:3: note: in expansion of macro 'rx_enabled'
rx_enabled(port) = 0;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_startup':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^drivers/tty/serial/samsung.c:1015:2: note: in expansion of macro 'rx_enabled'
rx_enabled(port) = 1;
^~~~~~~~~~drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector
#define tx_enabled(port) ((port)->unused[0])
^drivers/tty/serial/samsung.c:1029:2: note: in expansion of macro 'tx_enabled'
tx_enabled(port) = 1;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c64xx_serial_startup':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^drivers/tty/serial/samsung.c:1080:2: note: in expansion of macro 'rx_enabled'
rx_enabled(port) = 1;
^~~~~~~~~~drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector
#define tx_enabled(port) ((port)->unused[0])
^drivers/tty/serial/samsung.c:1082:2: note: in expansion of macro 'tx_enabled'
tx_enabled(port) = 0;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_resume_noirq':drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector
#define tx_enabled(port) ((port)->unused[0])
^
drivers/tty/serial/samsung.c:1966:8: note: in expansion of macro 'tx_enabled'
if (tx_enabled(port))
^~~~~~~~~~
drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector
#define rx_enabled(port) ((port)->unused[1])
^
drivers/tty/serial/samsung.c:1968:8: note: in expansion of macro 'rx_enabled'
if (rx_enabled(port))
^~~~~~~~~~Caused by commit
c550f01c810f ("serial:serial_core: Allow use of CTS for PPS line discipline")
Looks like a suprise from some "interesting" previous development.
I have used the tty tree from next-20181003 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Interesting indeed. Who would have thought someone would be using the "unused" padding variable!
How would folks prefer we fix this, in the referenced patch or by eliminating the use of "unused" in samsung.c?
Steve
Quoted 141 lines · Stephen Rothwell
Hi all,
After merging the tty tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/tty/serial/samsung.c: In function 's3c24xx_serial_rx_enable':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector#define rx_enabled(port) ((port)->unused[1]) ^
drivers/tty/serial/samsung.c:138:2: note: in expansion of macro 'rx_enabled'
rx_enabled(port)= 1;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_rx_disable':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector#define rx_enabled(port) ((port)->unused[1]) ^
drivers/tty/serial/samsung.c:153:2: note: in expansion of macro 'rx_enabled'
rx_enabled(port)= 0;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_stop_tx':drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector#define tx_enabled(port) ((port)->unused[0]) ^ drivers/tty/serial/samsung.c:165:7: note: in expansion of macro 'tx_enabled' if (!tx_enabled(port)) ^~~~~~~~~~ drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector #define tx_enabled(port) ((port)->unused[0]) ^
drivers/tty/serial/samsung.c:185:2: note: in expansion of macro 'tx_enabled'
tx_enabled(port)= 0;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_start_tx':drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector#define tx_enabled(port) ((port)->unused[0]) ^ drivers/tty/serial/samsung.c:343:7: note: in expansion of macro 'tx_enabled' if (!tx_enabled(port)) { ^~~~~~~~~~ drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector #define tx_enabled(port) ((port)->unused[0]) ^ drivers/tty/serial/samsung.c:347:3: note: in expansion of macro 'tx_enabled' tx_enabled(port) = 1; ^~~~~~~~~~ drivers/tty/serial/samsung.c: In function 's3c24xx_serial_stop_rx': drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector #define rx_enabled(port) ((port)->unused[1]) ^ drivers/tty/serial/samsung.c:392:6: note: in expansion of macro 'rx_enabled' if (rx_enabled(port)) { ^~~~~~~~~~ drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector #define rx_enabled(port) ((port)->unused[1]) ^ drivers/tty/serial/samsung.c:399:3: note: in expansion of macro 'rx_enabled' rx_enabled(port) = 0; ^~~~~~~~~~ drivers/tty/serial/samsung.c: In function 's3c24xx_serial_rx_drain_fifo': drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector #define rx_enabled(port) ((port)->unused[1]) ^ drivers/tty/serial/samsung.c:621:8: note: in expansion of macro 'rx_enabled' if (rx_enabled(port)) { ^~~~~~~~~~ drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector #define rx_enabled(port) ((port)->unused[1]) ^ drivers/tty/serial/samsung.c:623:6: note: in expansion of macro 'rx_enabled' rx_enabled(port) = 0; ^~~~~~~~~~ drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector #define rx_enabled(port) ((port)->unused[1]) ^ drivers/tty/serial/samsung.c:631:6: note: in expansion of macro 'rx_enabled' rx_enabled(port) = 1; ^~~~~~~~~~ drivers/tty/serial/samsung.c: In function 's3c24xx_serial_shutdown': drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector #define tx_enabled(port) ((port)->unused[0]) ^ drivers/tty/serial/samsung.c:981:3: note: in expansion of macro 'tx_enabled' tx_enabled(port) = 0; ^~~~~~~~~~ drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector #define rx_enabled(port) ((port)->unused[1]) ^ drivers/tty/serial/samsung.c:990:3: note: in expansion of macro 'rx_enabled' rx_enabled(port) = 0; ^~~~~~~~~~ drivers/tty/serial/samsung.c: In function 's3c24xx_serial_startup': drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector #define rx_enabled(port) ((port)->unused[1]) ^
drivers/tty/serial/samsung.c:1015:2: note: in expansion of macro 'rx_enabled'
rx_enabled(port)= 1;
^~~~~~~~~~drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector#define tx_enabled(port) ((port)->unused[0]) ^
drivers/tty/serial/samsung.c:1029:2: note: in expansion of macro 'tx_enabled'
tx_enabled(port)= 1;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c64xx_serial_startup':drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector#define rx_enabled(port) ((port)->unused[1]) ^
drivers/tty/serial/samsung.c:1080:2: note: in expansion of macro 'rx_enabled'
rx_enabled(port)= 1;
^~~~~~~~~~drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector#define tx_enabled(port) ((port)->unused[0]) ^
drivers/tty/serial/samsung.c:1082:2: note: in expansion of macro 'tx_enabled'
tx_enabled(port)= 0;
^~~~~~~~~~drivers/tty/serial/samsung.c: In function 's3c24xx_serial_resume_noirq':drivers/tty/serial/samsung.c:86:41: error: subscripted value is neither array nor pointer nor vector#define tx_enabled(port) ((port)->unused[0]) ^ drivers/tty/serial/samsung.c:1966:8: note: in expansion of macro 'tx_enabled' if (tx_enabled(port)) ^~~~~~~~~~ drivers/tty/serial/samsung.c:87:41: error: subscripted value is neither array nor pointer nor vector #define rx_enabled(port) ((port)->unused[1]) ^ drivers/tty/serial/samsung.c:1968:8: note: in expansion of macro 'rx_enabled' if (rx_enabled(port)) ^~~~~~~~~~Caused by commit
c550f01c810f("serial:serial_core: Allow use of CTS for PPS line discipline")Looks like a suprise from some "interesting" previous development.
I have used the tty tree from next-20181003 for today. --
Cheers,
Stephen Rothwell
Quoted 2 lines · Steve Sakoman
Interesting indeed. Who would have thought someone would be using the "unused" padding variable!
Ugh :(
Quoted 2 lines
How would folks prefer we fix this, in the referenced patch or by eliminating the use of "unused" in
samsung.c?
We should just get rid of the "unused" fields entirely. They aren't needed here as this is not a structure that anyone really cares about. We can move things around a bit if the padding is an issue.
I've reverted this patch first for now. I suggest a patch to the uart core to drop the unused fields and fix up the samsung driver and then your patch can go on top of that. Can you work on this?
thanks,
greg k-h
Quoted 7 lines · Greg Kroah-Hartman
We should just get rid of the "unused" fields entirely. They aren't needed here as this is not a structure that anyone really cares about. We can move things around a bit if the padding is an issue.
I've reverted this patch first for now. I suggest a patch to the uart core to drop the unused fields and fix up the samsung driver and then your patch can go on top of that. Can you work on this?
Yes I can. Stay tuned . . .
Steve
Hi Greg,
I sent the patch you requested to fix use of the "unused" struct member in samsung.c. If that looks OK to you I'll redo my "serial:serial_core: Allow use of CTS for PPS line discipline" patch.
Thanks,
Steve
Quoted 21 lines · Greg Kroah-Hartman
Quoted 2 lines · Steve Sakoman
Interesting indeed. Who would have thought someone would be using the "unused" padding variable!
Ugh :(
Quoted 2 lines
How would folks prefer we fix this, in the referenced patch or by eliminating the use of "unused" in
samsung.c?We should just get rid of the "unused" fields entirely. They aren't needed here as this is not a structure that anyone really cares about. We can move things around a bit if the padding is an issue.
I've reverted this patch first for now. I suggest a patch to the uart core to drop the unused fields and fix up the samsung driver and then your patch can go on top of that. Can you work on this?
thanks,
greg k-h
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
A: No.
Q: Should I include quotations after my reply?
http://daringfireball.net/2007/07/on_top
Quoted 5 lines · Steve Sakoman
Hi Greg,
I sent the patch you requested to fix use of the "unused" struct member in
samsung.c. If that looks OK to you I'll redo my "serial:serial_core: Allow use of CTS for PPS line discipline" patch.
I think it needs a bit of a rework, see my review comments on that patch.
thanks,
greg k-h