bitops: Introduce a more generic BITMASK macro
authorChen, Gong <gong.chen@linux.intel.com>
Fri, 18 Oct 2013 21:29:07 +0000 (14:29 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 21 Oct 2013 22:12:01 +0000 (15:12 -0700)
commit10ef6b0dffe404bcc54e94cb2ca1a5b18445a66b
tree6450859ffdc4494f2211442dd411b7f189cf326d
parent88f074f4871a8c212b212b725e4dcdcdb09613c1
bitops: Introduce a more generic BITMASK macro

GENMASK is used to create a contiguous bitmask([hi:lo]). It is
implemented twice in current kernel. One is in EDAC driver, the other
is in SiS/XGI FB driver. Move it to a more generic place for other
usage.

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h
drivers/edac/sb_edac.c
drivers/video/sis/init.c
include/linux/bitops.h