Revision b10c6d4b50cbbdccce2187c1ccc516a9c7335835 authored by Dave Airlie on 19 April 2012, 08:33:32 UTC, committed by Dave Airlie on 19 April 2012, 08:33:32 UTC
Allows this module to load correctly with certain debugging options on.

Reported on irc by scientes
Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 5273db7
Raw File
gcd.c
#include <linux/kernel.h>
#include <linux/gcd.h>
#include <linux/export.h>

/* Greatest common divisor */
unsigned long gcd(unsigned long a, unsigned long b)
{
	unsigned long r;

	if (a < b)
		swap(a, b);
	while ((r = a % b) != 0) {
		a = b;
		b = r;
	}
	return b;
}
EXPORT_SYMBOL_GPL(gcd);
back to top