Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7281649imu; Wed, 14 Nov 2018 14:49:04 -0800 (PST) X-Google-Smtp-Source: AJdET5fwVtwm1KrQT6gxGdTGlMvCqo6N8kujJrQFifSdSiObNlTObXAKI7J/PNyPbkE+01Ne1GF+ X-Received: by 2002:aa7:818a:: with SMTP id g10-v6mr3821267pfi.153.1542235744510; Wed, 14 Nov 2018 14:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235744; cv=none; d=google.com; s=arc-20160816; b=RMqwNxrep9raTbKnv4TPejPCF4MTya8icMhHBAyW3O9qhZC4dmAtWwHQu9uMTUexjN UwlyioKNkUiXttC84NTHB8o3IzXA0gYzNnIM/AYvpD0Fd95cav1bDl6nFgqCQIiTxTzq 8wrbU8FbnqKMz9B99+ldBYzdyX5BSkk8cztcZkS0Y5Irq85JIUiuYRQ1a71UKgnkzkb7 7gVv+JH1OcCDeupyLO/KjVW0oovrAnBo6wd8h99M8NxRDKiXvPC2LNsn5ij2Fha/JofL pfMw95JYP4B7yPi3FhVdeKC+bo/4qujJ4O9v0olSnCoMHGUmBzohqWUKg3XcdA9e2UGH b5gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KxmOXvmj6gRP2XtmoYTUZwB6JAyapcylZoCGNSyO6No=; b=Dx8sVPPECovjBNXdnPTycu7f1JRUllgsXASWCupVa3u7FgMFiSRCPNES5Gpqst1PyZ aY76u+3U8F967MLP73rF3SKPxW+dsCsgB7u2ovrxB1ObDHb1u7Wg14maoBzvopZcoQ7c lyZCZkJIPX51+7igCJWkbAcutrCbteGbodoAwQ+n2zcGF7CvGKZv0KyUZJCY76KA2KR5 sfGJE0gK6LhcWjTYCC5p7SGX7dAinK5Kb4n/qwTbGlxlwo6pA70ZIztakZqhiZBgGsWf xW+OjFyaiosKIDuCjkyVt0zqobuu8LAGX06HrfAGD0AcRYaFPGr+n/As1z0lPxbnZRXr BiDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1Os9YUxW; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91-v6si26092818plc.409.2018.11.14.14.48.49; Wed, 14 Nov 2018 14:49:04 -0800 (PST) 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=@kernel.org header.s=default header.b=1Os9YUxW; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726923AbeKOI1M (ORCPT + 99 others); Thu, 15 Nov 2018 03:27:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:34384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726774AbeKOI1M (ORCPT ); Thu, 15 Nov 2018 03:27:12 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 104CE22511; Wed, 14 Nov 2018 22:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234129; bh=DEsOqQqd8uqeK3VdhnQr/b6NfLk4apK7i9craI7XF3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1Os9YUxWzJAtOC/nq3/F+87z3n0o3lIb1+UAwfPvD5oVJfp07jAGFT8PPnmcMRwWR T0raEm7pVVrdb+demq7jvHlSSCz2pP2Yn8xIBBLpjKVbGqx5191T36m0gOUVfCdaTx qdFxcTjkWMTDuul8WKn3rbiX5q8+tJdnMN3GJjw0= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jiri Slaby , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH AUTOSEL 4.19 03/73] netfilter: bridge: define INT_MIN & INT_MAX in userspace Date: Wed, 14 Nov 2018 17:20:57 -0500 Message-Id: <20181114222207.98701-3-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Slaby [ Upstream commit 5a8de47b3c250521dd632cdedaac6db88367defa ] With 4.19, programs like ebtables fail to build when they include "linux/netfilter_bridge.h". It is caused by commit 94276fa8a2a4 which added a use of INT_MIN and INT_MAX to the header: : In file included from /usr/include/linux/netfilter_bridge/ebtables.h:18, : from include/ebtables_u.h:28, : from communication.c:23: : /usr/include/linux/netfilter_bridge.h:30:20: error: 'INT_MIN' undeclared here (not in a function) : NF_BR_PRI_FIRST = INT_MIN, : ^~~~~~~ Define these constants by including "limits.h" when !__KERNEL__ (the same way as for other netfilter_* headers). Fixes: 94276fa8a2a4 ("netfilter: bridge: Expose nf_tables bridge hook priorities through uapi") Signed-off-by: Jiri Slaby Acked-by: Máté Eckl Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- include/uapi/linux/netfilter_bridge.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/netfilter_bridge.h b/include/uapi/linux/netfilter_bridge.h index 156ccd089df1..1610fdbab98d 100644 --- a/include/uapi/linux/netfilter_bridge.h +++ b/include/uapi/linux/netfilter_bridge.h @@ -11,6 +11,10 @@ #include #include +#ifndef __KERNEL__ +#include /* for INT_MIN, INT_MAX */ +#endif + /* Bridge Hooks */ /* After promisc drops, checksum checks. */ #define NF_BR_PRE_ROUTING 0 -- 2.17.1