Skip to content

Commit 1bda20d

Browse files
committed
Merge tag 'please-pull-misc-3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
Pull ia64 fixes from Tony Luck: "Couple of small cleanups for ia64" * tag 'please-pull-misc-3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux: [IA64] Use asm-generic/bitops/builtin-ffs.h [IA64] dmi.h: Make dmi_alloc use kzalloc
2 parents 4de9ad9 + 44fd81f commit 1bda20d

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎arch/ia64/include/asm/bitops.h‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,7 @@ __fls (unsigned long x)
425425

426426
#include <asm-generic/bitops/fls64.h>
427427

428-
/*
429-
* ffs: find first bit set. This is defined the same way as the libc and
430-
* compiler builtin ffs routines, therefore differs in spirit from the above
431-
* ffz (man ffs): it operates on "int" values only and the result value is the
432-
* bit number + 1. ffs(0) is defined to return zero.
433-
*/
434-
#define ffs(x) __builtin_ffs(x)
428+
#include <asm-generic/bitops/builtin-ffs.h>
435429

436430
/*
437431
* hweightN: returns the hamming weight (i.e. the number

‎arch/ia64/include/asm/dmi.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
/* Use normal IO mappings for DMI */
88
#define dmi_ioremap ioremap
99
#define dmi_iounmap(x,l) iounmap(x)
10-
#define dmi_alloc(l) kmalloc(l, GFP_ATOMIC)
10+
#define dmi_alloc(l) kzalloc(l, GFP_ATOMIC)
1111

1212
#endif

0 commit comments

Comments
 (0)