Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp173899pxx; Wed, 28 Oct 2020 01:35:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV8TLD+UBL336L4Xw/90DFnVLAhVPODKH6DuvH0wC76B5WaMwsEIG5NszI4eb5qP00+0Zg X-Received: by 2002:a17:906:4bc2:: with SMTP id x2mr6663329ejv.525.1603874144705; Wed, 28 Oct 2020 01:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603874144; cv=none; d=google.com; s=arc-20160816; b=W9tfvUznpj9OKvvUf3MKsn2jLLVZVPQ7PTTt6m++kkREuBEJiJbkWVV7aUL5y9NW4v Qr5ufLde3EZqD6/UjGpJc7tUz9F+GttGgITwmRPFJkdYg1XCyIqjIvT15YQiRI0hCsjx ZPaRfKNZ7LcjihNfp7/pAmUxCka/HNpOV4fDGGiIVijY0JwQ1hTMo/dbQ692a07t6Bs1 aNeJU2eiV9bsekh1rYKAmEgUqS3ap/nslA1k4+yNvdD6+QIYzpO7ZdVooOuCW1/GJpsJ 0qmxcSS09vQ+Hau4tyJUTyaynavdtBrz2P043fEPnvcnkFIxWeXQbUKybIfx6it/tXFr sK+Q== 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=DRb0A9dI6N+ms9ui1ddZYvfom8jemt1iJaQ/uOX434LBhl3DruIbkr5hPrcUcBAYLX 7N7zZuP0fqnyr4rcn+ASSQKmD3nTFWHcboD2T45f4zhPtjW0HvR8e6BYvlhG1YfEZ4JD XbIAhjuyB4dsjjYjZeWplyot2mqJQ7NpfnFpUVkpVKdtihGp4R3+x7iOQOAGrbEtjmsF /mQ33ZJPuwfSBuS5FT2QqXNNIYFNs5Ki9N8i29DggWNHZ98iMJrpLKIrD1IjVMnNnsF/ 2m85G+6J587m88CD+be1DfJ4RbG+El2u+WHBFmjaBhbnWdT3RKZhd6AJ6jFgDWHL7//J owYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ykvtONjA; 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 x26si2664388eds.99.2020.10.28.01.35.22; Wed, 28 Oct 2020 01:35:44 -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=ykvtONjA; 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 S1754634AbgJ0OGT (ORCPT + 99 others); Tue, 27 Oct 2020 10:06:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:54524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754606AbgJ0OGK (ORCPT ); Tue, 27 Oct 2020 10:06:10 -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 64E4E22258; Tue, 27 Oct 2020 14:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807569; bh=UFpjtS7RJt3OBGdx9vh541bXz4OvrDAqawAjNxjpJiw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ykvtONjA/GzlvjAnMKBJw0F7ghogG0NH491XAl79DWhMMWBcLOE0i7bF8DoESH6ku aEFgYnn6nGlfAdzh6Z8fZ/nca0iXxR+U7RmH4Q+ujeW31PHwhiWlhQF+XtiLFkNmrU mrUs7mMECbndxecIwUVeGis2S6wS/bHvbc1spBbk= 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.9 070/139] overflow: Include header file with SIZE_MAX declaration Date: Tue, 27 Oct 2020 14:49:24 +0100 Message-Id: <20201027134905.445783349@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134902.130312227@linuxfoundation.org> References: <20201027134902.130312227@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