提交 6f5165e8 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

s390/facilites: use stfle_fac_list array size for MAX_FACILITY_BIT

Use the actual size of the facility list array within the lowcore
structure for the MAX_FACILITY_BIT define instead of a comment which
states what this is good for. This makes it a bit harder to break
things.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 cdd3bd9d
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <linux/preempt.h> #include <linux/preempt.h>
#include <asm/lowcore.h> #include <asm/lowcore.h>
#define MAX_FACILITY_BIT (256*8) /* stfle_fac_list has 256 bytes */ #define MAX_FACILITY_BIT (sizeof(((struct lowcore *)0)->stfle_fac_list) * 8)
static inline int __test_facility(unsigned long nr, void *facilities) static inline int __test_facility(unsigned long nr, void *facilities)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册