RE: [PATCH v4 1/7] platform/x86/intel/pmt: Export PMT enumeration functions as GPL

From: Luck, Tony

Date: Wed Apr 08 2026 - 13:06:37 EST


>> The symbol_get() function requires that objects be GPL licensed.
>
> Please don't add new uses of symbol_get, as we've been slowly trying
> to kill it off. If you have bidirectional dependencies just add an
> registration module in the middle to resolve it.

In my case I have "resctrl" (which is built-in, and likely to stay that way) that
needs functions from the "pmt_discovery" module to enumerate which
event counters are present.

Should I add EXPORT_SYMBOL_GPL(some registration function) to resctrl

and have the pmt_discovery code call that to provide pointers to resctrl?

Thanks

-Tony

P.S.

When killing of some function, it would be nice if you added it to:

Documentation/process/deprecated.rst

to make this obvious to unwary developers.