Skip to content

Commit

Permalink
Merge tag 'please-pull-misc-3.12' of git://git.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/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
  • Loading branch information
torvalds committed Sep 6, 2013
2 parents 4de9ad9 + 44fd81f commit 1bda20d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions arch/ia64/include/asm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,7 @@ __fls (unsigned long x)

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

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

/*
* hweightN: returns the hamming weight (i.e. the number
Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/include/asm/dmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
/* Use normal IO mappings for DMI */
#define dmi_ioremap ioremap
#define dmi_iounmap(x,l) iounmap(x)
#define dmi_alloc(l) kmalloc(l, GFP_ATOMIC)
#define dmi_alloc(l) kzalloc(l, GFP_ATOMIC)

#endif

0 comments on commit 1bda20d

Please sign in to comment.