Re: [PATCH] enetc: fix build warning

2020-12-04 Thread Jakub Kicinski
On Fri, 4 Dec 2020 12:18:16 + Claudiu Manoil wrote: > >-Original Message- > >From: Arnd Bergmann > >Sent: Friday, December 4, 2020 12:37 AM > [...] > >Subject: [PATCH] enetc: fix build warning > > > >From: Arnd Bergmann > > > >When

RE: [PATCH] enetc: fix build warning

2020-12-04 Thread Claudiu Manoil
>-Original Message- >From: Arnd Bergmann >Sent: Friday, December 4, 2020 12:37 AM [...] >Subject: [PATCH] enetc: fix build warning > >From: Arnd Bergmann > >When CONFIG_OF is disabled, there is a harmless warning about >an unused variable: > >enetc_pf.c:

[PATCH] enetc: fix build warning

2020-12-03 Thread Arnd Bergmann
From: Arnd Bergmann When CONFIG_OF is disabled, there is a harmless warning about an unused variable: enetc_pf.c: In function 'enetc_phylink_create': enetc_pf.c:981:17: error: unused variable 'dev' [-Werror=unused-variable] Slightly rearrange the code to pass around the of_node as a function