lib/gcd: add kernel-doc notation
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 30 Sep 2017 15:43:49 +0000 (08:43 -0700)
committerJonathan Corbet <corbet@lwn.net>
Sat, 7 Oct 2017 16:45:14 +0000 (10:45 -0600)
Add kernel-doc notation for the gcd() function (so that it can be
added to the kernel-api documentation).

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
lib/gcd.c

index 135ee64..227dea9 100644 (file)
--- a/lib/gcd.c
+++ b/lib/gcd.c
 #if !defined(CONFIG_CPU_NO_EFFICIENT_FFS) && !defined(CPU_NO_EFFICIENT_FFS)
 
 /* If __ffs is available, the even/odd algorithm benchmarks slower. */
+
+/**
+ * gcd - calculate and return the greatest common divisor of 2 unsigned longs
+ * @a: first value
+ * @b: second value
+ */
 unsigned long gcd(unsigned long a, unsigned long b)
 {
        unsigned long r = a | b;