All of lore.kernel.org
 help / color / mirror / Atom feed
* Module versioning + Missing CRC in symvers + export tracepoints
@ 2021-04-20 12:56 Krishna Chaitanya
  2021-05-04 11:52 ` Krishna Chaitanya
  0 siblings, 1 reply; 2+ messages in thread
From: Krishna Chaitanya @ 2021-04-20 12:56 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,

I am seeing an issue of no CRC being generated in the Module.symvers for a
driver module even when CONFIG_MODVERSIONS Is enabled, this causes
modpost warnings about missing versioning.

The module in questions only exports tracepoint related symbols (as
struct tracepoint is
part of the module CRC), I have seen this with other modules also e.g.
iwlwifi with CONFIG_MODVERSIONS.

Though I am trying on 5.12.-rc2, also, seeing this issue with older kernels with
CONFIG_MODVERSIONS enabled e.g. 4.15.0, Below are a couple of snippets
to demonstrate the issue.

modpost warnings
===============

WARNING: modpost: EXPORT symbol "__tracepoint_iwlwifi_dev_ucode_event"
[drivers/net/wireless/intel/iwlwifi//iwlwifi.ko] version generation
failed, symbol will not be versioned.
WARNING: modpost: EXPORT symbol "iwl_remove_notification"
[drivers/net/wireless/intel/iwlwifi//iwlwifi.ko] version generation
failed, symbol will not be versioned.


Module.symvers (after modpost)
==============
0x00000000      iwl_remove_notification
drivers/net/wireless/intel/iwlwifi//iwlwifi     EXPORT_SYMBOL_GPL
0x00000000      __tracepoint_iwlwifi_dev_ucode_event
drivers/net/wireless/intel/iwlwifi//iwlwifi     EXPORT_SYMBOL

Any ideas?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Module versioning + Missing CRC in symvers + export tracepoints
  2021-04-20 12:56 Module versioning + Missing CRC in symvers + export tracepoints Krishna Chaitanya
@ 2021-05-04 11:52 ` Krishna Chaitanya
  0 siblings, 0 replies; 2+ messages in thread
From: Krishna Chaitanya @ 2021-05-04 11:52 UTC (permalink / raw)
  To: Linux Kernel Mailing List, mmarek, arnd

On Tue, Apr 20, 2021 at 6:26 PM Krishna Chaitanya
<chaitanya.mgit@gmail.com> wrote:
>
> Hi,
>
> I am seeing an issue of no CRC being generated in the Module.symvers for a
> driver module even when CONFIG_MODVERSIONS Is enabled, this causes
> modpost warnings about missing versioning.
>
> The module in questions only exports tracepoint related symbols (as
> struct tracepoint is
> part of the module CRC), I have seen this with other modules also e.g.
> iwlwifi with CONFIG_MODVERSIONS.
>
> Though I am trying on 5.12.-rc2, also, seeing this issue with older kernels with
> CONFIG_MODVERSIONS enabled e.g. 4.15.0, Below are a couple of snippets
> to demonstrate the issue.
>
> modpost warnings
> ===============
>
> WARNING: modpost: EXPORT symbol "__tracepoint_iwlwifi_dev_ucode_event"
> [drivers/net/wireless/intel/iwlwifi//iwlwifi.ko] version generation
> failed, symbol will not be versioned.
> WARNING: modpost: EXPORT symbol "iwl_remove_notification"
> [drivers/net/wireless/intel/iwlwifi//iwlwifi.ko] version generation
> failed, symbol will not be versioned.
>
>
> Module.symvers (after modpost)
> ==============
> 0x00000000      iwl_remove_notification
> drivers/net/wireless/intel/iwlwifi//iwlwifi     EXPORT_SYMBOL_GPL
> 0x00000000      __tracepoint_iwlwifi_dev_ucode_event
> drivers/net/wireless/intel/iwlwifi//iwlwifi     EXPORT_SYMBOL
>
> Any ideas?
Adding people from this
https://patchwork.kernel.org/project/linux-kbuild/patch/CA+55aFxCKgTrh1gS-cMyhBa0QoLW2DL2+DYxOAcA-Bd15H15vg@mail.gmail.com/
thread to throw some light on non-asm version of the issue.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-04 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20 12:56 Module versioning + Missing CRC in symvers + export tracepoints Krishna Chaitanya
2021-05-04 11:52 ` Krishna Chaitanya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.