Re: [PATCH v6 6/9] modpost: Add modname to mod_device_table alias

2025-08-14 Thread Danilo Krummrich
On Thu Aug 14, 2025 at 11:46 PM CEST, Alexey Gladkov wrote: > Again, no. We need the entire symbol to be unique so that the linker > doesn't complain. In fact, this symbol will later be removed from the elf. > It is only needed for the modpost utility. Gotcha -- I think I got confused; for the dev

Re: [PATCH v6 6/9] modpost: Add modname to mod_device_table alias

2025-08-14 Thread Alexey Gladkov
On Thu, Aug 14, 2025 at 04:03:01PM +0200, Danilo Krummrich wrote: > On Thu Aug 14, 2025 at 3:54 PM CEST, Alexey Gladkov wrote: > > On Thu, Aug 14, 2025 at 03:26:53PM +0200, Danilo Krummrich wrote: > >> On Thu Aug 14, 2025 at 3:07 PM CEST, Alexey Gladkov wrote: > >> > At this point, if a symbol is c

Re: [PATCH v6 6/9] modpost: Add modname to mod_device_table alias

2025-08-14 Thread Danilo Krummrich
On Thu Aug 14, 2025 at 3:54 PM CEST, Alexey Gladkov wrote: > On Thu, Aug 14, 2025 at 03:26:53PM +0200, Danilo Krummrich wrote: >> On Thu Aug 14, 2025 at 3:07 PM CEST, Alexey Gladkov wrote: >> > At this point, if a symbol is compiled as part of the kernel, >> > information about which module the sym

Re: [PATCH v6 6/9] modpost: Add modname to mod_device_table alias

2025-08-14 Thread Alexey Gladkov
On Thu, Aug 14, 2025 at 03:26:53PM +0200, Danilo Krummrich wrote: > On Thu Aug 14, 2025 at 3:07 PM CEST, Alexey Gladkov wrote: > > At this point, if a symbol is compiled as part of the kernel, > > information about which module the symbol belongs to is lost. > > > > To save this it is possible to a

Re: [PATCH v6 6/9] modpost: Add modname to mod_device_table alias

2025-08-14 Thread Danilo Krummrich
On Thu Aug 14, 2025 at 3:07 PM CEST, Alexey Gladkov wrote: > At this point, if a symbol is compiled as part of the kernel, > information about which module the symbol belongs to is lost. > > To save this it is possible to add the module name to the alias name. > It's not very pretty, but it's possi

[PATCH v6 6/9] modpost: Add modname to mod_device_table alias

2025-08-14 Thread Alexey Gladkov
At this point, if a symbol is compiled as part of the kernel, information about which module the symbol belongs to is lost. To save this it is possible to add the module name to the alias name. It's not very pretty, but it's possible for now. Cc: Miguel Ojeda Cc: Andreas Hindborg Cc: Danilo Kru