Skip to contentSkip to conversation

Fix serial_txx9 compile.

PATCH Dave Jones 4 participants 12 messages Jul 21, 2008 – Jul 22, 2008 Linux-next tree

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

drivers/serial/serial_txx9.c: In function 'receive_chars':
drivers/serial/serial_txx9.c:275: error: 'struct uart_info' has no member named 'tty'

drivers/serial/serial_txx9.c renamed from drivers/serial/serial_txx9.c~ +1 -1
@@ -272,7 +272,7 @@ static void serial_txx9_initialize(struc
 static inline void
 receive_chars(struct uart_txx9_port *up, unsigned int *status)
 {
-	struct tty_struct *tty = up->port.info->tty;
+	struct tty_struct *tty = up->port.info->port.tty;
 	unsigned char ch;
 	unsigned int disr = *status;
 	int max_count = 256;
Signature · 1 line
http://www.codemonkey.org.uk
#1 lore raw
Quoted 2 lines · On Mon, 21 Jul 2008 17:16:59 -0400 Dave Jones <[email protected]> wrote:

drivers/serial/serial_txx9.c: In function 'receive_chars':
drivers/serial/serial_txx9.c:275: error: 'struct uart_info' has no member named 'tty'

Already fixed ages ago. Its in a patch that didn't get to Linus yet - see the linux-next tree for the stuff pending.

author
#2 lore raw
Quoted 8 lines · Alan Cox
Quoted 2 lines · On Mon, 21 Jul 2008 17:16:59 -0400 Dave Jones <[email protected]> wrote:

drivers/serial/serial_txx9.c: In function 'receive_chars':
drivers/serial/serial_txx9.c:275: error: 'struct uart_info' has no member named 'tty'

Already fixed ages ago. Its in a patch that didn't get to Linus yet - see the linux-next tree for the stuff pending.

Odd. This breakage happened with the merge in -git8
Why didn't the associated fixes go along with that merge ? If it was fixed ages ago, that implies we knowingly merged broken code, which seems suboptimal. If nothing else, we're breaking bisectability by merging in two batches.

Dave

Signature · 1 line
http://www.codemonkey.org.uk
#3 lore raw
Quoted 2 lines

Odd. This breakage happened with the merge in -git8 Why didn't the associated fixes go along with that merge ?

Because they weren't fully tested against the clashing changes between the tty tree, firmware and some other cleanups of unidentified origin.

Alan

author
#4 lore raw

Re: Fix icom serial compile.

In reply to Dave Jones

drivers/serial/icom.c: In function 'recv_interrupt':
drivers/serial/icom.c:733: error: 'struct uart_info' has no member named 'tty'

drivers/serial/icom.c renamed from drivers/serial/icom.c~ +1 -1
@@ -730,7 +730,7 @@ static void xmit_interrupt(u16 port_int_
 static void recv_interrupt(u16 port_int_reg, struct icom_port *icom_port)
 {
 	short int count, rcv_buff;
-	struct tty_struct *tty = icom_port->uart_port.info->tty;
+	struct tty_struct *tty = icom_port->uart_port.info->port.tty;
 	unsigned short int status;
 	struct uart_icount *icount;
 	unsigned long offset;
Signature · 1 line
http://www.codemonkey.org.uk
#5 lore raw

Re: Fix icom serial compile.

Quoted 4 lines · On Mon, 21 Jul 2008 18:13:55 -0400 Dave Jones <[email protected]> wrote:

drivers/serial/icom.c: In function 'recv_interrupt':
drivers/serial/icom.c:733: error: 'struct uart_info' has no member named 'tty'

NAK. Already in the ttydev tree but not yet gone to Linus

Alan

#6 lore raw

Re: Fix icom serial compile.

Hi Alan,

Quoted 10 lines · On Mon, 21 Jul 2008 23:07:42 +0100 Alan Cox <[email protected]> wrote:
Quoted 4 lines · On Mon, 21 Jul 2008 18:13:55 -0400 Dave Jones <[email protected]> wrote:

drivers/serial/icom.c: In function 'recv_interrupt':
drivers/serial/icom.c:733: error: 'struct uart_info' has no member named 'tty'

NAK. Already in the ttydev tree but not yet gone to Linus

I have just sent a similar patch. I have to ask why you sent only some
of these patches since they were known to break some builds and you had the fix patches already ...

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#7 lore raw

Re: Fix icom serial compile.

Quoted 5 lines
Quoted 1 line

NAK. Already in the ttydev tree but not yet gone to Linus

I have just sent a similar patch. I have to ask why you sent only some
of these patches since they were known to break some builds and you had the fix patches already ...

I sent the first batch only because some later stuff didnt apply and I happen to believe in testing patches before sending them (something I note certain other people clearly do after shitting the lot at Linus)

I spent the past two days travelling, and all the net time I could get trying to get the patches merged and tested. Everyone and their grandmother keep patching the tty code again and again. I just had another go before bed - its now six pulls in a row someone has broken the patches.

Quite frankly if you want to moan about the fact I've been working till 4am trying to sort this mess out you can go see figure 1.

author
#8 lore raw

Re: Fix icom serial compile.

Quoted 9 lines · Alan Cox
Quoted 5 lines
Quoted 1 line

NAK. Already in the ttydev tree but not yet gone to Linus

I have just sent a similar patch. I have to ask why you sent only some
of these patches since they were known to break some builds and you had the fix patches already ...

I sent the first batch only because some later stuff didnt apply and I happen to believe in testing patches before sending them (something I note certain other people clearly do after shitting the lot at Linus)

So what stopped you from just sending the two diffs already posted here twice today ? They're not dependant upon anything else, and the files in questions haven't changed in months.

Leaving the tree broken, and NACKing attempts to fix it don't seem to be particularly productive for anyone.

Quoted 8 lines

I spent the past two days travelling, and all the net time I could get trying to get the patches merged and tested. Everyone and their grandmother keep patching the tty code again and again. I just had another go before bed - its now six pulls in a row someone has broken the patches.

Quite frankly if you want to moan about the fact I've been working till 4am trying to sort this mess out you can go see figure 1.

Please, less drama, more fixing.

Dave

Signature · 1 line
http://www.codemonkey.org.uk
#9 lore raw

Re: Fix icom serial compile.

Quoted 2 lines

Leaving the tree broken, and NACKing attempts to fix it don't seem to be particularly productive for anyone.

I NAKKed the fix because it would have broken the merge *AGAIN* which would have messed up the merging for everything else all for the matter of what four hours ?

Quoted 1 line

Please, less drama, more fixing.

Go see figure 1

#10 lore raw

Re: Fix icom serial compile.

In reply to Alan Cox
Quoted 9 lines · Alan Cox
Quoted 4 lines · On Mon, 21 Jul 2008 18:13:55 -0400 Dave Jones <[email protected]> wrote:

drivers/serial/icom.c: In function 'recv_interrupt':
drivers/serial/icom.c:733: error: 'struct uart_info' has no member named 'tty'

NAK. Already in the ttydev tree but not yet gone to Linus

Well then why on earth did you send Linus the patch that broke stuff in the first place? That seems like a pretty unfriendly act to me.

Paul.

#11 lore raw

Re: Fix icom serial compile.

Quoted 8 lines · On Tue, 22 Jul 2008 11:56:46 +1000 Paul Mackerras <[email protected]> wrote:
Quoted 6 lines · Alan Cox
Quoted 3 lines · On Mon, 21 Jul 2008 18:13:55 -0400 Dave Jones <[email protected]> wrote:

drivers/serial/icom.c: In function 'recv_interrupt':
drivers/serial/icom.c:733: error: 'struct uart_info' has no member named 'tty'

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

NAK. Already in the ttydev tree but not yet gone to Linus

Well then why on earth did you send Linus the patch that broke stuff in the first place? That seems like a pretty unfriendly act to me.

See previous replies, apologies to this address.