Skip to content

Commit

Permalink
lib/gcd: add kernel-doc notation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rddunlap authored and Jonathan Corbet committed Oct 7, 2017
1 parent 078843f commit 341e9a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/gcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
#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;
Expand Down

0 comments on commit 341e9a3

Please sign in to comment.