From: Daniel Borkmann Date: Tue, 16 Apr 2013 01:29:10 +0000 (+0000) Subject: net: socket: move ktime2ts to ktime header api X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e94d1ef37e439bf45659cc071553574ccb98080;p=pandora-kernel.git net: socket: move ktime2ts to ktime header api Currently, ktime2ts is a small helper function that is only used in net/socket.c. Move this helper into the ktime API as a small inline function, so that i) it's maintained together with ktime routines, and ii) also other files can make use of it. The function is named ktime_to_timespec_cond() and placed into the generic part of ktime, since we internally make use of ktime_to_timespec(). ktime_to_timespec() itself does not check the ktime variable for zero, hence, we name this function ktime_to_timespec_cond() for only a conditional conversion, and adapt its users to it. Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed