https://github.com/torvalds/linux
Revision 1f58d9465c568eb47cab939bbc4f30ae51863295 authored by Thierry Reding on 08 August 2014, 11:06:30 UTC, committed by Sumit Semwal on 28 August 2014, 06:29:38 UTC
The seqno_fence_init() function's cond argument isn't described in the
kerneldoc comment. Fix that to silence a warning when building DocBook
documentation.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
1 parent e9f3b79
Raw File
Tip revision: 1f58d9465c568eb47cab939bbc4f30ae51863295 authored by Thierry Reding on 08 August 2014, 11:06:30 UTC
dma-buf/fence: Fix one more kerneldoc warning
Tip revision: 1f58d94
reciprocal_div.c
#include <linux/kernel.h>
#include <asm/div64.h>
#include <linux/reciprocal_div.h>
#include <linux/export.h>

/*
 * For a description of the algorithm please have a look at
 * include/linux/reciprocal_div.h
 */

struct reciprocal_value reciprocal_value(u32 d)
{
	struct reciprocal_value R;
	u64 m;
	int l;

	l = fls(d - 1);
	m = ((1ULL << 32) * ((1ULL << l) - d));
	do_div(m, d);
	++m;
	R.m = (u32)m;
	R.sh1 = min(l, 1);
	R.sh2 = max(l - 1, 0);

	return R;
}
EXPORT_SYMBOL(reciprocal_value);
back to top