From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Schiller Subject: Re: [PATCH v4 1/2] wan/hdlc_x25: make lapb params configurable Date: Tue, 21 Jan 2020 13:22:10 +0100 Message-ID: <19b3ce4b4bdc5f97d38e7880ec40c1ab@dev.tdt.de> References: <20200121060034.30554-1-ms@dev.tdt.de> <20200121.114152.532453946458399573.davem@davemloft.net> <20200121.120147.1198296072172480771.davem@davemloft.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200121.120147.1198296072172480771.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: David Miller Cc: kubakici@wp.pl, khc@pm.waw.pl, linux-x25@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org On 2020-01-21 12:01, David Miller wrote: > From: David Miller > Date: Tue, 21 Jan 2020 11:41:52 +0100 (CET) > >> From: Martin Schiller >> Date: Tue, 21 Jan 2020 07:00:33 +0100 >> >>> This enables you to configure mode (DTE/DCE), Modulo, Window, T1, T2, >>> N2 via >>> sethdlc (which needs to be patched as well). >>> >>> Signed-off-by: Martin Schiller >> >> Applied to net-next. > > I seriously wonder how much you tested this code, because the compiler > warned > me about: > > diff --git a/drivers/net/wan/hdlc_x25.c b/drivers/net/wan/hdlc_x25.c > index 63c9aeed9a34..c84536b03aa8 100644 > --- a/drivers/net/wan/hdlc_x25.c > +++ b/drivers/net/wan/hdlc_x25.c > @@ -253,7 +253,7 @@ static int x25_ioctl(struct net_device *dev, > struct ifreq *ifr) > return -EBUSY; > > /* backward compatibility */ > - if (ifr->ifr_settings.size = 0) { > + if (ifr->ifr_settings.size == 0) { > new_settings.dce = 0; > new_settings.modulo = 8; > new_settings.window = 7; > > I'll commit that fix, but this is truly careless especially since the > compiler > warns about it. I really want to apologize for that. I am currently working with several branches of different kernel versions (mainly 4.19) and I have overlooked this error when porting the latest changes.