Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3558744ybl; Tue, 21 Jan 2020 03:04:15 -0800 (PST) X-Google-Smtp-Source: APXvYqymWvFd6s8cTgVmJuZ9cttYpwPlyrrHGZI0bfOxJ6grYZ3eOqomuX7pyr4LKcKENwpD0nQ8 X-Received: by 2002:a05:6830:1149:: with SMTP id x9mr3268179otq.156.1579604654880; Tue, 21 Jan 2020 03:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579604654; cv=none; d=google.com; s=arc-20160816; b=GKcF9nOUtXtkAETEiLQPqjYXFaiUnqDhdohHo8WEKCgXMH73JzDGwA7xmWybxQDIl0 d2wBmdTK0GpDDkcF5EDJiL85vZAWXjt9bKe210G3Vog4XHs+YLvq/7qCd4Qi1U/NkNGv SPGTWdbLl+QvPPFg9PdrWPm5cooPgUhRfnDHCviLfqVHqV5IGJr1CHy1Ze6uc3SU6qGk ClZTe94G7hjWV+WrQwHcFLnk/rkwOOF43TcuHyZWA/ur7HVB6PkdDB15eGRVUBu3XUA9 lsDBLLuzWHnIzHrqFlL8twBxBFx/Xd9gGNMmKaTUTC5g1qTaUympqNv9weF55t3wSVL/ Xq8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=IjZksFth0v6yd+xse6NyCjQmDiy/zvQmXybqbV2F1c4=; b=iYgpXvF6He6EqGpYL/82w+eAk0zIz+rQzP9WD836+alcqsZ/xfovFyEK34Kq2F4pzb rRYWVOEAmUYgu6kO4hxq4QEvOuLybcwUwDVgg8DaNHdv+1bcALqgLt/SwbubG4PwlXof T7TNTLxmtVIc0SIelG5CAIKnphXz6wIAO9y4u03fBOkDvrFM4w9M7TTIwg1HrBhakdL1 7GXpIzbPTJ79sRYG1IKu8iS+CdGEzeP9oirm1pasOOxVGVR/L1OYeZ+fHSYwCWIsf10z 1kHP92MvzbNDqj6LR6QRJchqDzZ0PcDhEuKdDrwgaNpfNns6tIfPRwKAnLsP523zPOnL Dr8w== 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 q15si11558900otk.44.2020.01.21.03.04.01; Tue, 21 Jan 2020 03:04:14 -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 S1729093AbgAULBu (ORCPT + 99 others); Tue, 21 Jan 2020 06:01:50 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:36260 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727255AbgAULBu (ORCPT ); Tue, 21 Jan 2020 06:01:50 -0500 Received: from localhost (82-95-191-104.ip.xs4all.nl [82.95.191.104]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id ABD1715C19EF6; Tue, 21 Jan 2020 03:01:48 -0800 (PST) Date: Tue, 21 Jan 2020 12:01:47 +0100 (CET) Message-Id: <20200121.120147.1198296072172480771.davem@davemloft.net> To: ms@dev.tdt.de 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 From: David Miller In-Reply-To: <20200121.114152.532453946458399573.davem@davemloft.net> References: <20200121060034.30554-1-ms@dev.tdt.de> <20200121.114152.532453946458399573.davem@davemloft.net> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 21 Jan 2020 03:01:49 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.