Date: Fri, 9 Aug 2019 09:57:04 +0000 (UTC) From: Michal Meloun <mmel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r350817 - stable/12/sys/dev/extres/phy Message-ID: <201908090957.x799v4be063517@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmel Date: Fri Aug 9 09:57:04 2019 New Revision: 350817 URL: https://svnweb.freebsd.org/changeset/base/350817 Log: MFC r343498: Properly define and declare phynode_topo_lock, it should be single global variable. Modified: stable/12/sys/dev/extres/phy/phy.c stable/12/sys/dev/extres/phy/phy_internal.h Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/extres/phy/phy.c ============================================================================== --- stable/12/sys/dev/extres/phy/phy.c Fri Aug 9 08:58:09 2019 (r350816) +++ stable/12/sys/dev/extres/phy/phy.c Fri Aug 9 09:57:04 2019 (r350817) @@ -68,7 +68,7 @@ static phynode_method_t phynode_methods[] = { DEFINE_CLASS_0(phynode, phynode_class, phynode_methods, 0); static phynode_list_t phynode_list = TAILQ_HEAD_INITIALIZER(phynode_list); - +struct sx phynode_topo_lock; SX_SYSINIT(phy_topology, &phynode_topo_lock, "Phy topology lock"); /* ---------------------------------------------------------------------------- Modified: stable/12/sys/dev/extres/phy/phy_internal.h ============================================================================== --- stable/12/sys/dev/extres/phy/phy_internal.h Fri Aug 9 08:58:09 2019 (r350816) +++ stable/12/sys/dev/extres/phy/phy_internal.h Fri Aug 9 09:57:04 2019 (r350817) @@ -78,6 +78,6 @@ struct phy { #define PHYNODE_XLOCK(_sc) sx_xlock(&((_sc)->lock)) #define PHYNODE_UNLOCK(_sc) sx_unlock(&((_sc)->lock)) -struct sx phynode_topo_lock; +extern struct sx phynode_topo_lock; #endif /* DEV_EXTRES_PHY_INTERNAL_H */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908090957.x799v4be063517>