Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp191281pxx; Wed, 28 Oct 2020 02:14:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxACvq7AIXmECJghveHu9WnxcTppWdawPvSwXoCxtlAEtYwiZg20Y+lR/bgBEpJeSkoCtub X-Received: by 2002:a17:906:a40b:: with SMTP id l11mr3384453ejz.25.1603876496248; Wed, 28 Oct 2020 02:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603876496; cv=none; d=google.com; s=arc-20160816; b=NhNZz5swB8uxMWGK6hIx6IPXn5pSUt9+FPrFAa3HdsOH5NLAJJnlMP59u2krAkmsjX XEoKYWnU4/WKfiuuWdc7gmmplX9FkZELX8Ii8QS1JAKxQHXuXo+F5ZqSVGHuFExHPLyY jWpMQSXZKi5hkfbe2kDO7X4KOwdOrAsYAr58JNpHGnXPoFcFyOk359ax7+qk9idYx/ZB jgPlWpCz2VaW9/iQ8ysYvLGKNxHQ3vHLELb0nKCwbHqMjUQMmCADtjn602dcJfN5Kw4S nswfgbB11snU0cxfyYYTWwXnqPYi7uFgLA822CKVXbNTgXi3BNR4n9qYNO96sIbrYLcJ Bl+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gCdIBiBD5lasjRCtSEZowVD8K3DdCWa7j6jqSn7BfcY=; b=aad58OuzslMNVn5tZK/tTrL2rwtJcit+B+qUcXrg15M2WZBCCUoKh+HJhJ19Z8dkLF QHunJw7wmchXfKP+CdAPFqi1fxns9YrDy+4ltmJqcSRl3der1Xd12ga2DHzkUWjDRQi/ ObHNnCwhat2riV4NNkfvMO/DwTX0cYIXeeahZPzAJmjCJqJDgMHPZmfxxAcBU+G7d6aG 3NW3+tM9T3gLQwpFuv5nzkwBbRbM0KtljntfIHl3m08MyGVBGwpUFNqmceO3yxEvmdQF ab3M5fQpjIZOXVyoOtMOUJ7/9UPZtyIsoypi98CWWIloYkmBqVPljkgoMeZSUegYmaB0 h96w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ko57DJCU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si2654785ede.591.2020.10.28.02.14.34; Wed, 28 Oct 2020 02:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ko57DJCU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2900965AbgJ0ORx (ORCPT + 99 others); Tue, 27 Oct 2020 10:17:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:35906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756588AbgJ0OOX (ORCPT ); Tue, 27 Oct 2020 10:14:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D126C2222C; Tue, 27 Oct 2020 14:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603808062; bh=UFpjtS7RJt3OBGdx9vh541bXz4OvrDAqawAjNxjpJiw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ko57DJCUqcrL6EQ85Ee2cbKYgm/wJB5eGtsnqOHvUQUBKz/zp8h8xWwwupqiRupDL s9DAf+6j3RKbFSkROX5Uly5PGUPXpzFHT1fiqHqTL+ECaG3TqE4C0nECO/EqCPVohR 6MscVSnmLoy9TTpntxvJgN76TmNLvU41fgw/gQ5U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.14 101/191] overflow: Include header file with SIZE_MAX declaration Date: Tue, 27 Oct 2020 14:49:16 +0100 Message-Id: <20201027134914.558157448@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134909.701581493@linuxfoundation.org> References: <20201027134909.701581493@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky [ Upstream commit a4947e84f23474803b62a2759b5808147e4e15f9 ] The various array_size functions use SIZE_MAX define, but missed limits.h causes to failure to compile code that needs overflow.h. In file included from drivers/infiniband/core/uverbs_std_types_device.c:6: ./include/linux/overflow.h: In function 'array_size': ./include/linux/overflow.h:258:10: error: 'SIZE_MAX' undeclared (first use in this function) 258 | return SIZE_MAX; | ^~~~~~~~ Fixes: 610b15c50e86 ("overflow.h: Add allocation size calculation helpers") Link: https://lore.kernel.org/r/20200913102928.134985-1-leon@kernel.org Signed-off-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- include/linux/overflow.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/overflow.h b/include/linux/overflow.h index 40b48e2133cb8..38a47cc62cf3a 100644 --- a/include/linux/overflow.h +++ b/include/linux/overflow.h @@ -3,6 +3,7 @@ #define __LINUX_OVERFLOW_H #include +#include /* * In the fallback code below, we need to compute the minimum and -- 2.25.1