On Thu, 2015-03-05 at 11:24 -0800, Alexander Duyck wrote: > When building the kernel using the gcc 4.8.3 compiler included in > Fedora 20 > I was repeatedly seeing the warning: > > drivers/net/ethernet/intel/igb/igb_ptp.c: In function > ‘igb_ptp_feature_enable_i210’: > drivers/net/ethernet/intel/igb/igb_ptp.c:395:21: warning: ‘pin’ may > be used uninitialized in this function > [-Wmaybe-uninitialized] > tssdp &= ~ts_sdp_en[pin]; > ^ > drivers/net/ethernet/intel/igb/igb_ptp.c:471:6: note: ‘pin’ was > declared here > int pin; > ^ > > To resolve it I am assigning the pin a value of -1 when it is > instantiated. > > Signed-off-by: Alexander Duyck <alexander.h.du...@redhat.com> > --- > drivers/net/ethernet/intel/igb/igb_ptp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks Alex, I have added your patch to my queue.
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired