From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-f175.google.com ([209.85.217.175]:36154 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752080AbbFZTHJ (ORCPT ); Fri, 26 Jun 2015 15:07:09 -0400 Received: by lbbpo10 with SMTP id po10so69951255lbb.3 for ; Fri, 26 Jun 2015 12:07:08 -0700 (PDT) Received: from [192.168.43.155] (host-95-199-159-58.mobileonline.telia.com. [95.199.159.58]) by mx.google.com with ESMTPSA id wc8sm8379926lbb.37.2015.06.26.12.07.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 12:07:07 -0700 (PDT) Message-ID: <558DA2D7.5000600@gmail.com> (sfid-20150626_210712_688157_EB0ECD0B) Date: Fri, 26 Jun 2015 21:07:03 +0200 From: Florian Grandel MIME-Version: 1.0 To: Linux Backports Subject: Fwd: Re: [PATCH] Bluetooth: hci_ldisc: backport changes References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Sender: backports-owner@vger.kernel.org List-ID: Hi! Wanted to send a patch including version checking upstream to the bluetooth guys - but wasn't accepted, see below. Now your README in the patches folder says that new patches are not usually acceptable on your side. What would be the right approach to get the below define statements into the backports? Regards, Florian -------- Forwarded Message -------- Subject: Re: [PATCH] Bluetooth: hci_ldisc: backport changes Date: Fri, 26 Jun 2015 20:30:15 +0200 From: Marcel Holtmann To: Florian Grandel CC: linux-bluetooth@vger.kernel.org Hi Florian, > The references to tty->termios in hci_ldisc were not backports > compatible. Introducing #define statements to make this file compile > against earlier kernel versions. > > Signed-off-by: Florian Grandel > --- > drivers/bluetooth/hci_ldisc.c | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) > > diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c > index 177dd69..14d08b1 100644 > --- a/drivers/bluetooth/hci_ldisc.c > +++ b/drivers/bluetooth/hci_ldisc.c > @@ -24,6 +24,7 @@ > */ > > #include > +#include > > #include > #include > @@ -277,7 +278,11 @@ void hci_uart_set_flow_control(struct hci_uart *hu, bool enable) > > if (enable) { > /* Disable hardware flow control */ > +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)) > ktermios = tty->termios; > +#else > + ktermios = *tty->termios; > +#endif such a patch is not acceptable upstream. This is something that the backports projects has to keep out-of-tree. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe backports" in