diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-05-30 17:03:43 -0400 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2018-08-22 06:14:21 -0400 |
commit | 1b803a357d520164404c6262710049b09b93ed5a (patch) | |
tree | a206fe6676c7b88e9b5d025f49c1a71c3f50c373 | |
parent | 9819d4e47e88af3d7f082af61b55cb381f23f1a1 (diff) |
h8300:let the checker know that size_t is ulong
All 64bit archs use unsigned long for size_t and most 32bit
archs use 'unsigned int'. By default, this is what is assumed
by sparse.
However, on h8300 (a 32bit arch) size_t is unsigned long which
can led sparse to emit wrong warnings.
Fix this by passing to sparse the flag -msize-long, telling it
that size_t is unsigned long.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
-rw-r--r-- | arch/h8300/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile index e1c02ca230cb..eaac6685fe89 100644 --- a/arch/h8300/Makefile +++ b/arch/h8300/Makefile | |||
@@ -22,6 +22,8 @@ KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" | |||
22 | KBUILD_AFLAGS += $(aflags-y) | 22 | KBUILD_AFLAGS += $(aflags-y) |
23 | LDFLAGS += $(ldflags-y) | 23 | LDFLAGS += $(ldflags-y) |
24 | 24 | ||
25 | CHECKFLAGS += -msize-long | ||
26 | |||
25 | ifeq ($(CROSS_COMPILE),) | 27 | ifeq ($(CROSS_COMPILE),) |
26 | CROSS_COMPILE := h8300-unknown-linux- | 28 | CROSS_COMPILE := h8300-unknown-linux- |
27 | endif | 29 | endif |