Re: [patch 16/17] Immediate Values - Documentation



On Thursday 10 April 2008 01:08:45 Mathieu Desnoyers wrote:
If you have to read the immediate values from a function declared as
__init or __exit, you should explicitly use _imv_read(), which will fall
back on a global variable read. Failing to do so will leave a reference to
the __init section after it is freed (it would generate a modpost
warning).

That's a real usability wart. Couldn't we skip these in the patching loop if
required and revert so noone can make this mistake?

Thanks,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [patch 16/17] Immediate Values - Documentation
    ... Rusty Russell wrote: ... Failing to do so will leave a reference to ... only if we can find a way to detect the macro is put within a init ...
    (Linux-Kernel)
  • Re: [PATCH 00/14] Kernel memory leak detector
    ... WARNING: modpost: Found 6 section mismatch. ... WARNING: vmlinux.o: Section mismatch in reference from ... This is often because kmemleak_free lacks a __init ... annotation or the annotation of log_early is wrong. ...
    (Linux-Kernel)
  • Re: macros using 2 open documents.
    ... We seem to be failing to communicate. ... relevant to the technical solution you are asking for. ... You previously used Windowsand Windowsto reference two documents. ... >> Windows.Activate and the macro worked fine flipping back and forth. ...
    (microsoft.public.word.vba.general)
  • Re: References for VBA
    ... > for yourself and when you do, it's a failing in the product and/or ... >>> Hi Amy, ... >>> Access, it's the mso constants that aren't defined, so ... ... >> Why would that give a good indication of the reference that was missing? ...
    (microsoft.public.word.vba.userforms)
  • Re: wrongly marked __init/__initdata for CPU hotplug
    ... So the reference is coming from the init function. ... Try disassembling the code around the offending reference. ... Naughty gcc. ... I am puzzled about why the objdump lists ...
    (Linux-Kernel)