devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: linux-kernel-owner@vger.kernel.org
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
	johan.hedberg@gmail.com, marcel@holtmann.org,
	Sean Wang <sean.wang@mediatek.com>,
	linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org,
	robh+dt@kernel.org, linux-mediatek@lists.infradead.org,
	kbuild-all@01.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v10 2/3] Bluetooth: mediatek: Add protocol support for MediaTek serial devices
Date: Wed, 8 Aug 2018 19:48:47 +0800	[thread overview]
Message-ID: <201808081956.l2WM5eKO%fengguang.wu@intel.com> (raw)
In-Reply-To: <67c95dcdc4d68691955e043c99a7d313cb126f48.1533663928.git.sean.wang@mediatek.com>

[-- Attachment #1: Type: text/plain, Size: 4673 bytes --]

Hi Sean,

I love your patch! Perhaps something to improve:

[auto build test WARNING on bluetooth/master]
[also build test WARNING on v4.18-rc8]
[cannot apply to next-20180808]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/linux-kernel-owner-vger-kernel-org/dt-bindings-net-bluetooth-Add-mediatek-bluetooth/20180808-132732
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   drivers/bluetooth/btmtkuart.c: In function 'mtk_hci_wmt_sync':
   drivers/bluetooth/btmtkuart.c:99:8: error: implicit declaration of function '__hci_cmd_send'; did you mean '__hci_cmd_sync'? [-Werror=implicit-function-declaration]
     err = __hci_cmd_send(hdev, 0xfc6f, hlen, &wc);
           ^~~~~~~~~~~~~~
           __hci_cmd_sync
   In file included from include/linux/bitops.h:38:0,
                    from include/linux/kernel.h:11,
                    from include/linux/unaligned/packed_struct.h:4,
                    from include/linux/unaligned/be_struct.h:5,
                    from arch/arm/include/asm/unaligned.h:18,
                    from drivers/bluetooth/btmtkuart.c:11:
   drivers/bluetooth/btmtkuart.c: In function 'btmtkuart_probe':
   drivers/bluetooth/btmtkuart.c:586:10: error: 'HCI_QUIRK_NON_PERSISTENT_SETUP' undeclared (first use in this function); did you mean 'HCI_QUIRK_NON_PERSISTENT_DIAG'?
     set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
             ^
   arch/arm/include/asm/bitops.h:183:42: note: in definition of macro 'ATOMIC_BITOP'
    #define ATOMIC_BITOP(name,nr,p)  _##name(nr,p)
                                             ^~
>> drivers/bluetooth/btmtkuart.c:586:2: note: in expansion of macro 'set_bit'
     set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
     ^~~~~~~
   drivers/bluetooth/btmtkuart.c:586:10: note: each undeclared identifier is reported only once for each function it appears in
     set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
             ^
   arch/arm/include/asm/bitops.h:183:42: note: in definition of macro 'ATOMIC_BITOP'
    #define ATOMIC_BITOP(name,nr,p)  _##name(nr,p)
                                             ^~
>> drivers/bluetooth/btmtkuart.c:586:2: note: in expansion of macro 'set_bit'
     set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
     ^~~~~~~
   cc1: some warnings being treated as errors

vim +/set_bit +586 drivers/bluetooth/btmtkuart.c

   543	
   544	static int btmtkuart_probe(struct serdev_device *serdev)
   545	{
   546		struct btmtkuart_dev *bdev;
   547		struct hci_dev *hdev;
   548	
   549		bdev = devm_kzalloc(&serdev->dev, sizeof(*bdev), GFP_KERNEL);
   550		if (!bdev)
   551			return -ENOMEM;
   552	
   553		bdev->clk = devm_clk_get(&serdev->dev, "ref");
   554		if (IS_ERR(bdev->clk))
   555			return PTR_ERR(bdev->clk);
   556	
   557		bdev->serdev = serdev;
   558		serdev_device_set_drvdata(serdev, bdev);
   559	
   560		serdev_device_set_client_ops(serdev, &btmtkuart_client_ops);
   561	
   562		INIT_WORK(&bdev->tx_work, btmtkuart_tx_work);
   563		skb_queue_head_init(&bdev->txq);
   564	
   565		/* Initialize and register HCI device */
   566		hdev = hci_alloc_dev();
   567		if (!hdev) {
   568			dev_err(&serdev->dev, "Can't allocate HCI device\n");
   569			return -ENOMEM;
   570		}
   571	
   572		bdev->hdev = hdev;
   573	
   574		hdev->bus = HCI_UART;
   575		hci_set_drvdata(hdev, bdev);
   576	
   577		hdev->open     = btmtkuart_open;
   578		hdev->close    = btmtkuart_close;
   579		hdev->flush    = btmtkuart_flush;
   580		hdev->setup    = btmtkuart_setup;
   581		hdev->shutdown = btmtkuart_shutdown;
   582		hdev->send     = btmtkuart_send_frame;
   583		SET_HCIDEV_DEV(hdev, &serdev->dev);
   584	
   585		hdev->manufacturer = 70;
 > 586		set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
   587	
   588		if (hci_register_dev(hdev) < 0) {
   589			dev_err(&serdev->dev, "Can't register HCI device\n");
   590			hci_free_dev(hdev);
   591			return -ENODEV;
   592		}
   593	
   594		return 0;
   595	}
   596	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 65165 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2018-08-08 11:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-07 17:52 [PATCH v10 0/3] add support for Bluetooth on MT7622 SoC sean.wang
2018-08-07 17:52 ` [PATCH v10 1/3] dt-bindings: net: bluetooth: Add mediatek-bluetooth sean.wang
2018-08-07 17:52 ` [PATCH v10 2/3] Bluetooth: mediatek: Add protocol support for MediaTek serial devices sean.wang
2018-08-08 11:48   ` kbuild test robot [this message]
2018-08-07 17:52 ` [PATCH v10 3/3] MAINTAINERS: add an entry for MediaTek Bluetooth driver sean.wang
2018-08-07 19:36 ` [PATCH v10 0/3] add support for Bluetooth on MT7622 SoC Marcel Holtmann

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=201808081956.l2WM5eKO%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=johan.hedberg@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel-owner@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=marcel@holtmann.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sean.wang@mediatek.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).