Message ID | 20230322111636.1028838-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2288072wrt; Wed, 22 Mar 2023 04:33:23 -0700 (PDT) X-Google-Smtp-Source: AK7set/inlpJ/W/CyewXVi9TMMm1Uk2XwEXXCZLTLXb4m0ewwZfYlWvHjOtfzte6UjgkBTYIm7jE X-Received: by 2002:a05:6a20:779f:b0:db:528b:4cac with SMTP id c31-20020a056a20779f00b000db528b4cacmr1622869pzg.62.1679484802767; Wed, 22 Mar 2023 04:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679484802; cv=none; d=google.com; s=arc-20160816; b=Dr2pq8tMjh1+C/UZXbRy6ZHovvi+feQT3IPuXtLw3W9d27yKan1FUq852oogpdcMn1 yPKcdlLawkvgWm4Q4J0/qlEzfHlNK8NJpQlf8K6hWKf76ZBT9+qKv5ywkfMAfMYdD2qm ARHGZ+/tTZn0ha3JWT6iziBOnMiLTR9rN5VNxpTLHUesA42Qoyw99brvJ7q7hoZFicQg WgUGU4QQZX6/xF8Pgqcf0QU2y3hoD/N+Ie+N11kOu0KHZIEB6dWIdWARTYi1bpjTBQ08 O92si7kljUmNPSyIfVLBUaeIVq7rR1+azE/0S+9rEHApA+uzFUfA8Eed0VZD7duR7YH8 l/iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=t0p6AgRn3pHYkSwjNJK7iQMLTURcE/R8cFtfH6NQCU4=; b=Ylf7Y8hkbw55DLspgPUwVIg21taOPeN+CbA7wAoN8TzUFEcATH8AsdTZGDGcpdog+p vP5ylYcfg1HDHml0TIemF6UN2JSXIhLF01RZ6LuXXxob6o7CPhXkz0SeCDKj91n4ykHy FzyOhb8hVXVl+/mI8geAo6WkLzmnpJQbIWhjPlp50xKLoj/czzz3TFG6By/24YVF0SB4 ZAS+vkf/bbQ83mhZ2J9VGLcdwMCsa+dA9W7S9Xv7NVigvXDKj1GCsi2uXdHRc43mSsYN TOxRnfhZQSCWuTY3KP2MvWCCZd2VVomevnMZsoALu6iMwJZgeI20XkjesB7Drjy7myJB mvCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uXPsblQ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a056a00149300b0062936e90dd0si1564871pfu.174.2023.03.22.04.33.10; Wed, 22 Mar 2023 04:33:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uXPsblQ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbjCVLQr (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 22 Mar 2023 07:16:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbjCVLQq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Mar 2023 07:16:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09D934DE3A; Wed, 22 Mar 2023 04:16:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BA53FB81C25; Wed, 22 Mar 2023 11:16:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1F67C433EF; Wed, 22 Mar 2023 11:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679483802; bh=yqsVMZSFa5CHTkdXUK3mvMZizZ/0pAtToVHTZzG7V08=; h=From:To:Cc:Subject:Date:From; b=uXPsblQ4hdJoTyh88MHVK7pYObNP7FBOJMP85AqLZOstUZf0ZWR0iEcDMmh+ZI6s7 63UZTr5VUAqE8w7PYUVM0h9YSCuFqg3V39BUvUfvHt2bFi3b1ZcjgAckvHaRgYWFVp RQlI86egWs9j3QNWSRr2TQB0MTkLFThXz2TsdAOfHiRksgRIh2gEzdq2saMQ6zSieo klpbpF3WrlotXM6fACaL6MF+sAh96zMo/+I4EOlOg2FZQE6WjrECjNxzhjFChpT5bF LX6l/XmQqk+q+mFzb/nutpb7RJIErp2HGcGLrOh0ynw3P4K1IgcES8fsOjS5rh2F4j z8mtJpdzXUxKA== From: Arnd Bergmann <arnd@kernel.org> To: Marcel Holtmann <marcel@holtmann.org>, Johan Hedberg <johan.hedberg@gmail.com>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>, =?utf-8?q?Ilpo_J=C3=A4rvine?= =?utf-8?q?n?= <ilpo.jarvinen@linux.intel.com> Cc: Arnd Bergmann <arnd@arndb.de>, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Bluetooth: NXP: select CONFIG_CRC8 Date: Wed, 22 Mar 2023 12:16:27 +0100 Message-Id: <20230322111636.1028838-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761067456509958443?= X-GMAIL-MSGID: =?utf-8?q?1761067456509958443?= |
Series |
Bluetooth: NXP: select CONFIG_CRC8
|
|
Commit Message
Arnd Bergmann
March 22, 2023, 11:16 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The driver needs both CRC32 and CRC8 to link correctly: ld.lld: error: undefined symbol: crc8_populate_msb >>> referenced by btnxpuart.c >>> drivers/bluetooth/btnxpuart.o:(nxp_serdev_probe) in archive vmlinux.a ld.lld: error: undefined symbol: crc8 >>> referenced by btnxpuart.c >>> drivers/bluetooth/btnxpuart.o:(nxp_send_ack) in archive vmlinux.a Fixes: 3e662aa4453a ("Bluetooth: NXP: Add protocol support for NXP Bluetooth chipsets") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/bluetooth/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On Wed, 22 Mar 2023, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The driver needs both CRC32 and CRC8 to link correctly: > > ld.lld: error: undefined symbol: crc8_populate_msb > >>> referenced by btnxpuart.c > >>> drivers/bluetooth/btnxpuart.o:(nxp_serdev_probe) in archive vmlinux.a > ld.lld: error: undefined symbol: crc8 > >>> referenced by btnxpuart.c > >>> drivers/bluetooth/btnxpuart.o:(nxp_send_ack) in archive vmlinux.a > > Fixes: 3e662aa4453a ("Bluetooth: NXP: Add protocol support for NXP Bluetooth chipsets") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/bluetooth/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig > index 0703bdd44140..f84322d375de 100644 > --- a/drivers/bluetooth/Kconfig > +++ b/drivers/bluetooth/Kconfig > @@ -469,6 +469,7 @@ config BT_NXPUART > tristate "NXP protocol support" > depends on SERIAL_DEV_BUS > select CRC32 > + select CRC8 > help > NXP is serial driver required for NXP Bluetooth > devices with UART interface. > Right. ...I should have realized this was missing too when I noticed select CRC32 wasn't there. Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Wed, 22 Mar 2023 12:16:27 +0100 you wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The driver needs both CRC32 and CRC8 to link correctly: > > ld.lld: error: undefined symbol: crc8_populate_msb > >>> referenced by btnxpuart.c > >>> drivers/bluetooth/btnxpuart.o:(nxp_serdev_probe) in archive vmlinux.a > ld.lld: error: undefined symbol: crc8 > >>> referenced by btnxpuart.c > >>> drivers/bluetooth/btnxpuart.o:(nxp_send_ack) in archive vmlinux.a > > [...] Here is the summary with links: - Bluetooth: NXP: select CONFIG_CRC8 https://git.kernel.org/bluetooth/bluetooth-next/c/335aed70654a You are awesome, thank you!
diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig index 0703bdd44140..f84322d375de 100644 --- a/drivers/bluetooth/Kconfig +++ b/drivers/bluetooth/Kconfig @@ -469,6 +469,7 @@ config BT_NXPUART tristate "NXP protocol support" depends on SERIAL_DEV_BUS select CRC32 + select CRC8 help NXP is serial driver required for NXP Bluetooth devices with UART interface.