The patch titled ratelimit: annotate ___ratelimit() has been added to the -mm tree. Its filename is ratelimit-annotate-___ratelimit.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: ratelimit: annotate ___ratelimit() From: Yong Zhang <yong.zhang@xxxxxxxxxxxxx> To prevent from wrongly using the return value. Signed-off-by: Yong Zhang <yong.zhang@xxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Dave Young <hidave.darkstar@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/ratelimit.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff -puN lib/ratelimit.c~ratelimit-annotate-___ratelimit lib/ratelimit.c --- a/lib/ratelimit.c~ratelimit-annotate-___ratelimit +++ a/lib/ratelimit.c @@ -16,9 +16,14 @@ /* * __ratelimit - rate limiting * @rs: ratelimit_state data + * @func: name of calling function * - * This enforces a rate limit: not more than @rs->ratelimit_burst callbacks - * in every @rs->ratelimit_jiffies + * This enforces a rate limit: not more than @rs->burst callbacks + * in every @rs->interval + * + * RETURNS: + * 0 means callbacks will be suppuressed. + * 1 means go ahead and do it. */ int ___ratelimit(struct ratelimit_state *rs, const char *func) { _ Patches currently in -mm which might be from yong.zhang@xxxxxxxxxxxxx are ratelimit-annotate-___ratelimit.patch ratelimit-annotate-___ratelimit-fix.patch kernelh-fix-wrong-usage-of-__ratelimit.patch ratelimit-fix-the-return-value-when-__ratelimit-fails-to-acquire-the-lock.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html