Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-10-06 | lib/gcd.c: prevent possible div by 0 | Davidlohr Bueso | 1 | -0/+3 | |
Account for all properties when a and/or b are 0: gcd(0, 0) = 0 gcd(a, 0) = a gcd(0, b) = b Fixes no known problems in current kernels. Signed-off-by: Davidlohr Bueso <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> | |||||
2012-03-07 | lib: reduce the use of module.h wherever possible | Paul Gortmaker | 1 | -1/+1 | |
For files only using THIS_MODULE and/or EXPORT_SYMBOL, map them onto including export.h -- or if the file isn't even using those, then just delete the include. Fix up any implicit include dependencies that were being masked by module.h along the way. Signed-off-by: Paul Gortmaker <[email protected]> | |||||
2009-06-18 | lib: add lib/gcd.c | Florian Fainelli | 1 | -0/+18 | |
This patch adds lib/gcd.c which contains a greatest common divider implementation taken from sound/core/pcm_timer.c Several usages of this new library function will be sent to subsystem maintainers. [[email protected]: use swap() (pointed out by Joe)] [[email protected]: just add gcd.o to obj-y, remove Kconfig changes] Signed-off-by: Florian Fainelli <[email protected]> Cc: Sergei Shtylyov <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: Simon Horman <[email protected]> Cc: Julius Volz <[email protected]> Cc: David S. Miller <[email protected]> Cc: Patrick McHardy <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> |