From nobody Sat Feb 7 13:05:50 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7875834AB06; Tue, 13 Jan 2026 07:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768290272; cv=none; b=EH2nRHzuKLwY2XOIOO9n4ow5AMbU0tj8FLI+ytz7qVbN9tfHDVGz5veLmIGb5LqrDbJUdVtydG+GfL9ul9HqSvaNWPo55cKSEs5lMotdBiG/muJq7k0Zud6+BEGz4oeJusZoTklKXStUT9i3cGBGwDRBS+yDgxfGkj8RZE7uXAw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768290272; c=relaxed/simple; bh=dDGinnEv/hwDI6n919dQ+WdzmoAGg5PXMDNfoTENOgA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Dq531DcFjrvKN/bmaa0w8HBAVI7UFImsSqSsqKROvec5zl2x8UqJ54nNa2POjIf9Dsi52EWwXPobfnrWi6vdK8bRQAitfuD+VPonB+i5MocGZO9CR8lALWzsDOfxsgLcY2FDIv7lgeGsWIkn0wUdHG84TkmoE2tg+kySyNSaXgw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0jmRUgCL; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fIAbCzPZ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0jmRUgCL"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fIAbCzPZ" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768290263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+B+tiiOSgm0hNIzNpQ9/RnXH1HzC16eEaSpprAwZNQY=; b=0jmRUgCL/Z8hAJAS/msA7fjSJnr1ZTfs/4ox8FL0ueksJYgLZkIIRcEtCfTv8V8AlfBXS6 IMggIF6hCDbGBqy36XH1Sxh8EfvRzZQlqGfXL+E5RIIfncYG3peA3YGT5k5sDzZsPtMHIG WRTtOwUbHisM7/0CDgT0eMJLS7HnfMEB+5BpJO7F2329q5O4BrFgl+xldAUJZhJWV96+un L6iWlzyW/g4tBxtS7cHcC0OLI7Ow1IoOnYt3OFJ9qQEYQ4a2A1ybh0ky2I2cuDkWipPQcI Edn8quYSeCr3kiYROOST6NFuoWankO+ZUWluToSewLI2pMUnlL/SFJ5OfCVqSg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768290263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+B+tiiOSgm0hNIzNpQ9/RnXH1HzC16eEaSpprAwZNQY=; b=fIAbCzPZrFMK9p30OH+aZEKjqTrRAFXRd4StLlKiZvKcVjsW1nl3y6rGBKr5Wwi66A6ZuY 36BztfytdJqCCTCw== Date: Tue, 13 Jan 2026 08:44:17 +0100 Subject: [PATCH v2 1/3] uapi: add INT_MAX and INT_MIN constants Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260113-uapi-limits-v2-1-93c20f4b2c1a@linutronix.de> References: <20260113-uapi-limits-v2-0-93c20f4b2c1a@linutronix.de> In-Reply-To: <20260113-uapi-limits-v2-0-93c20f4b2c1a@linutronix.de> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Andrew Lunn , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Phil Sutter Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1768290260; l=1051; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=dDGinnEv/hwDI6n919dQ+WdzmoAGg5PXMDNfoTENOgA=; b=maD6p1KKzhdv5+qN58UP+OWyZLDZ5D7EM8Qo1aGkS9UxCSDQgj8UBPivyDsy3cFnEpZFZfGaM 6r3m1/t/ElHBiUf9RsVgyrhuUZ3lf8T+RUR9BDwRp5JJGTTfFhLP2WZ X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Some UAPI headers use INT_MAX and INT_MIN. Currently they include for their definitions, which introduces a problematic dependency on libc. Add custom, namespaced definitions of INT_MAX and INT_MIN using the same values as the regular kernel code. These definitions are not added to uapi/linux/limits.h, as that header will conflict with libc definitions on some platforms. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/uapi/linux/typelimits.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/linux/typelimits.h b/include/uapi/linux/typelimit= s.h new file mode 100644 index 000000000000..8166c639b518 --- /dev/null +++ b/include/uapi/linux/typelimits.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _UAPI_LINUX_TYPELIMITS_H +#define _UAPI_LINUX_TYPELIMITS_H + +#define __KERNEL_INT_MAX ((int)(~0U >> 1)) +#define __KERNEL_INT_MIN (-__KERNEL_INT_MAX - 1) + +#endif /* _UAPI_LINUX_TYPELIMITS_H */ --=20 2.52.0 From nobody Sat Feb 7 13:05:50 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 786D031ED70; Tue, 13 Jan 2026 07:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768290272; cv=none; b=ZPGiJCTR2cQYJeLVlsjIfV5J5NUN35o81peNOexJ3334QiXVAECSlfVGQMsR6HuNqtVZl4Qyf6aFtTJGPr0S/c5o5MIz8msulvDFHgAuOS23x7Sbj2f3BpZ8sCUBAwZ+jmaqFPPzQr3RpvN4qH1ShKBXIdnAUCquYgHzDyOvyZ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768290272; c=relaxed/simple; bh=iANGX4Q6qxYVZYRU4b03ddO8t8QVAF0+rAdnajHaGbw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cmU8DNhJfss7c83Kpi/EYoHhZrUFgozoqGoU6ORie8ntqbv9FW+ZhrPeonlMBjPLtAY6XYm3AJ1RuIIHY3iBAEVhzgb/BNnws28jHjCBobyqSaTWqaRdO1gWop+jLVnoKUfltBWpPHfrAyx3dcJeIajOMXpbJdg+VOmhowKVaUo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=R6IOYhGm; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=spBIs+81; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="R6IOYhGm"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="spBIs+81" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768290264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MWlu9Xbv+hyXYq41qjpldmiCRJPs3xJjYejVCpWHTEo=; b=R6IOYhGmf4ezmbVBSysqxJhT6qASkoNfCcM9S14nMcs3tg+unmIFbJ56Vzr6Ucm1glKYoM ZIwNfTQFkFSs4D//vWUHb1lsHukpmzLYMJXKhCSFAsjfq3zdh01R6+21+d4A7kSKZYGz5i j4AoTnFU8pJIJys7CxNzJeKA7VuoDOKK2QEzp6HWmpXL6XOAOG7JU4zZkyTd37JY4pXiLq JtiKQPZ3T+XM+ZTLb6PeMnqih+x07eDUjgUr9fHAJYegxZQOtoz8i99nHWLv6qcvxkXWi1 8ypRM4UWmubbx89faAoh41PxFLGFG6+hXRhZAxwyE/CxF+i05yw70bXoxkQL8Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768290264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MWlu9Xbv+hyXYq41qjpldmiCRJPs3xJjYejVCpWHTEo=; b=spBIs+81E2CgSWm37WQ/fCFk39/8lchOG8YhFLDdiwXf6BHdoHDelDvpKE7EOXZ0XItjzp RgAJ41nHKalHEUBA== Date: Tue, 13 Jan 2026 08:44:18 +0100 Subject: [PATCH v2 2/3] ethtool: uapi: Use UAPI definition of INT_MAX Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260113-uapi-limits-v2-2-93c20f4b2c1a@linutronix.de> References: <20260113-uapi-limits-v2-0-93c20f4b2c1a@linutronix.de> In-Reply-To: <20260113-uapi-limits-v2-0-93c20f4b2c1a@linutronix.de> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Andrew Lunn , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Phil Sutter Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1768290260; l=1199; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=iANGX4Q6qxYVZYRU4b03ddO8t8QVAF0+rAdnajHaGbw=; b=zkhqxKjVk6PtpV5RIZGdqM5hrdB4PS5fKBYmSgcbha2Ru2pXGRUwVrQJnhbVk15ZeBrmrKYbz DpE/h/ut1JzAAEk248OwzdJfTwv1Xb08X2x8YVYq8ZSGVsuvxUZeQc4 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Using to gain access to INT_MAX introduces a dependency on a libc, which UAPI headers should not do. Use the equivalent UAPI constant. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/uapi/linux/ethtool.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index eb7ff2602fbb..70a0ef08f6f5 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -15,13 +15,10 @@ #define _UAPI_LINUX_ETHTOOL_H =20 #include +#include #include #include =20 -#ifndef __KERNEL__ -#include /* for INT_MAX */ -#endif - /* All structures exposed to userland should be defined such that they * have the same layout for 32-bit and 64-bit userland. */ @@ -2200,7 +2197,7 @@ enum ethtool_link_mode_bit_indices { =20 static inline int ethtool_validate_speed(__u32 speed) { - return speed <=3D INT_MAX || speed =3D=3D (__u32)SPEED_UNKNOWN; + return speed <=3D __KERNEL_INT_MAX || speed =3D=3D (__u32)SPEED_UNKNOWN; } =20 /* Duplex, half or full. */ --=20 2.52.0 From nobody Sat Feb 7 13:05:50 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC64336923C; Tue, 13 Jan 2026 07:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768290273; cv=none; b=GdfPlxpnJnMqkM7fiTINh5/fFlPvD3TdJ7mac4/hfTgrR97mDsIJEwvDo32MAvvw0QAkga3d2sigE5RBmGH/2cQnU0JQIIiP5T+y/SbQppBC64997MXyMTcQ4tqo/COA8ldfs7rfWDt7Viz3KEo1JYrGz7q8BDb0ufyPdPY+SoM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768290273; c=relaxed/simple; bh=PiXWlRzlJeK5UccL9Dj6vkQrMeQL9oQzSnOYnGFCi+M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hB8gtoKQkpC4cbC45nbjT7+HjIkhZ+/ycds701AnscLBuGP0pWcyT0iGDA/4xadKQGTdz25TceDDWi6z8FFqrnWx9hLHIjbnAFrwc2Nh+7wIWeRG7MDrJhjUWwCOIsLNItZ78oYw82ocRomsJMOF9KEUtBhjm8HZcXWP3cQsLn0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Zj0PrUHF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=qxJrYsmu; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Zj0PrUHF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qxJrYsmu" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768290264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CATNf43k7lDUdxCdh5W4SCAQ+bvuoNSzySPQEKtH3DY=; b=Zj0PrUHFVqT/7X+glJOtyK+wgxs2/VBfBe/THvh5C91s+4tEF17mNPGxtw1If4MRU9i0V5 Q/sZef5Pqw4oHz1ZMnMZI7EHIhYtusI/TFaVqV9GE+ZSBmUOBnh+aslYpfJc5sWa347yh7 fw3zBhYN3thr8/gn/MHBANzuszS1nYmNja5WeOZ+C62hjzMlh6wvqLYXtsYUtgM/B6XlmJ LMoklcpaQJj9cAShTye0HvzdLjNg7dTUlJaWcXUZicQybdYN+ORnElE/e6VLzUe1EvKhO3 xrYugi+FoV8jg171ALRg0L9zTDILYfGmEG+OrB3+FxwwiX5fQkjCHHUVs05DAQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768290264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CATNf43k7lDUdxCdh5W4SCAQ+bvuoNSzySPQEKtH3DY=; b=qxJrYsmujF+GKslLxHWBgDP3rig/D8KYlYF7+2I2fFXLZSB+5KejWNPqVmS6vFsPr/wQ3F GZZltNNO5Idz6uDg== Date: Tue, 13 Jan 2026 08:44:19 +0100 Subject: [PATCH v2 3/3] netfilter: uapi: Use UAPI definition of INT_MAX and INT_MIN Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260113-uapi-limits-v2-3-93c20f4b2c1a@linutronix.de> References: <20260113-uapi-limits-v2-0-93c20f4b2c1a@linutronix.de> In-Reply-To: <20260113-uapi-limits-v2-0-93c20f4b2c1a@linutronix.de> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Andrew Lunn , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Phil Sutter Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1768290260; l=3556; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=PiXWlRzlJeK5UccL9Dj6vkQrMeQL9oQzSnOYnGFCi+M=; b=O5/YIHmfA+tkMPardK86a3f09MW7umL83vyt0VTLhkFR4KMGrfMUP7oVHxsM0dfO5gK37RJFN BFp/1To6A0jCVuIkXAJ3vLvQ0WcFesksUGYNkwfoJz2hrASy54Gpojw X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Using to gain access to INT_MAX and INT_MIN introduces a dependency on a libc, which UAPI headers should not do. Use the equivalent UAPI constants. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/uapi/linux/netfilter_bridge.h | 9 +++------ include/uapi/linux/netfilter_ipv4.h | 9 ++++----- include/uapi/linux/netfilter_ipv6.h | 7 +++---- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/include/uapi/linux/netfilter_bridge.h b/include/uapi/linux/net= filter_bridge.h index 1610fdbab98d..f6e8d1e05c97 100644 --- a/include/uapi/linux/netfilter_bridge.h +++ b/include/uapi/linux/netfilter_bridge.h @@ -10,10 +10,7 @@ #include #include #include - -#ifndef __KERNEL__ -#include /* for INT_MIN, INT_MAX */ -#endif +#include =20 /* Bridge Hooks */ /* After promisc drops, checksum checks. */ @@ -31,14 +28,14 @@ #define NF_BR_NUMHOOKS 6 =20 enum nf_br_hook_priorities { - NF_BR_PRI_FIRST =3D INT_MIN, + NF_BR_PRI_FIRST =3D __KERNEL_INT_MIN, NF_BR_PRI_NAT_DST_BRIDGED =3D -300, NF_BR_PRI_FILTER_BRIDGED =3D -200, NF_BR_PRI_BRNF =3D 0, NF_BR_PRI_NAT_DST_OTHER =3D 100, NF_BR_PRI_FILTER_OTHER =3D 200, NF_BR_PRI_NAT_SRC =3D 300, - NF_BR_PRI_LAST =3D INT_MAX, + NF_BR_PRI_LAST =3D __KERNEL_INT_MAX, }; =20 #endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */ diff --git a/include/uapi/linux/netfilter_ipv4.h b/include/uapi/linux/netfi= lter_ipv4.h index 155e77d6a42d..439d3c59862b 100644 --- a/include/uapi/linux/netfilter_ipv4.h +++ b/include/uapi/linux/netfilter_ipv4.h @@ -7,12 +7,11 @@ =20 =20 #include +#include =20 /* only for userspace compatibility */ #ifndef __KERNEL__ =20 -#include /* for INT_MIN, INT_MAX */ - /* IP Hooks */ /* After promisc drops, checksum checks. */ #define NF_IP_PRE_ROUTING 0 @@ -28,7 +27,7 @@ #endif /* ! __KERNEL__ */ =20 enum nf_ip_hook_priorities { - NF_IP_PRI_FIRST =3D INT_MIN, + NF_IP_PRI_FIRST =3D __KERNEL_INT_MIN, NF_IP_PRI_RAW_BEFORE_DEFRAG =3D -450, NF_IP_PRI_CONNTRACK_DEFRAG =3D -400, NF_IP_PRI_RAW =3D -300, @@ -41,8 +40,8 @@ enum nf_ip_hook_priorities { NF_IP_PRI_NAT_SRC =3D 100, NF_IP_PRI_SELINUX_LAST =3D 225, NF_IP_PRI_CONNTRACK_HELPER =3D 300, - NF_IP_PRI_CONNTRACK_CONFIRM =3D INT_MAX, - NF_IP_PRI_LAST =3D INT_MAX, + NF_IP_PRI_CONNTRACK_CONFIRM =3D __KERNEL_INT_MAX, + NF_IP_PRI_LAST =3D __KERNEL_INT_MAX, }; =20 /* Arguments for setsockopt SOL_IP: */ diff --git a/include/uapi/linux/netfilter_ipv6.h b/include/uapi/linux/netfi= lter_ipv6.h index 80aa9b0799af..0e40d00b37fa 100644 --- a/include/uapi/linux/netfilter_ipv6.h +++ b/include/uapi/linux/netfilter_ipv6.h @@ -10,12 +10,11 @@ =20 =20 #include +#include =20 /* only for userspace compatibility */ #ifndef __KERNEL__ =20 -#include /* for INT_MIN, INT_MAX */ - /* IP6 Hooks */ /* After promisc drops, checksum checks. */ #define NF_IP6_PRE_ROUTING 0 @@ -32,7 +31,7 @@ =20 =20 enum nf_ip6_hook_priorities { - NF_IP6_PRI_FIRST =3D INT_MIN, + NF_IP6_PRI_FIRST =3D __KERNEL_INT_MIN, NF_IP6_PRI_RAW_BEFORE_DEFRAG =3D -450, NF_IP6_PRI_CONNTRACK_DEFRAG =3D -400, NF_IP6_PRI_RAW =3D -300, @@ -45,7 +44,7 @@ enum nf_ip6_hook_priorities { NF_IP6_PRI_NAT_SRC =3D 100, NF_IP6_PRI_SELINUX_LAST =3D 225, NF_IP6_PRI_CONNTRACK_HELPER =3D 300, - NF_IP6_PRI_LAST =3D INT_MAX, + NF_IP6_PRI_LAST =3D __KERNEL_INT_MAX, }; =20 =20 --=20 2.52.0