Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4841823imm; Sun, 22 Jul 2018 07:03:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIY6B+epBEwHxdjmdpxcsQg3d/AhAPYphlaMIB7wubCxZRC/GxkQaXshi4uVYCNKGIwj2D X-Received: by 2002:a63:9741:: with SMTP id d1-v6mr8480833pgo.403.1532268217569; Sun, 22 Jul 2018 07:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532268217; cv=none; d=google.com; s=arc-20160816; b=cxxTQAI27QWgqxnDWVHJop7iDCmiRG8SHx1KMUXc9t7PLslrHJ5VTZ7Hg9Nb/hfbQg MGSYUz0XLs5z84lubyCUIEx6g0hhdR2BKVTG6u/NATzSfbEOA2weiS7eNDWOgc8WdWId 4isGX6xYTncgbHtgQtzp3TaMoy7avNrzu5Zn+G1JOUXQOuVSbum5QzjBK2a1EnnIB3+2 BdocFuED/xVC+eRklgRk0sPqbtIlAROmz0QWYOMymNbXtmGSH+GqMd97m4pTtY0f/p1i pnBwCKjYJsjrkuxa74x1bVOZF6ZsTo1+/QL/vMH0IZn60w50I1xQ9wBbSee//FZwgsrm r0JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=IzX1RZypzlQv63U+8rr2PxDaNZQonWAHFSpupV1GRM4=; b=Q/zv6MW3hBVBca02n2RTmOZjRH4bz6CNvJ5xtMfw4zd/EuqtHZNH3/ZcgI4BpwUymt fZMcVt6D22sw1V5yDZEr7HXqxbWYTszcin8ogfx0xh0eT5ihDQM6NfvhtU23K3eIbBa6 8acZuntg/IlpkMw+biaM2EhivOHIkJ2Bzlny/138wGsBORJ+k4TMeYIZ6QTDCTppWjDb ghtMFzmy/Knf05X1y6Gy97S8lnQB92IHjh61cxegES5arMeM6jq9K1V53x3vX48ECw3g xP9TGKfUUYRL8qwY8HfBnlhAa5Z6lBHmOSpmUWxyqMBwp3RWiE6jGSBjCSKgFCCnu+ZA 05kw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14-v6si6309361pgm.512.2018.07.22.07.03.22; Sun, 22 Jul 2018 07:03:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729549AbeGVO7U (ORCPT + 99 others); Sun, 22 Jul 2018 10:59:20 -0400 Received: from mail01.asahi-net.or.jp ([202.224.55.13]:39326 "EHLO mail01.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729179AbeGVO7U (ORCPT ); Sun, 22 Jul 2018 10:59:20 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.vps.ablenet.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail01.asahi-net.or.jp (Postfix) with ESMTPA id E19C081F7B; Sun, 22 Jul 2018 23:02:31 +0900 (JST) Received: from yo-satoh-debian.ysato.ml (ZM028236.ppp.dion.ne.jp [222.8.28.236]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id A528824006D; Sun, 22 Jul 2018 23:02:31 +0900 (JST) Date: Sun, 22 Jul 2018 23:02:31 +0900 Message-ID: <87h8krfjwo.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Luc Van Oostenryck Cc: uclinux-h8-devel@lists.sourceforge.jp, linux-kernel@vger.kernel.org Subject: Re: [PATCH] h8300:let the checker know that size_t is ulong In-Reply-To: <20180530210343.22320-1-luc.vanoostenryck@gmail.com> References: <20180530210343.22320-1-luc.vanoostenryck@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 May 2018 06:03:43 +0900, Luc Van Oostenryck wrote: > > 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 > --- > arch/h8300/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile > index e1c02ca23..eaac6685f 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 > -- > 2.17.0 > Sorry too late replay. Applied to h8300-next. Thanks. -- Yosinori Sato