summaryrefslogtreecommitdiffstats
path: root/arch/h8300
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-05-30 23:03:43 +0200
committerYoshinori Sato <ysato@users.sourceforge.jp>2018-08-22 19:14:21 +0900
commit1b803a357d520164404c6262710049b09b93ed5a (patch)
treea206fe6676c7b88e9b5d025f49c1a71c3f50c373 /arch/h8300
parent9819d4e47e88af3d7f082af61b55cb381f23f1a1 (diff)
downloadtalos-obmc-linux-1b803a357d520164404c6262710049b09b93ed5a.tar.gz
talos-obmc-linux-1b803a357d520164404c6262710049b09b93ed5a.zip
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>
Diffstat (limited to 'arch/h8300')
-rw-r--r--arch/h8300/Makefile2
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\"
KBUILD_AFLAGS += $(aflags-y)
LDFLAGS += $(ldflags-y)
+CHECKFLAGS += -msize-long
+
ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE := h8300-unknown-linux-
endif
OpenPOWER on IntegriCloud