Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp438978pxb; Thu, 9 Sep 2021 04:37:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWc4jWn+JG9bKM0sJynp719s2eIk9Rf56kdvdWBI6Nrjt8UKEch56XIGG5kwvUGGHHXPmm X-Received: by 2002:a5e:c903:: with SMTP id z3mr2246777iol.61.1631187438979; Thu, 09 Sep 2021 04:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631187438; cv=none; d=google.com; s=arc-20160816; b=rYBLjy6de9A37ywwL6lDuerE80AnyjmIeYVRGeytDYU3umKBP6MA2L8h8UMEehDW43 WTIcpRxBPPpfBQKPGjBTNc0da4qEW/cNj59V6v1MHZD5vfblyc5l9++1HA1HdwLExB1N T8ucoxldNOWYXVJRwrcEAaC3JFijroWKtSxnX+96zY7DPEUPZ0RQqWXm4mz8Phin1N+4 9PkFPqdpOgevOC9QGg2VuxNzKI9TwT4/oGIYNMPHMz7K+0vzIxvt/IBpekuaq7Sz8Swl RTONBGVopTLc/gp5B3xYsRo4u2/X8k36dtxuByE2rnOYVVY/6DNaENajILLGgvOcTMzc jx8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=OFBTcsQZY4zh2GfON5VW5tZIU5o5sN7wXNALxSxVOYE=; b=XfdTCQy8/LJFrE+npKt2y+SqnuT7ihEiMGCoE9txRaz7RFIeNs3aDJ4Stwhnf6Yyeq +JiOX34H3V2rlSKYywK5ke2cogXBVI3Fp6Qz0UTC47pcAzN8eaEb+67nCBiOeRkdklCi bXVq1811jyF+CA1jpVsKL6E4V6/XWLItCzRaGLWgiV/fIZdX/mr8WKPbxJD8SDpGp5t6 ziJx847lgxV1bw7ui1zGl57aOP0gNjorz9ggND2lOgebLBdqJwnQppS886NAjOXY3H8b 0yQ0mcOnIbp1Vfp9PfqMjPu50DVQDWimt3i2cfwQn8cs8JPxTkfkks1fcYdufdaADUp1 XKPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si1458225jal.57.2021.09.09.04.37.07; Thu, 09 Sep 2021 04:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235658AbhIILgA (ORCPT + 99 others); Thu, 9 Sep 2021 07:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234507AbhIILf7 (ORCPT ); Thu, 9 Sep 2021 07:35:59 -0400 Received: from mail.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 870DCC061575; Thu, 9 Sep 2021 04:34:50 -0700 (PDT) Received: from localhost (unknown [149.11.102.75]) by mail.monkeyblade.net (Postfix) with ESMTPSA id 74FA34F288FA9; Thu, 9 Sep 2021 04:34:47 -0700 (PDT) Date: Thu, 09 Sep 2021 12:34:42 +0100 (BST) Message-Id: <20210909.123442.1648633411296774237.davem@davemloft.net> To: linux@roeck-us.net Cc: ajk@comnets.uni-bremen.de, kuba@kernel.org, linux-hams@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: 6pack: Fix tx timeout and slot time From: David Miller In-Reply-To: <20210909035743.1247042-1-linux@roeck-us.net> References: <20210909035743.1247042-1-linux@roeck-us.net> X-Mailer: Mew version 6.8 on Emacs 27.1 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.6.2 (mail.monkeyblade.net [0.0.0.0]); Thu, 09 Sep 2021 04:34:48 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guenter Roeck Date: Wed, 8 Sep 2021 20:57:43 -0700 > tx timeout and slot time are currently specified in units of HZ. > On Alpha, HZ is defined as 1024. When building alpha:allmodconfig, > this results in the following error message. > > drivers/net/hamradio/6pack.c: In function 'sixpack_open': > drivers/net/hamradio/6pack.c:71:41: error: > unsigned conversion from 'int' to 'unsigned char' > changes value from '256' to '0' > > In the 6PACK protocol, tx timeout is specified in units of 10 ms > and transmitted over the wire. Defining a value dependent on HZ > doesn't really make sense. Assume that the intent was to set tx > timeout and slot time based on a HZ value of 100 and use constants > instead of values depending on HZ for SIXP_TXDELAY and SIXP_SLOTTIME. > > Signed-off-by: Guenter Roeck > --- > No idea if this is correct or even makes sense. Compile tested only. These are timer offsets so they have to me HZ based. Better to make the structure members unsigned long, I think. Thanks.