On Thu, 11 Jan 2024 at 15:42, Kees Cook <keescook@xxxxxxxxxxxx> wrote: > > Another ugly idea would be to do a treewide replacement of "func" to > "func_deprecated", and make "func" just a wrapper for it that is marked > with __deprecated. That's probably not a horrible idea, at least when we're talking a reasonable number of users (ie when we're talking "tens of users" like strlcpy is now). We should probably generally rename functions much more aggressively any time the "signature" changes. We've had situations where the semantics changed but not enough to necessarily trigger type warnings, and then renaming things is just a good thing just to avoid mistakes. Even if it's temporary and you plan on renaming things back. And with a coccinelle script (that should be documented in the patch) it's not necessarily all that painful to do. Linus