From nobody Tue Nov 24 17:21:30 2026 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 4jYqNW3w15z71Zw5 for ; Tue, 24 Nov 2026 17:21:31 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jYqNW0GgNz3JQt for ; Tue, 24 Nov 2026 17:21:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795540891; 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=yLLyclAMlNLJKFGmPMoQgThSmuM5ezpralaLdJUfZrk=; b=iIjt513iL6ruoqavY4biwGLz0k8leQTMgQ6MvHcK0pafBil1kH7PGmmFq3J5v94ENUVhTO oNgmhDHceSPLzf2Dd/rCGFZrZEbJFZSfqvRB2lCa7Qg9hk/yT9gEQCpdUBIaWNgAMMRcxs ZK+ngCfDwcrH5thwuxOAG0IpNOJJSYCU5LzlMLgn9AMj0QhL5mshSy17yOFvqvant6mgxf Hit1ixhBhy6cfxpGVTzDsCNv3+5ll2OSlgFPWGapITJzH5pQCREmi0ZgvgIpNy76VsFSBP VufFmZ2csjtvdsbGRgEvLuDBV56bFv+3SkrOfK1wT0yETq2J78FhRtVY140AxA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795540891; b=nGPUAAKUdSstSSg3p+mX3q2EXjBAmZlMjRr2WliZJDwYJAhhX0Wc3ofSGpgG5PpXKUrTsd vIl0qYVQPV11shFC7kNJl5iYG7Y8GyBfTPBisCvDqP+uBluU6UBO0Mc+tD8Zh8NnrNquck rlUdN7UyesFmRdjGP28zqXvu9opW2E8GtPJbG+gWrLqxGNhMl6CDEnJ7nnx/s9QJh0p3SU 8LwQPxdZ/2GnMlCi7jHqQU8DagUxtaRvfazbQfOfJJVnT0oHy3THxvBxIkMPXc9T86uJPZ 91goMiNuj0dfkV/6a4xGRy6SWrClZLdOyVDTtUg3yksG4b0ivb9vfRWeDDAYQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795540891; 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=yLLyclAMlNLJKFGmPMoQgThSmuM5ezpralaLdJUfZrk=; b=RcRMz3UJN7yEpin/sjEgVCYA4TZSr7Ts/3erEHW44CC3d3WLzzGMeBt9Xu2j4LlrbTZygM GoBRKrcg7DUGAnUalBV0yLnZeIDRs8ZSgwfvjzB5d4Zug8GcswBQRU/qOAhEG7ciHKtyQW vAL7m11lsDW8UTcvHWOcTiZ0X6kRTTv5i63clAw93ds7Q3yyOWQPbYwy4LkymMj1JRF5xO X+OREQADPYfT6rJH87+ffH+EjFPDfwExzuQzgsgPKzVYFJ6WglTdH59boDjR1OAFebQlbL XSVGRUYshvAFnKW05RJQMjZLErLblEtBC98BB0Ns29g4alDUgZkb7XSyKw7IVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jYqNV6Q67zpF2 for ; Tue, 24 Nov 2026 17:21:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 119c6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 24 Nov 2026 17:21:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Piotr Kubaj Subject: git: c411e13ce133 - stable/14 - powerpc: move get_pcpu() to machine/pcpu.h List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c411e13ce133a27ea25aac054d740c938cb9bd11 Auto-Submitted: auto-generated Date: Tue, 24 Nov 2026 17:21:30 +0000 Message-Id: <6b05c79a.119c6.260a558c@gitrepo.freebsd.org> The branch stable/14 has been updated by pkubaj: URL: https://cgit.FreeBSD.org/src/commit/?id=c411e13ce133a27ea25aac054d740c938cb9bd11 commit c411e13ce133a27ea25aac054d740c938cb9bd11 Author: Piotr Kubaj AuthorDate: 2026-11-07 21:12:48 +0000 Commit: Piotr Kubaj CommitDate: 2026-11-24 16:11:11 +0000 powerpc: move get_pcpu() to machine/pcpu.h Every other arch defines get_pcpu() in machine/pcpu.h, powerpc has it in machine/cpufunc.h, which is entirely under _KERNEL. lsof includes sys/systm.h without _KERNEL first on purpose, so on powerpc cpufunc.h turns into an empty header and pcpup later expands to a call of an undeclared get_pcpu(). Since sys/mount.h started pulling in sys/proc.h this breaks the lsof build on powerpc64 and powerpc64le. Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61305 (cherry picked from commit 4b3364a4bceb61c5870f50b75bf56272ca850944) --- sys/powerpc/include/cpufunc.h | 10 ---------- sys/powerpc/include/pcpu.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h index 19a7ae01df0c..0754b51df1b9 100644 --- a/sys/powerpc/include/cpufunc.h +++ b/sys/powerpc/include/cpufunc.h @@ -246,16 +246,6 @@ intr_restore(register_t msr) mtmsr(msr); } -static __inline struct pcpu * -get_pcpu(void) -{ - struct pcpu *ret; - - __asm __volatile("mfsprg %0, 0" : "=r"(ret)); - - return (ret); -} - /* "NOP" operations to signify priorities to the kernel. */ static __inline void nop_prio_vlow(void) diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h index 1e60a78bb204..28edd0f46987 100644 --- a/sys/powerpc/include/pcpu.h +++ b/sys/powerpc/include/pcpu.h @@ -145,6 +145,16 @@ struct pvo_entry; #ifdef _KERNEL +static __inline struct pcpu * +get_pcpu(void) +{ + struct pcpu *ret; + + __asm __volatile("mfsprg %0, 0" : "=r"(ret)); + + return (ret); +} + #define pcpup (get_pcpu()) static __inline __pure2 struct thread *