]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crypto: bcm - Rename struct device_private to bcm_device_private
authorJiri Olsa <jolsa@kernel.org>
Mon, 4 Jan 2021 23:02:37 +0000 (00:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 09:26:21 +0000 (10:26 +0100)
[ Upstream commit f7f2b43eaf6b4cfe54c75100709be31d5c4b52c8 ]

Renaming 'struct device_private' to 'struct bcm_device_private',
because it clashes with 'struct device_private' from
'drivers/base/base.h'.

While it's not a functional problem, it's causing two distinct
type hierarchies in BTF data. It also breaks build with options:
  CONFIG_DEBUG_INFO_BTF=y
  CONFIG_CRYPTO_DEV_BCM_SPU=y

as reported by Qais Yousef [1].

[1] https://lore.kernel.org/lkml/20201229151352.6hzmjvu3qh6p2qgg@e107158-lin/

Fixes: 9d12ba86f818 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/bcm/cipher.c
drivers/crypto/bcm/cipher.h
drivers/crypto/bcm/util.c

index ec4b5033013ebca1e1ef3be2e96f4836c8d68e95..98b8483577ce2de7be1b92a54b250c997a329a39 100644 (file)
@@ -41,7 +41,7 @@
 
 /* ================= Device Structure ================== */
 
-struct device_private iproc_priv;
+struct bcm_device_private iproc_priv;
 
 /* ==================== Parameters ===================== */
 
index 766452b24d0ab4199294435767020f998f5b99ae..01feed268a0d47b0fcfd22c60032c357fddf5e59 100644 (file)
@@ -418,7 +418,7 @@ struct spu_hw {
        u32 num_chan;
 };
 
-struct device_private {
+struct bcm_device_private {
        struct platform_device *pdev;
 
        struct spu_hw spu;
@@ -465,6 +465,6 @@ struct device_private {
        struct mbox_chan **mbox;
 };
 
-extern struct device_private iproc_priv;
+extern struct bcm_device_private iproc_priv;
 
 #endif
index cd7504101acde1a48526c70b48875d8db959f8d9..7227dbf8f46c7b5915c924451d95dfc5034f0b83 100644 (file)
@@ -348,7 +348,7 @@ char *spu_alg_name(enum spu_cipher_alg alg, enum spu_cipher_mode mode)
 static ssize_t spu_debugfs_read(struct file *filp, char __user *ubuf,
                                size_t count, loff_t *offp)
 {
-       struct device_private *ipriv;
+       struct bcm_device_private *ipriv;
        char *buf;
        ssize_t ret, out_offset, out_count;
        int i;