Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/lcm.c: quiet sparse noise

The symbol 'lcm' is exported to the kernel (EXPORT_SYMBOL_GPL).
Pick up it's definition in <linux/lcm.h> to quiet the sparse noise:

warning: symbol 'lcm' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

H Hartley Sweeten and committed by
Linus Torvalds
72d39508 b09628ef

+1
+1
lib/lcm.c
··· 1 1 #include <linux/kernel.h> 2 2 #include <linux/gcd.h> 3 3 #include <linux/module.h> 4 + #include <linux/lcm.h> 4 5 5 6 /* Lowest common multiple */ 6 7 unsigned long lcm(unsigned long a, unsigned long b)