hw/block/nand: Rename PAGE_SIZE to NAND_PAGE_SIZE
commit9c57272507a95cde3c9c2c90af2312f92cb55422
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 18 Jan 2021 06:38:03 +0000 (18 14:38 +0800)
committerThomas Huth <thuth@redhat.com>
Wed, 20 Jan 2021 09:46:54 +0000 (20 10:46 +0100)
tree5068ef68ec00e26c0618e11a74306a06e94c5e86
parent29ce0d35e1b779afb3a34ee53e03f87f7028b376
hw/block/nand: Rename PAGE_SIZE to NAND_PAGE_SIZE

As per POSIX specification of limits.h [1], OS libc may define
PAGE_SIZE in limits.h.

To prevent collosion of definition, we rename PAGE_SIZE here.

[1]: https://pubs.opengroup.org/onlinepubs/7908799/xsh/limits.h.html

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210118063808.12471-5-jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/block/nand.c