summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/bcm/cipher.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2021-01-05 00:02:37 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-14 17:10:26 +1100
commitf7f2b43eaf6b4cfe54c75100709be31d5c4b52c8 (patch)
tree9755e8619bd24aa16b4eb62be2eff3d6959ccd28 /drivers/crypto/bcm/cipher.h
parente48767c17718067ba21fb2ef461779ec2506f845 (diff)
downloadlinux-stable-f7f2b43eaf6b4cfe54c75100709be31d5c4b52c8.tar.gz
linux-stable-f7f2b43eaf6b4cfe54c75100709be31d5c4b52c8.tar.bz2
linux-stable-f7f2b43eaf6b4cfe54c75100709be31d5c4b52c8.zip
crypto: bcm - Rename struct device_private to bcm_device_private
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>
Diffstat (limited to 'drivers/crypto/bcm/cipher.h')
-rw-r--r--drivers/crypto/bcm/cipher.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/bcm/cipher.h b/drivers/crypto/bcm/cipher.h
index 0ad5892b445d..71281a3bdbdc 100644
--- a/drivers/crypto/bcm/cipher.h
+++ b/drivers/crypto/bcm/cipher.h
@@ -420,7 +420,7 @@ struct spu_hw {
u32 num_chan;
};
-struct device_private {
+struct bcm_device_private {
struct platform_device *pdev;
struct spu_hw spu;
@@ -467,6 +467,6 @@ struct device_private {
struct mbox_chan **mbox;
};
-extern struct device_private iproc_priv;
+extern struct bcm_device_private iproc_priv;
#endif