Re: [PATCH 1/1] net/core: work around section mismatch warning for ptp_classifier

2019-04-16 Thread David Miller
From: Gerald Schaefer Date: Mon, 15 Apr 2019 19:14:45 +0200 > From: Ard Biesheuvel > > The routine ptp_classifier_init() uses an initializer for an > automatic struct type variable which refers to an __initdata > symbol. This is perfectly legal, but may trigger a section > mismatch warning when

[PATCH 1/1] net/core: work around section mismatch warning for ptp_classifier

2019-04-15 Thread Gerald Schaefer
From: Ard Biesheuvel The routine ptp_classifier_init() uses an initializer for an automatic struct type variable which refers to an __initdata symbol. This is perfectly legal, but may trigger a section mismatch warning when running the compiler in -fpic mode, due to the fact that the initializer