psp: rename our psp_dev_destroy()
Subsystems (3)
PATCH 1/1 psp: rename our psp_dev_destroy()
psp_dev_destroy() was already used in drivers/crypto/ccp/psp-dev.c
Use psp_dev_free() instead, to avoid a link error when CRYPTO_DEV_SP_CCP=y
--- net/psp/psp.h | 4 ++-- net/psp/psp_main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
net/psp/psp.h +2 -2
@@ -13,7 +13,7 @@extern struct xarray psp_devs;extern struct mutex psp_devs_lock; -void psp_dev_destroy (struct psp_dev *psd); +void psp_dev_free (struct psp_dev *psd);int psp_dev_check_access (struct psp_dev *psd,struct net *net);void psp_nl_notify_dev (struct psp_dev *psd,u32 cmd);
@@ -42,7 +42,7 @@ static inline bool psp_dev_tryget(struct psp_dev *psd)static inline void psp_dev_put (struct psp_dev *psd) {if (refcount_dec_and_test (&psd->refcnt)) -psp_dev_destroy (psd); +psp_dev_free (psd); }static inline bool psp_dev_is_registered (struct psp_dev *psd)
net/psp/psp_main.c +2 -2
@@ -99,7 +99,7 @@ psp_dev_create(struct net_device *netdev, }EXPORT_SYMBOL (psp_dev_create); -void psp_dev_destroy (struct psp_dev *psd) +void psp_dev_free (struct psp_dev *psd) {mutex_lock (&psp_devs_lock);xa_erase (&psp_devs, psd->id);
@@ -122,7 +122,7 @@ void psp_dev_unregister(struct psp_dev *psd)psp_nl_notify_dev (psd,PSP_CMD_DEV_DEL_NTF ); -/* Wait until psp_dev_destroy() to call xa_erase() to prevent a +/* Wait until psp_dev_free() to call xa_erase() to prevent a * different psd from being added to the xarray with this id, while * there are still references to this psd being held. */
Signature · 1 line
2.51.0.384.g4c02a37b29-goog
Quoted 10 lines · Eric Dumazet
psp_dev_destroy()was already used indrivers/crypto/ccp/psp-dev.cUse
psp_dev_free()instead, to avoid a link error when CRYPTO_DEV_SP_CCP=yFixes 00c94ca2b99e ("psp: base PSP device support")Closes https://lore.kernel.org/netdev/CANn89i+ZdBDEV6TE=Nw5gn9ycTzWw4mZOpPuCswgwEsrgOyNnw@mail.gmail.com/ open hereSigned-off-by Eric Dumazet <[email protected]>Cc Daniel Zahka <[email protected]>Cc Willem de Bruijn <[email protected]>
I'm fine with applying this one (well) before the 24h grace period, to keep the tree saner.
/P
Quoted 9 lines · Eric Dumazet
psp_dev_destroy()was already used indrivers/crypto/ccp/psp-dev.cUse
psp_dev_free()instead, to avoid a link error when CRYPTO_DEV_SP_CCP=yFixes 00c94ca2b99e ("psp: base PSP device support")Closes https://lore.kernel.org/netdev/CANn89i+ZdBDEV6TE=Nw5gn9ycTzWw4mZOpPuCswgwEsrgOyNnw@mail.gmail.com/ open hereSigned-off-by Eric Dumazet <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 5 lines · On Thu, 18 Sep 2025 11:35:46 +0000 you wrote:
psp_dev_destroy()was already used indrivers/crypto/ccp/psp-dev.cUse
psp_dev_free()instead, to avoid a link error when CRYPTO_DEV_SP_CCP=y
Quoted 7 lines
Fixes 00c94ca2b99e ("psp: base PSP device support")Closes https://lore.kernel.org/netdev/CANn89i+ZdBDEV6TE=Nw5gn9ycTzWw4mZOpPuCswgwEsrgOyNnw@mail.gmail.com/ open hereSigned-off-by Eric Dumazet <[email protected]>Cc Daniel Zahka <[email protected]>Cc Willem de Bruijn <[email protected]>[...]
Here is the summary with links:
- [net-next] psp: rename our psp_dev_destroy()
https://git.kernel.org/netdev/net-next/c/672beab06656
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html