Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp831548pxu; Mon, 23 Nov 2020 05:25:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEuk3ixasmvc0w4jsCkNA1O2WPn2i0uFizfqFPmitMoaVTAHwFCTzO9P0QcNhi3j9uoI92 X-Received: by 2002:a05:6402:1456:: with SMTP id d22mr46000486edx.77.1606137924398; Mon, 23 Nov 2020 05:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606137924; cv=none; d=google.com; s=arc-20160816; b=B2VxaDZ8JOZUXMoMXRmKIj7dfzsnBK7mNnyVjSbm9yyRTUDJwGCla3Np5qi0+2xjRU PhtavSoOtClAZtiDUIZ+pkoCHscvpdaH7ar4Qh8fd07Y4V+SJNrG4kU3cpiPlrX3FzLu EFviMNtdxf+2UsJUwlxQ2lfOrPy+LSB3kA9Z2EeoseTlPvg1a/H0WqTU+ad4mAWn/RRK FwXRHCxtKS2ww4tpY/I4NEcq3kndlSZ/h3aZcHZ+N7G4Y8y+XrcHsfRhOB3966KwWNmF taScR5lcCCgd5HLLgQsb+1LvzPzyoV5n/uU+pxk3MU9B1KsVB/U2YVy5ix7qKAIkOi8Z vYvw== 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=s+z29QXOm2E/66Z1hN6ZZ7MTm0jx7ROkcII2pzwH7ZA=; b=eH6RdhHPnaTDkvwi+Y2fzyZ5vpioqccEOh8jcFmQwcxTlwAlqDPUkqVGfu/EeBLBB5 +QYLvSo2sVHcofNI8Fr7zDsFkEMlXZbRc0cVq+msv1rZLY4m5GMz+qTW+newLIRbtrHS ouXaNXpVL06Q9YQwr/z3wc+oyldbzU0tXuqB0KyhSt+MWpAoyOchiE+UsiXda373lrqg Ek/55qsx3IYY+ZAiz3s1djsxMDQHIXL1oSI6rtbruwWZJ2DeWYg/CY29C2rUAoCUKHfi AKLtDanLlDXBwcYzC1mb2EMv9WeBWGVl8JA3YzYRBpBQoaTXNeWmFrDt9mcMqdA3bttQ pA6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XX7OYv+V; 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=pass (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 bx14si6666344edb.13.2020.11.23.05.25.01; Mon, 23 Nov 2020 05:25:24 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=XX7OYv+V; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731808AbgKWMgs (ORCPT + 99 others); Mon, 23 Nov 2020 07:36:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:48570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731699AbgKWMga (ORCPT ); Mon, 23 Nov 2020 07:36:30 -0500 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 03F052065E; Mon, 23 Nov 2020 12:36:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134989; bh=NDiwTZ+Yy4EQL78bDKUvx5rt4xEaVpYvsuF9xd2hvTE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XX7OYv+V83k5tFrCvVHN7XUhPNqsBYRWS/5WW4pwun+EvttXsEF1/Tvld7xaaLEuy Ka90v9X8SzmIT8QGYsjTfU/H+b/hls1664GR+Qm4fPOKjj38JzWj8asVmYpPUvpC2f aSM2zsAj5Jv9I5CBquMtT7oUVgmD76kwp2ZFMxoc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Rothwell , "Michael S. Tsirkin" , Sasha Levin Subject: [PATCH 5.4 065/158] swiotlb: using SIZE_MAX needs limits.h included Date: Mon, 23 Nov 2020 13:21:33 +0100 Message-Id: <20201123121823.072877964@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@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: Stephen Rothwell [ Upstream commit f51778db088b2407ec177f2f4da0f6290602aa3f ] After merging the drm-misc tree, linux-next build (arm multi_v7_defconfig) failed like this: In file included from drivers/gpu/drm/nouveau/nouveau_ttm.c:26: include/linux/swiotlb.h: In function 'swiotlb_max_mapping_size': include/linux/swiotlb.h:99:9: error: 'SIZE_MAX' undeclared (first use in this function) 99 | return SIZE_MAX; | ^~~~~~~~ include/linux/swiotlb.h:7:1: note: 'SIZE_MAX' is defined in header ''; did you forget to '#include '? 6 | #include +++ |+#include 7 | #include include/linux/swiotlb.h:99:9: note: each undeclared identifier is reported only once for each function it appears in 99 | return SIZE_MAX; | ^~~~~~~~ Caused by commit abe420bfae52 ("swiotlb: Introduce swiotlb_max_mapping_size()") but only exposed by commit "drm/nouveu: fix swiotlb include" Fix it by including linux/limits.h as appropriate. Fixes: abe420bfae52 ("swiotlb: Introduce swiotlb_max_mapping_size()") Signed-off-by: Stephen Rothwell Link: https://lore.kernel.org/r/20201102124327.2f82b2a7@canb.auug.org.au Signed-off-by: Michael S. Tsirkin Signed-off-by: Sasha Levin --- include/linux/swiotlb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index cde3dc18e21a2..0a8fced6aaec4 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -5,6 +5,7 @@ #include #include #include +#include struct device; struct page; -- 2.27.0