Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4885202imm; Wed, 30 May 2018 14:06:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2lE0dJ0A+OumZswK1WCw2x6u9Y6CB2o4f5tclTrK7lOaXeliHM+yGlSKGs088uH37ViHy X-Received: by 2002:a17:902:8a:: with SMTP id a10-v6mr4251014pla.89.1527714393277; Wed, 30 May 2018 14:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527714393; cv=none; d=google.com; s=arc-20160816; b=m7FfEneBQ768w4doyyzjzFTh8mRVsrmklPWicMxQrswd8YltmEHKHgh/JmyWIuTb67 KXD7yIsdCgtRPJF8xE0wZJeFA0sZLVRBy+iP+B2HURTgpdiXHAg0VbejeRVPEU8gt6eO TGNXSAy966r8+O39zmTDkZwYz9sOMzeQsTM7bhrGmMHLW6O4cmyzUxoY6vHVtbZpeZ7E 7a2bRqYVgHwHLOKWDFJZx63E20r03ZImLBVBqIWtXTWZQbm0e8QOil7/4zNVso+jAawS aR6tEQjT2NPKPlYpNhBpr7U55a6ppDHe8GYFSMoSktK5hYShAiwT3lNp0KjwPWr1V7yL 5SUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=XwsszqY7AsUwwdQ4UUZztS95GUbC5TUcldiUyrYL8lk=; b=ytyDorvMUBu0sHdpcjd7yu1rNAqSkgrPJbGHQVuOwlPsSMl6obllzYnXHZrGSxrJc/ u/1cFAQz4UsOHIoPOh1v7KxIFh9cd5rNRIgHrDEn2kV5JbgaYMx5xgIsWzU3YIjcav2F 7rQXX+BAIanMQCWHo69htliAyE68lG65gnvkdmNmXIkTS7lEgzDb46ml+n/ERrlpmcMV 4zwHEqR9dpFH64O2hKx1k9qqZZciG93xS90KVBm6NRjpOJHuAZFmqIpbCgMmeKp7wswn nWF7kRhLrjV+a+vEQnJhprF2UYnYaqFnWEaSQrodw0Q4O6Mtl9MxyaBQSabhrIZUwrqY LQew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NfedO19D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i73-v6si36931777pfe.27.2018.05.30.14.06.18; Wed, 30 May 2018 14:06:33 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NfedO19D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932234AbeE3VFs (ORCPT + 99 others); Wed, 30 May 2018 17:05:48 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:32856 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300AbeE3VFr (ORCPT ); Wed, 30 May 2018 17:05:47 -0400 Received: by mail-wm0-f66.google.com with SMTP id x12-v6so414198wmc.0 for ; Wed, 30 May 2018 14:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XwsszqY7AsUwwdQ4UUZztS95GUbC5TUcldiUyrYL8lk=; b=NfedO19Dd1RJtsY9/QgkoUnXAqLZlI82cFKdgBXFZA9k6/0W1m7ZRcI1bLL1uWle64 hbojZe1+5+u7MdpQZQUTYzKbAytUuu1Cc10cB095gcmsP2sXJBpikjCnZxJ9FQ/ZQ/9Q E8FWRJFkrMbix6iwMa8PW/RUYzCh2Zd7CRwpRtSIfx3lA7FHNmyx1gqYVVZbjazVW5Yu XcY/gjpNXrWNw76Cv44Je1AW+RvHLBtLgbjGwdJGHeSVuE2erZac7k/1Ko8ajMvncj01 Rml8aXjowG2/ZZGACQXpNbcrblbWuAE/eDuVJULwFM/Uxs5KYjVJjadUEjO1G/PBmORX il1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XwsszqY7AsUwwdQ4UUZztS95GUbC5TUcldiUyrYL8lk=; b=rP/H9UrpZaPn3gME+ir+F51KCtXzWR2R9OQ+Usjq5mAEm1PuLXIasEDhJpO11Wpb2I 2JGen2Qdj/ovaz3ybMhFBRsfNQzP7NAHNPSVdcSKeq++lY86nojLQOXTmZxdqf+/mP4S mB/oQGLSNhnxg/Z6+xOUL8WfsAusf2iNshByE9vta5hlwyZjy+hR5wm924rdLtPbM0w4 2v1SNMbmtV6KdP3yB55aflNo1MSI9WEQpsuHNwi1u2F4eFCbSUVop2N2fzdWvRYVZbYg Nto4YfYfYDaWTK93WjGYevBEt9Jy0kqzBetpbP6+IlkTr6XscpMm6eyllTTnj7uE7olB Zdgg== X-Gm-Message-State: ALKqPwc9I159LV8FOs2QF34v79H44It26Dn7VFq4U96S7DyFUSEUNEFD IdPhLJCFTpXVj6irNXruU34= X-Received: by 2002:a50:f190:: with SMTP id x16-v6mr5008673edl.59.1527714346423; Wed, 30 May 2018 14:05:46 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:405a:a00:51ca:be87:e123:c124]) by smtp.gmail.com with ESMTPSA id l9-v6sm8330195edb.17.2018.05.30.14.05.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 14:05:45 -0700 (PDT) From: Luc Van Oostenryck To: Yoshinori Sato Cc: uclinux-h8-devel@lists.sourceforge.jp, linux-kernel@vger.kernel.org, Luc Van Oostenryck Subject: [PATCH] h8300:let the checker know that size_t is ulong Date: Wed, 30 May 2018 23:03:43 +0200 Message-Id: <20180530210343.22320-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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