> -----Original Message----- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] > On Behalf Of Sergei Shtylyov > Sent: Friday, August 24, 2018 2:03 AM > To: Kirsher, Jeffrey T <jeffrey.t.kirs...@intel.com>; da...@davemloft.net > Cc: Keller, Jacob E <jacob.e.kel...@intel.com>; netdev@vger.kernel.org; > nhor...@redhat.com; sassm...@redhat.com; jogre...@redhat.com; > Venkataramanan, Anirudh <anirudh.venkatarama...@intel.com> > Subject: Re: [net 07/13] ice: Use order_base_2 to calculate higher power of 2 > > Hello! > > On 8/23/2018 10:14 PM, Jeff Kirsher wrote: > > > From: Jacob Keller <jacob.e.kel...@intel.com> > > > > Currently, we use a combination of ilog2 and is_power_of_2() to > > calculate the next power of 2 for the qcount. This appears to be causing > > a warning on some combinations of GCC and the Linux kernel: > > > > MODPOST 1 modules > > WARNING: "____ilog2_NaN" [ice.ko] undefined! > > > > This appears to because because GCC realizes that qcount could be zero > > One "because" is enough. :-)
Woops! Thanks for catching it. Regards, Jake