From: Steven Rostedt (Red Hat) Date: Fri, 14 Nov 2014 21:18:14 +0000 (-0500) Subject: seq_buf: Add seq_buf_can_fit() helper function X-Git-Tag: omap-for-v3.20/drop-legacy-3517~136^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b77215382b42ef9c5b34293ad3a95332e5b71ef;p=pandora-kernel.git seq_buf: Add seq_buf_can_fit() helper function Add a seq_buf_can_fit() helper function that removes the possible mistakes of comparing the seq_buf length plus added data compared to the size of the buffer. Link: http://lkml.kernel.org/r/20141118164025.GL23958@pathway.suse.cz Reviewed-by: Petr Mladek Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed