[Intel-wired-lan] [PATCH iwl-next v2 1/2] igb: simplify pci ops declaration
Pucha, HimasekharX Reddy
himasekharx.reddy.pucha at intel.com
Wed Mar 13 03:53:20 UTC 2024
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Jesse Brandeburg
> Sent: Wednesday, March 6, 2024 8:20 AM
> To: intel-wired-lan at lists.osuosl.org
> Cc: pmenzel at molgen.mpg.de; netdev at vger.kernel.org; Eric Dumazet <edumazet at google.com>; Nguyen, Anthony L <anthony.l.nguyen at intel.com>; Brady, Alan <alan.brady at intel.com>; horms at kernel.org; Jakub Kicinski <kuba at kernel.org>; Paolo Abeni <pabeni at redhat.com>; David S. Miller <davem at davemloft.net>
> Subject: [Intel-wired-lan] [PATCH iwl-next v2 1/2] igb: simplify pci ops declaration
>
> The igb driver was pre-declaring tons of functions just so that it could have an early declaration of the pci_driver struct.
>
> Delete a bunch of the declarations and move the struct to the bottom of the file, after all the functions are declared.
>
> Reviewed-by: Alan Brady <alan.brady at intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg at intel.com>
> ---
> v2: address compilation failure when CONFIG_PM=n, which is then updated
> in patch 2/2, fix alignment.
> changes in v1 reviewed by Simon Horman
> changes in v1 reviewed by Paul Menzel
> v1: original net-next posting
> ---
> drivers/net/ethernet/intel/igb/igb_main.c | 53 ++++++++++-------------
> 1 file changed, 24 insertions(+), 29 deletions(-)
>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha at intel.com> (A Contingent worker at Intel)
More information about the Intel-wired-lan
mailing list