Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3628607ybl; Tue, 21 Jan 2020 04:23:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwISUx8tqBquFWwpqpplAtC9fJ4L6kBy8mQ1F55e94XFT4gjcjQd8HZLhL0ZXaeF3I+DTe8 X-Received: by 2002:aca:c507:: with SMTP id v7mr2763839oif.157.1579609408572; Tue, 21 Jan 2020 04:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579609408; cv=none; d=google.com; s=arc-20160816; b=RdO2h61PmrdyGArNgTeD3hbNZokoiEhD3lHGDIpR72efrMTTave1mQst2WBhd6OCVu FZT/OuWprS92ftfBWRgfbbxLgQtd9GSBSHTx5alTUcazimdLAbnMFybMNyzaY9C7jtPh 176RzmfdRF7ri69+0NqYHnQn8TmmvDmt90Ga4CGNBpFUXkTuTtGIPusL4NyJ1F+7ofI0 80hSoAm7rbab50ouMcBEm1T/okk1M3BkukgRT8VV7JS8cLaSoqBNKp6gJn38RWHx3w91 ieOrMPlg/PSYp+QedKfPVdC7R1VzGlZXY0m3ULvLQbIm2MzpZtLH5d/O/XnAnDAety5m gmlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:organization:subject:cc:to:from:date :content-transfer-encoding:mime-version; bh=SiQfvOkPrlfQV5vcLAugRfLw7Zynty8ibQXzaVbHeN8=; b=JG2eEtNZBj39FK4ryvugl+q+/MdYkVWBQW+GDuByyBO1Hy7bQ9+wUpyhul3r52TARN v0/q3HjXKFWC2TcoTcLY4o/2V5ZemIikKH0Gu/0h4Y4lUChG/eg64p/NOYIex4LU+Lfb jMPrWiefpVG8fDR46+UZrgFvN9JbmPrE906Spm8kiRToLkb10zV5RUk/W12aVKl+67LD xPA4AY5L39PqUSL59MCTQkwhv5hfMH+YYOb8HB/rzv64XGoZmSItaUjRs5ZkCQ8CjUlK +0ewcrEL7Jgc4SwLIgRSshsNN/h0EU1fJTd3BqeGF9RjbCHQ2k6NceZzUts/0ePwmFcd 7PxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 185si18794033oie.52.2020.01.21.04.23.16; Tue, 21 Jan 2020 04:23:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729263AbgAUMWU (ORCPT + 99 others); Tue, 21 Jan 2020 07:22:20 -0500 Received: from host-88-217-225-28.customer.m-online.net ([88.217.225.28]:56712 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728655AbgAUMWU (ORCPT ); Tue, 21 Jan 2020 07:22:20 -0500 Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id DD2552115F; Tue, 21 Jan 2020 12:22:10 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 21 Jan 2020 13:22:10 +0100 From: Martin Schiller 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 Subject: Re: [PATCH v4 1/2] wan/hdlc_x25: make lapb params configurable Organization: TDT AG In-Reply-To: <20200121.120147.1198296072172480771.davem@davemloft.net> References: <20200121060034.30554-1-ms@dev.tdt.de> <20200121.114152.532453946458399573.davem@davemloft.net> <20200121.120147.1198296072172480771.davem@davemloft.net> Message-ID: <19b3ce4b4bdc5f97d38e7880ec40c1ab@dev.tdt.de> X-Sender: ms@dev.tdt.de User-Agent: Roundcube Webmail/1.1.5 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: 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.