Date: Wed, 26 Jan 2022 12:42:07 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: a6d45243233c - main - mbuf(9): Properly declare some function macros when debugging is disabled. Message-ID: <202201261242.20QCg7rI074948@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201261242.20QCg7rI074948>