From: kernel test robot <lkp@intel.com>
To: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-bluetooth@vger.kernel.org,
Marcel Holtmann <marcel@holtmann.org>
Subject: [bluetooth-next:master 4/24] net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for function 'hci_scan_disable_sync'
Date: Sat, 30 Oct 2021 15:05:30 +0800 [thread overview]
Message-ID: <202110301521.vOSfbIOB-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3309 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
head: d6cba4e6d0e202276b81117b96106859a4e2d56e
commit: e8907f76544ffe225ab95d70f7313267b1d0c76d [4/24] Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 3
config: arm-randconfig-r012-20211029 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=e8907f76544ffe225ab95d70f7313267b1d0c76d
git remote add bluetooth-next https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
git fetch --no-tags bluetooth-next master
git checkout e8907f76544ffe225ab95d70f7313267b1d0c76d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for function 'hci_scan_disable_sync' [-Wmissing-prototypes]
int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
^
net/bluetooth/hci_sync.c:1333:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
^
static
>> net/bluetooth/hci_sync.c:1762:5: warning: no previous prototype for function 'hci_passive_scan_sync' [-Wmissing-prototypes]
int hci_passive_scan_sync(struct hci_dev *hdev)
^
net/bluetooth/hci_sync.c:1762:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int hci_passive_scan_sync(struct hci_dev *hdev)
^
static
2 warnings generated.
vim +/hci_scan_disable_sync +1333 net/bluetooth/hci_sync.c
1332
> 1333 int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
1334 {
1335 int err;
1336
1337 /* If controller is not scanning we are done. */
1338 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN))
1339 return 0;
1340
1341 if (hdev->scanning_paused) {
1342 bt_dev_dbg(hdev, "Scanning is paused for suspend");
1343 return 0;
1344 }
1345
1346 if (hdev->suspended)
1347 set_bit(SUSPEND_SCAN_DISABLE, hdev->suspend_tasks);
1348
1349 err = hci_le_set_scan_enable_sync(hdev, LE_SCAN_DISABLE, 0x00);
1350 if (err) {
1351 bt_dev_err(hdev, "Unable to disable scanning: %d", err);
1352 return err;
1353 }
1354
1355 if (rpa_le_conn) {
1356 err = hci_le_set_addr_resolution_enable_sync(hdev, 0x00);
1357 if (err)
1358 bt_dev_err(hdev, "Unable to disable LL privacy: %d",
1359 err);
1360 }
1361
1362 return err;
1363 }
1364
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37647 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [bluetooth-next:master 4/24] net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for function 'hci_scan_disable_sync'
Date: Sat, 30 Oct 2021 15:05:30 +0800 [thread overview]
Message-ID: <202110301521.vOSfbIOB-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3389 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
head: d6cba4e6d0e202276b81117b96106859a4e2d56e
commit: e8907f76544ffe225ab95d70f7313267b1d0c76d [4/24] Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 3
config: arm-randconfig-r012-20211029 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=e8907f76544ffe225ab95d70f7313267b1d0c76d
git remote add bluetooth-next https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
git fetch --no-tags bluetooth-next master
git checkout e8907f76544ffe225ab95d70f7313267b1d0c76d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for function 'hci_scan_disable_sync' [-Wmissing-prototypes]
int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
^
net/bluetooth/hci_sync.c:1333:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
^
static
>> net/bluetooth/hci_sync.c:1762:5: warning: no previous prototype for function 'hci_passive_scan_sync' [-Wmissing-prototypes]
int hci_passive_scan_sync(struct hci_dev *hdev)
^
net/bluetooth/hci_sync.c:1762:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int hci_passive_scan_sync(struct hci_dev *hdev)
^
static
2 warnings generated.
vim +/hci_scan_disable_sync +1333 net/bluetooth/hci_sync.c
1332
> 1333 int hci_scan_disable_sync(struct hci_dev *hdev, bool rpa_le_conn)
1334 {
1335 int err;
1336
1337 /* If controller is not scanning we are done. */
1338 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN))
1339 return 0;
1340
1341 if (hdev->scanning_paused) {
1342 bt_dev_dbg(hdev, "Scanning is paused for suspend");
1343 return 0;
1344 }
1345
1346 if (hdev->suspended)
1347 set_bit(SUSPEND_SCAN_DISABLE, hdev->suspend_tasks);
1348
1349 err = hci_le_set_scan_enable_sync(hdev, LE_SCAN_DISABLE, 0x00);
1350 if (err) {
1351 bt_dev_err(hdev, "Unable to disable scanning: %d", err);
1352 return err;
1353 }
1354
1355 if (rpa_le_conn) {
1356 err = hci_le_set_addr_resolution_enable_sync(hdev, 0x00);
1357 if (err)
1358 bt_dev_err(hdev, "Unable to disable LL privacy: %d",
1359 err);
1360 }
1361
1362 return err;
1363 }
1364
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37647 bytes --]
next reply other threads:[~2021-10-30 7:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-30 7:05 kernel test robot [this message]
2021-10-30 7:05 ` [bluetooth-next:master 4/24] net/bluetooth/hci_sync.c:1333:5: warning: no previous prototype for function 'hci_scan_disable_sync' kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202110301521.vOSfbIOB-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=luiz.von.dentz@intel.com \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.