[EXTERNAL][PATCH 1/5] PCI: Convert pci_resource_to_user to a weak function

Denis Efremov efremov at linux.com
Mon Jul 29 20:06:19 AEST 2019


Hi Paul,

On 29.07.2019 01:49, Paul Burton wrote:
> Hi Denis,
> 
> This is wrong - using __weak on the declaration in a header will cause
> the weak attribute to be applied to all implementations too (presuming
> the C files containing the implementations include the header). You then
> get whichever impleentation the linker chooses, which isn't necessarily
> the one you wanted.

Thank you for pointing me on that. I will prepare the v2.


More information about the Linuxppc-dev mailing list