diff options
| author | Ard Biesheuvel <[email protected]> | 2019-04-15 19:14:45 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-04-16 20:46:17 -0700 |
| commit | ad910c7c01269f229a97c335f2dc669fff750f65 (patch) | |
| tree | 94815209f5a50aaa29411e6e5511f5076f049b68 /drivers/usb/cdns3/cdns3-ep0.c | |
| parent | 3b2e2904deb314cc77a2192f506f2fd44e3d10d0 (diff) | |
net/core: work around section mismatch warning for ptp_classifier
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 may be emitted into an anonymous
.data section thats lack the __init annotation. So work around it
by using assignments instead.
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Gerald Schaefer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ep0.c')
0 files changed, 0 insertions, 0 deletions