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>
Showing
- drivers/edac/amd64_edac.c 24 additions, 22 deletionsdrivers/edac/amd64_edac.c
- drivers/edac/amd64_edac.h 0 additions, 8 deletionsdrivers/edac/amd64_edac.h
- drivers/edac/sb_edac.c 1 addition, 1 deletiondrivers/edac/sb_edac.c
- drivers/video/sis/init.c 2 additions, 3 deletionsdrivers/video/sis/init.c
- include/linux/bitops.h 8 additions, 0 deletionsinclude/linux/bitops.h
Please register or sign in to comment