mirror of
https://github.com/dynup/kpatch
synced 2025-01-26 23:02:51 +00:00
doc: function prototype change workaround suggestion
This commit is contained in:
parent
81ba0afc7e
commit
2ae4f5af4a
@ -342,7 +342,10 @@ When changing header files, be extra careful. If data is being changed, you
|
||||
probably need to modify the patch. See "Data struct changes" above.
|
||||
|
||||
If a function prototype is being changed, make sure it's not an exported
|
||||
function. Otherwise it could break out-of-tree modules.
|
||||
function. Otherwise it could break out-of-tree modules. One way to
|
||||
workaround this is to define an entirely new copy of the function (with
|
||||
updated code) and patch in-tree callers to invoke it rather than the
|
||||
deprecated version.
|
||||
|
||||
Many header file changes result in a complete rebuild of the kernel tree, which
|
||||
makes kpatch-build have to compare every .o file in the kernel. It slows the
|
||||
|
Loading…
Reference in New Issue
Block a user