[asahilinux:bluetooth-wip 8/8] drivers/bluetooth/hci_bcm43xx.c:1062:30: warning: unused variable 'bcm43xx'

From: kernel test robot
Date: Thu Jul 07 2022 - 16:09:13 EST


tree: https://github.com/AsahiLinux/linux bluetooth-wip
head: a1e15829f0faa83ea0884f38fa4cae8990f76801
commit: a1e15829f0faa83ea0884f38fa4cae8990f76801 [8/8] Bluetooth: hci_bcm43xx: Add new driver for BCM43XX PCI boards
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220708/202207080351.QotD6R07-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/AsahiLinux/linux/commit/a1e15829f0faa83ea0884f38fa4cae8990f76801
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bluetooth-wip
git checkout a1e15829f0faa83ea0884f38fa4cae8990f76801
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/bluetooth/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

drivers/bluetooth/hci_bcm43xx.c: In function 'bcm43xx_hci_close':
>> drivers/bluetooth/hci_bcm43xx.c:1062:30: warning: unused variable 'bcm43xx' [-Wunused-variable]
1062 | struct bcm43xx_data *bcm43xx = hci_get_drvdata(hdev);
| ^~~~~~~
drivers/bluetooth/hci_bcm43xx.c: In function 'bcm43xx_init_context':
drivers/bluetooth/hci_bcm43xx.c:1243:29: error: passing argument 3 of 'dmam_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
1243 | &bcm43xx->ctx->per_info_addr, GFP_KERNEL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __le64 * {aka long long unsigned int *}
In file included from drivers/bluetooth/hci_bcm43xx.c:34:
include/linux/dma-mapping.h:550:29: note: expected 'dma_addr_t *' {aka 'unsigned int *'} but argument is of type '__le64 *' {aka 'long long unsigned int *'}
550 | dma_addr_t *dma_handle, gfp_t gfp)
| ~~~~~~~~~~~~^~~~~~~~~~
cc1: some warnings being treated as errors


vim +/bcm43xx +1062 drivers/bluetooth/hci_bcm43xx.c

1059
1060 static int bcm43xx_hci_close(struct hci_dev *hdev)
1061 {
> 1062 struct bcm43xx_data *bcm43xx = hci_get_drvdata(hdev);
1063

--
0-DAY CI Kernel Test Service
https://01.org/lkp