From nobody Tue Jan 02 00:42:04 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T3vF975fxz560Cw; Tue, 2 Jan 2024 00:42:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T3vF95CBjz3Py9; Tue, 2 Jan 2024 00:42:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704156125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jPIe8F4Tbtr/A64dsNCMynMSjIvLJnuqi1DxsfUU0HA=; b=XrgY8d6sG51KDYtp/4HpjVKe/EYhQh5Cxt9j2x8Iu9Szkx5NrY+b20XKLxxHWP8ETldBoU c9iivD41SLEWxLVDgWJIp/iGBPyE1At6oLMcMLdEBLBVDCxF6XLm3o1fYwHSe71D8p+QX+ cAnpibD0PN00RhiXP0osR8pD3Hita6uVkwgn85bGqx0F9IXFeDOcIIDBPwypFtSJcjlGUI SuJCqx7bAF8fSRrbqC/MoKTrwtMdKFde4tBwoq0CqkZ2xUaN9fSB9TrW/d2/L0FhpLNHzd c6y6KTycNuN1c8lpac95oiyg7xOg/WxalHp+p0Z/xKZu0+fwkhqKdLKr0k4bNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704156125; a=rsa-sha256; cv=none; b=iCWA2FadvyGQXhR94j9IG2W3RNExwqQhW6v6mK+8/9zMJKMLNGZVVQwY7tWgazIkk++EVo C4Mvb+cf7UdIS2t75mGqzWNG4HRCfKhVhiBP230jmTdKQ9EDEnw52sXpHjkUvITndZ0cQw 8fVB3nZjJsLZY2qT0982FdXue7mBXt1vwr5Jjr4y7eJmVCZatKix9oSJt2mopvhZ4IAXK+ yC0dwBn4diG9vZ0vjiZKWHCWvKgybe9jU7HuZqafVLnIeHMJQ5m+e0azO0zXLVUgeNRC5p fyYoC2GnyWwyM5xT5AplYnkpTjEeloT3g7MULifjXQGXPPNT3d1njP13WwA0Gw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704156125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jPIe8F4Tbtr/A64dsNCMynMSjIvLJnuqi1DxsfUU0HA=; b=g+WMFLRkJqXUnC2CBIrCUDgP7KpepAiYHI9mW7pGd+l+UHBJKRbRDDv1kWoP9CTf8R7tFi 5v+wPUGi4rZ7exKVaTPJCNmEHTnKxhkEJV9ougQGpM8/2ufhOTysq+p2DI0d6a1xlO8exT DlKlnIebB7CRocGLyior3hXmosLowzx9FVFtkCBHEnY90/be2DlIorFJt4XcdCWjWoKmKz oqyLmdTo6vb3LCQmKC58v/2vJe1Cx+FlAaXaEiv5j+Tg7TDHeG4X730hDsyKg9ZDCpOAjs 9RdQwLoj8yDoErK9i93yG2j1T/AnC/GCx58YpVW0LnZOHDQdyT7h195CMtsdmg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T3vF82KfHzfbn; Tue, 2 Jan 2024 00:42:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4020g4D2097215; Tue, 2 Jan 2024 00:42:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4020g4Ch097212; Tue, 2 Jan 2024 00:42:04 GMT (envelope-from git) Date: Tue, 2 Jan 2024 00:42:04 GMT Message-Id: <202401020042.4020g4Ch097212@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 27acf8db5b69 - stable/14 - Convert fsidcmp(9) from macro to inline function List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 27acf8db5b69fb0cdc8f52ecdeb6da2f49ec69f1 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=27acf8db5b69fb0cdc8f52ecdeb6da2f49ec69f1 commit 27acf8db5b69fb0cdc8f52ecdeb6da2f49ec69f1 Author: Konstantin Belousov AuthorDate: 2023-12-26 19:39:33 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-02 00:41:39 +0000 Convert fsidcmp(9) from macro to inline function (cherry picked from commit 3334a537ed385e487a47208dab8f36b25643bcdb) --- sys/sys/mount.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 70f4bc2b834e..2c2d4a0a479d 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -52,7 +52,12 @@ typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */ -#define fsidcmp(a, b) memcmp((a), (b), sizeof(fsid_t)) +/* Returns non-zero if fsids are different. */ +static inline int +fsidcmp(const fsid_t *a, const fsid_t *b) +{ + return (a->val[0] != b->val[0] || a->val[1] != b->val[1]); +} /* * File identifier.