git: a6d45243233c - main - mbuf(9): Properly declare some function macros when debugging is disabled.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jan 2022 12:42:07 UTC
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=a6d45243233ccd26940df7fed127357cdc2d6b75 commit a6d45243233ccd26940df7fed127357cdc2d6b75 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-01-26 11:00:12 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-01-26 11:54:59 +0000 mbuf(9): Properly declare some function macros when debugging is disabled. No functional change intended. MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/sys/mbuf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index cea2c3820143..51dac927e421 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -444,7 +444,7 @@ m_epg_pagelen(const struct mbuf *m, int pidx, int pgoff) "too large header length"); \ } while (0) #else -#define MBUF_EXT_PGS_ASSERT_SANITY(m) do {} while (0); +#define MBUF_EXT_PGS_ASSERT_SANITY(m) do {} while (0) #endif #endif @@ -781,7 +781,7 @@ union if_snd_tag_alloc_params; "Sleeping in \"%s\"", __func__); \ } while (0) #else -#define MBUF_CHECKSLEEP(how) +#define MBUF_CHECKSLEEP(how) do {} while (0) #endif /* @@ -1161,7 +1161,7 @@ m_extrefcnt(struct mbuf *m) ("%s: chain %p contains an unmapped mbuf", __func__, (m)));\ } while (0) #else -#define M_ASSERTMAPPED(m) +#define M_ASSERTMAPPED(m) do {} while (0) #endif /*