From: Martin Schiller <ms@dev.tdt.de>
To: David Miller <davem@davemloft.net>
Cc: kubakici@wp.pl, khc@pm.waw.pl, linux-x25@vger.kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 1/2] wan/hdlc_x25: make lapb params configurable
Date: Tue, 21 Jan 2020 13:22:10 +0100 [thread overview]
Message-ID: <19b3ce4b4bdc5f97d38e7880ec40c1ab@dev.tdt.de> (raw)
In-Reply-To: <20200121.120147.1198296072172480771.davem@davemloft.net>
On 2020-01-21 12:01, David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Tue, 21 Jan 2020 11:41:52 +0100 (CET)
>
>> From: Martin Schiller <ms@dev.tdt.de>
>> 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 <ms@dev.tdt.de>
>>
>> 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.
prev parent reply other threads:[~2020-01-21 12:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-21 6:00 [PATCH v4 1/2] wan/hdlc_x25: make lapb params configurable Martin Schiller
2020-01-21 6:00 ` [PATCH v4 2/2] wan/hdlc_x25: fix skb handling Martin Schiller
2020-01-21 10:41 ` David Miller
2020-01-21 10:41 ` [PATCH v4 1/2] wan/hdlc_x25: make lapb params configurable David Miller
2020-01-21 11:01 ` David Miller
2020-01-21 12:22 ` Martin Schiller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19b3ce4b4bdc5f97d38e7880ec40c1ab@dev.tdt.de \
--to=ms@dev.tdt.de \
--cc=davem@davemloft.net \
--cc=khc@pm.waw.pl \
--cc=kubakici@wp.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-x25@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).