From nobody Mon Sep 25 13:49:44 2023 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 4RvPPh4lF4z4rMN4; Mon, 25 Sep 2023 13:49:44 +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 4RvPPh433dz4P2t; Mon, 25 Sep 2023 13:49:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695649784; 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=RdGsPoC/mwj82DF76n0n6q8CTc+2bcJ9lDKK5CesXsI=; b=DDKG1FAm1m1H0O56yve+Jqp9D/MKOzU0ZiV4dwJLwEE7OI++MOqCeBM0OdDv32NtXIEnfj /4XWY+zZSRkjMzvP/zvlbxdTLANmqk9GgNgiyJ/DHrPKOVbQgHKBVlXEGGVLXCnsfa65b6 ZhiQyE9IHi1d/lX1aLpHN6vPArt2OF1LSy84g+U6IDj0qOCVOm8F0s7UnUIXKqp+3xNmWa +sZsBAiPfYuYjBzDo1nDqhIPxaLf58xkwW/GfZhLygCipnC/hkIQf9eBo7Qik+yiRP6Wm1 eDAcXLhLdG4GDhBf/iwtkGEicoVNgzgJRp0vPO2yqXPZT1F896+5nHVZY/TPVw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695649784; a=rsa-sha256; cv=none; b=FYN3r2zC9fGrZ6A7U1arQyB0TBNUB51O+or+iGWcaikPt6mHblrIDo5vhlZPC5WS5zu3wj 50fvFjBDPtSXPboh3SJQns6AF82iRCLaNszRgHNwNN+mV1Ssfl0sDJUMwtfabeejoCJqKl C9+sZ80sM+nZ+o2eAeR/U3blEvbTVgCuhXOX+/dbPcqN+WF4W5ZrZiIYtNlfDqVnRr+Kl3 yC6sVddYPJHRz15LCWQZUERDYb4uqZvEvcaBETpx4CLIwU3LkC82J28z/7FG+RVcs+RHvk ov/pHhbQnAX4dSs+pRbcubW0+5OqRs/KhVik9fFzDUrCfEdIDrwDXwl+xrypzQ== 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=1695649784; 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=RdGsPoC/mwj82DF76n0n6q8CTc+2bcJ9lDKK5CesXsI=; b=ULAGBxZY9skLJ35+1izfHSDYak+dYlSJEtrUv2TiS1aXtIfowbzrvm8y4iL7qL9YQ4D1jD uzUf7l6NZX9Z1RjQGE8HCkEUVMRgcoCKa3NvpslJBii6Euue/VARmyFrhXwSTqtrbOt224 E9WPK4D08Xi2EcRupoGoQEc2BsX20MPpTyIw8GiFXkFvkrjDz6R93kw6lMUJb1mVnMkyKc b4rzjLigQ3FldlKVXX/P4InX2qQdzb02sDD8auroMNGge88er2DyhtZxYzLBy5M9REBIWh H/KHQRNpmqY7dLALR1Su52Cs3BYaZ9yQ4kY5qWR2gBa/CWhHrVSx+OfQ3ilv4Q== 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 4RvPPh2wttz257; Mon, 25 Sep 2023 13:49:44 +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 38PDniJv028579; Mon, 25 Sep 2023 13:49:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38PDniw7028576; Mon, 25 Sep 2023 13:49:44 GMT (envelope-from git) Date: Mon, 25 Sep 2023 13:49:44 GMT Message-Id: <202309251349.38PDniw7028576@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: f4ebac8d805b - stable/13 - buf.h: Fix declaration of unmapped_buf 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f4ebac8d805b94c99b08d96a262218cbe48cd3a6 Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=f4ebac8d805b94c99b08d96a262218cbe48cd3a6 commit f4ebac8d805b94c99b08d96a262218cbe48cd3a6 Author: Sebastian Huber AuthorDate: 2022-07-19 18:09:43 +0000 Commit: Ed Maste CommitDate: 2023-09-25 13:49:25 +0000 buf.h: Fix declaration of unmapped_buf For architectures with a small-data area, the __read_mostly section must present at the object declaration. (emaste note: This does not appear to have an affect within FreeBSD, but may be needed by downstream projects that handle __read_mostly / __section(".data.read_mostly") differently.) Pull Request: https://github.com/freebsd/freebsd-src/pull/608 (cherry picked from commit ede6c6c0434a266a1712ffe807f4e31e229948df) --- sys/sys/buf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/sys/buf.h b/sys/sys/buf.h index 73b68a51dce7..b46895b55892 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -510,7 +510,8 @@ extern int bdwriteskip; extern int dirtybufferflushes; extern int altbufferflushes; extern int nswbuf; /* Number of swap I/O buffer headers. */ -extern caddr_t unmapped_buf; /* Data address for unmapped buffers. */ +extern caddr_t __read_mostly unmapped_buf; /* Data address for unmapped + buffers. */ static inline int buf_mapped(struct buf *bp)