Date: Sun, 30 Nov 2014 05:14:20 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 195518] New: igb compilation failed if RSS is defined. Message-ID: <bug-195518-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195518 Bug ID: 195518 Summary: igb compilation failed if RSS is defined. Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: ki@hh.iij4u.or.jp After r275136, kernel compilation failed with RSS option. /usr/src/sys/dev/e1000/if_igb.c:2883:6: error: variable 'queues' is uninitialized when used here [-Werror,-Wuninitialized] if (queues > rss_getnumbuckets()) ^~~~~~ /usr/src/sys/dev/e1000/if_igb.c:2839:24: note: initialize the variable 'queues' to silence this warning int bar, want, queues, msgs, maxqueues; ^ = 0 In igb_setup_msix(), if RSS is defined, 'queues' is used before substituted. 2881 #ifdef RSS 2882 /* If we're doing RSS, clamp at the number of RSS buckets */ 2883 if (queues > rss_getnumbuckets()) 2884 queues = rss_getnumbuckets(); 2885 #endif 2886 2887 if (n_queues != 0) { 2888 queues = n_queues; -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195518-8>