Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp279175pxx; Wed, 28 Oct 2020 04:52:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZAybUVJqi1fgClYWB5EHDgTmDugep1Z/xYos0sW3Dzh26zIwiuL9x8bgXdksAbysUzKwS X-Received: by 2002:a05:6402:941:: with SMTP id h1mr7071936edz.154.1603885959992; Wed, 28 Oct 2020 04:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603885959; cv=none; d=google.com; s=arc-20160816; b=RPkH+tJiIi0AQYKVlkZTPlL9EG8gCjTKyFb4MZdoURaE4E+FcpS0yiDhr4L4vtWou7 OeHQYIj41zWwglIPq/2JF38aPTUAOJiCYfn5T86BiLimNX8cdPN8QPiX2pnv1GhQRZ34 aR02jaS6l1n4aAI8ymL/kw3nVyoL6tdTn42mMO61WpT1igBMO/Y2nWjr7SlXKyrmMwvH m7OHc1y0/VK/KbisF0FffZqDgv36mWg4N/wAhdTF911ciAfkp3W2GG/d355FVSmoxRv4 jUzPgH9pB6E7DG3SwprKet5DQD6iKb8bRkThuxyxuiL9pavs+6wclpxfqK6izy7Pem9R YB0g== 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=MQswP8xkivwqCAGdDzRbA2Gt2TFHeas6EIQVZ8mdrxU=; b=c39MBjXhEOoxoZRyWO4+TbgyfUFRrqtJ2qmWCEhH9AFnq7bvsTZdzDEnqyO0X7G5aL YECXAFMoUO6tUQVpG8fqYPEEMN+gEGXejM9lmxGOKBlVqBIPHdMw7YKDWUESpCDL/nmL T3POR7r8abjVHvVnyZy7hOV03kY+8IDdp18VfJvov+eoENP51SS7X2TJKanmbl3Ykcu+ Al6tCKVu0leruQOPJCaYuSDLAcpUKyKuMh+4l5IVSV8xbKpb5AF/eGNmRxAD5R+jpU7E lvrsVtZANchZOI01ca1vcGjFW0zx0VpdADu3sZGYrvrOviwInLpWhfOfkylmSUhxFb9C Snjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pb0YKQ2a; 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 q18si2524555edb.466.2020.10.28.04.52.17; Wed, 28 Oct 2020 04:52:39 -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=Pb0YKQ2a; 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 S1794693AbgJ0PNF (ORCPT + 99 others); Tue, 27 Oct 2020 11:13:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:40254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1791015AbgJ0PGB (ORCPT ); Tue, 27 Oct 2020 11:06:01 -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 16456206E5; Tue, 27 Oct 2020 15:05:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811160; bh=fdehwSk42flU2YEsujxC+Si/pDhP5jTCTrRsyUgNy0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pb0YKQ2avR+Fk2zcJxmDUPPSvcQ2neV3B4ZTOgd/lCzPPDoJ7DGhlsBSZRV412k24 d5wqjtHxx74IqJ0AlJaTxS69VFAzbjWcXZNuzYWbFxUz3+vPjof7HR1p3RJiKZmRYh YodMHjNgAPFQh1S/arqTDcaSOE+VZrhrkve1NInY= 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 5.8 395/633] overflow: Include header file with SIZE_MAX declaration Date: Tue, 27 Oct 2020 14:52:18 +0100 Message-Id: <20201027135541.241258699@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 93fcef105061b..ff3c48f0abc5b 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