Skip to content

Commit

Permalink
doc: function prototype change workaround suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-lawrence committed Apr 20, 2017
1 parent 81ba0af commit 2ae4f5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/patch-author-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ae4f5a

Please sign in to comment.