[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <a916c06e-a9b5-1cd2-2da7-ac8e46b512c9@infradead.org>
Date: Thu, 3 Nov 2022 11:07:43 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: "linux-staging@...ts.linux.dev" <linux-staging@...ts.linux.dev>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc: Larry.Finger@...inger.net, wlanfae@...ltek.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: staging: rtl8192e: build warning on HZ
FYI:
When CONFIG_HZ=24 (arch/mips/):
../drivers/staging/rtl8192e/rtllib_wx.c: In function 'rtl819x_translate_scan':
../drivers/staging/rtl8192e/rtllib_wx.c:220:57: warning: division by zero [-Wdiv-by-zero]
220 | (jiffies - network->last_scanned) / (HZ / 100));
| ^
In file included from ../include/linux/skbuff.h:45,
from ../include/linux/if_ether.h:19,
from ../include/linux/etherdevice.h:20,
from ../drivers/staging/rtl8192e/rtllib_wx.c:18:
../drivers/staging/rtl8192e/rtllib_wx.c: In function 'rtllib_wx_get_scan':
../drivers/staging/rtl8192e/rtllib_wx.c:261:70: warning: division by zero [-Wdiv-by-zero]
261 | (jiffies - network->last_scanned) /
|
--
~Randy
Powered by blists - more mailing lists