]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: PTP - avoid aggregate return warnings
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 13 Apr 2016 10:08:28 +0000 (03:08 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 17:41:15 +0000 (10:41 -0700)
commit4ac5209a73295cb96af0fcf1ead74ee77ff54ec4
tree5a9e754ebc84ab32f826e811949605369d8c9189
parent25b1851c76782ba19251786f244eb184bb7e7fb6
i40e: PTP - avoid aggregate return warnings

Orabug: 23176970

Aggregate return warnings are when struct types are returned
and must be copied to the lvalue with a struct copy by the compiler.

This fixes warnings of type aggregate-return from gcc with W=2.

Change-Id: I896b1bf514544bf0faeb458869d79914b9f1b168
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit cdc3d93257e162dd12906a6e0207436c2d5c6873)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_ptp.c