rx: Remove includes for MIN/MAX in rx_packet.h

The commit:
    "opr: replace MIN/MAX macros with opr_min/opr_max"
       (Change I2d7b54193ec91f7ead9c5c5f714d9a8bc7533bf7)
replaced all uses of the MIN and MAX macros with opr_min and opr_max.

The include for sys/param.h and sys/sysmacros.h in rx_packet.h are no
longer needed for MIN/MAX.

Remove the preprocessor conditionals and the includes for param.h and
sysmacros.h.

Change-Id: I8f287b012e17ec5cfd6a44525ecdb5e525e21be5
Reviewed-on: https://gerrit.openafs.org/15823
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Cheyenne Wills 2024-08-15 16:08:18 -06:00 committed by Andrew Deason
parent 8e8ee623d1
commit d299dfbfe9

View File

@ -31,20 +31,6 @@
* and that the offsets are as well.
*/
#if !defined(AFS_NT40_ENV)
# if !defined(AFS_DARWIN_ENV) && !defined(AFS_USR_DARWIN_ENV) \
&& !defined(AFS_XBSD_ENV) && !defined(AFS_USR_FBSD_ENV) \
&& !defined(AFS_USR_DFBSD_ENV) && !defined(AFS_LINUX_ENV)
# include <sys/sysmacros.h> /* MIN, MAX on most commercial UNIX */
# endif
/* Linux 3.7 doesn't have sys/param.h in kernel space, and afs/param.h ensures
* that MIN and MAX are available for kernel builds. */
# if !(defined(AFS_LINUX_ENV) && defined(KERNEL))
# include <sys/param.h> /* MIN, MAX elsewhere */
# endif
#endif /* !AFS_NT40_ENV */
#define IPv6_HDR_SIZE 40 /* IPv6 Header */
#define IPv6_FRAG_HDR_SIZE 8 /* IPv6 Fragment Header */
#define UDP_HDR_SIZE 8 /* UDP Header */