From nobody Tue Jan 02 00:42:48 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 4T3vG15R0Sz560Qq; Tue, 2 Jan 2024 00:42:49 +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 4T3vG10FWdz3SC5; Tue, 2 Jan 2024 00:42:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704156169; 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=y+20Nkw4XYoqKMIN5vdu0Y7QTucPsW4N2qSDwWJzQxA=; b=jnqGX+7fEWZSLqAgp3mQIkvzhYgXej3AIQm90qo1vDfVFvZuMThQVEia6rZVdW8g1NdCq/ CO+2IeJLnmRva1pqu5a4w2nI1S/ejQRjtMUXkzthyaVzlMhdDSiaHjHg7v0m4rtpKPTR/l lT4wsnA3g4+1CYsy41Roq7B+coNdiIF05B0o/r69x6ybxDqmbzTFnFAC7djr+e4QXVFhE8 QiYmIwYf/Dk7qSwRbihvxdlqH5atH/uroGZYt8QSEOGU4uG6bxTUJqoU0wFIgmZakonCe6 FnUJVJ9xCBJvyMA1S+yaF2KTmazatQGMIIQAaZlXCQb7jb8G0nRUtatCB1Qi7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704156169; a=rsa-sha256; cv=none; b=TuPOzY5MUZItUj922/NpBa57oKGNXD6S128R09+ZLOW9XOF4HpiXmU3QrhIp66FsZYGWqy wosvEkf7T7nRFWKtv0+gW/uZEBmY6gifojmTMvf5wiL8CtrC3vtD7IBBAKT3wwUSu/7Aip xl/txY0JlZFb0S+6IzC+KWBaIy+33SF00DfzpxXwzaD/+fLljmn6fUYY6oCwOSfha7nYoq qMN8bREPC3oXeHXk106NfVpV86rCIh0qb6FLQNO2wuLuQOPbeRbsS0mQtWKfpdM+ASxR4J 6Y8bClQyIxPpN1ndA8IlTjtgATyiq2PIaUvFmItoYktAfmx4Z68ME/UlNMsMdA== 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=1704156169; 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=y+20Nkw4XYoqKMIN5vdu0Y7QTucPsW4N2qSDwWJzQxA=; b=XvZrKQrYIqfS5ZrdqPvEbsCWUZ4yFZr1gJnYvxfKZifbz6EhbRN+x4Fyi8OQ4JFz6kliJ9 Zg2rpib6EGmJV9yjKVegNd0pyvrHirmaGbcZSC5uvkNHMCDeBSSkNgzmohA1p2p6FpjWT0 NqK6m4FzcRfoZDz4vEp0zfaXjijLdWCsiPNL+ro/95908wg1+i+NhFD5ZOCLZZYM6xHH3b ixXWQk4guShlKs+o0BQbDyphNCq6Unt/IbDvCNjI3EYWMwhKtq9cCIXZaCSrMZuGLM2/WX ZCjLPxqlpTlPfuV9XE093MMJ7CBoMNpoeul/3x/AKBdRMsbLU5/A9g3O1HkXFw== 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 4T3vG06TdNzfcD; Tue, 2 Jan 2024 00:42:48 +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 4020gmfG004400; Tue, 2 Jan 2024 00:42:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4020gm6f004397; Tue, 2 Jan 2024 00:42:48 GMT (envelope-from git) Date: Tue, 2 Jan 2024 00:42:48 GMT Message-Id: <202401020042.4020gm6f004397@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: ce248ddce72f - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: ce248ddce72fea1a6069434336bd4e4a144ab30c Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ce248ddce72fea1a6069434336bd4e4a144ab30c commit ce248ddce72fea1a6069434336bd4e4a144ab30c Author: Konstantin Belousov AuthorDate: 2023-12-26 19:39:33 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-02 00:42:14 +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 9c1862956812..bb8719d8a4f1 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -51,7 +51,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.