Message ID | 20231108153429.1072732-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp993173vqo; Wed, 8 Nov 2023 07:34:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHURsV7mODOFSjTvBFV7oM9o7/i9lHpYe5x94kDDQzD3L2i4ixwKaimiKDm1U1IfVP8hYEs X-Received: by 2002:a17:903:110e:b0:1cc:b3f:dd81 with SMTP id n14-20020a170903110e00b001cc0b3fdd81mr2549267plh.67.1699457689800; Wed, 08 Nov 2023 07:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699457689; cv=none; d=google.com; s=arc-20160816; b=yT/ItZDeGss+QFia6kszu1rvwpNry5kj9ukQf44lT1vOwYYcsH4aLY1SabSBXnclVf bI4m0wOO7b+fPLmeWLt033s2rWRf9F3ZmTe3mTDphkFSyIbw9PqsknazCB517Ydh/P2l KOMEm2PB5DYF7zTAsg333G13CBEri+DvDo+B48Oeko/2RLJhoh1T4uBBBzGhFAT0W0Yw 65UqJFHggx8i7tT3qpa8kfL9AWCgAM/y1KvanXvll7QxzJE3K7xlnXBvIS0h7ohtjIOm IkqZWf15QMWfys2XLwoSrdLgan0aXhXA7U6b4oT4tzVnSN82/6UCqGWoUXhFagZUUz6R +R8Q== 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=L/mrmMjG2S2Ja/hICfzvjDbfNLlyX9G94akGJj578Ts=; fh=k7GrTtgql/MF/WSiY6pvNvBjJTN/leaGdIDP/Eng448=; b=WZLb2EMZJRl6qJ6rjEVvMhtVwQPGzcNy1lIgjeVvsdF9ndHuv3QvyLEFJFdKCKk7Ko egzqR8Hm9k3gUlLlln3CVenPcighg302sT0seTjzM6bqJxA1SpOx5U/wP2aH7tT/J3BQ /ngTIUc4hrXPC4lx+4ysRkhARs46+GUI8ZFPAvauzhlnzJ/hCkOuGqzqb0tqhavu6KrO Jl2pS2OCGl7SjL7sp9mmYTFl01EaOLC8OsM30LxX+0Oc6ECBk5HIWYSZFAeGC6kFNjzg t8s3QA13Csp7CD4Shk40MRkOu3UO74kSQ1MQne2C/gUkHW6EyPcfFHFmUEfODiUElwop 9zyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="E/f+JtFB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ks11-20020a170903084b00b001ca335f7147si2385592plb.57.2023.11.08.07.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 07:34:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="E/f+JtFB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6718982C2DA4; Wed, 8 Nov 2023 07:34:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232754AbjKHPej (ORCPT <rfc822;jaysivo@gmail.com> + 32 others); Wed, 8 Nov 2023 10:34:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233115AbjKHPeg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Nov 2023 10:34:36 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68DED1BE6 for <linux-kernel@vger.kernel.org>; Wed, 8 Nov 2023 07:34:34 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 678F0C433C9; Wed, 8 Nov 2023 15:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699457674; bh=Ou7t4lvswhjUNZZwdkd4kF/0Xw+ejygmyUW1LnOTGQw=; h=From:To:Cc:Subject:Date:From; b=E/f+JtFB3olupuoN9TGVTWDRFuWEVyl3gbLs7WmFyJBpylxVv1/pI9Pj/dCT0E4Be peA0WwVmI68mM1qcPLAdJz8ApbEf2dFCOP6oXz96J5fwl/0zf3R+Z1Xccj2jsh0/28 +IqBPV71v3ud0LWL0Pl9Pv96x1bl8nSHEbooskYAJyCZxqMmEz7hkTEm7J1t3IY4jV XTb5U6VkALLFg5kU2x08cEuqoe8MUw+HAzWvJH317uZji8+79szusbWwXm44cYvYkc U4jN7zmoj2TdXFhxbDHRUrrco/40hzH/Rifb/2PEDgXNMS77SlKQf/SnOG1zeMLKDg YCYLtlYmjqwQA== From: Arnd Bergmann <arnd@kernel.org> To: Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Arnd Bergmann <arnd@arndb.de>, Ayush Singh <ayushdevel1325@gmail.com>, greybus-dev@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH] greybus: beagleplay: select CONFIG_CRC_CCITT Date: Wed, 8 Nov 2023 16:34:24 +0100 Message-Id: <20231108153429.1072732-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 08 Nov 2023 07:34:47 -0800 (PST) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782010546480277497 X-GMAIL-MSGID: 1782010546480277497 |
Series |
greybus: beagleplay: select CONFIG_CRC_CCITT
|
|
Commit Message
Arnd Bergmann
Nov. 8, 2023, 3:34 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> Without the CRC_CCITT code, the new greybus driver fails to link: aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `hdlc_append_tx_u8': gb-beagleplay.c:(.text+0x158): undefined reference to `crc_ccitt' aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `gb_tty_receive': gb-beagleplay.c:(.text+0x5c4): undefined reference to `crc_ccitt' Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/greybus/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On 11/8/23 07:34, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > Without the CRC_CCITT code, the new greybus driver fails to link: > > aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `hdlc_append_tx_u8': > gb-beagleplay.c:(.text+0x158): undefined reference to `crc_ccitt' > aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `gb_tty_receive': > gb-beagleplay.c:(.text+0x5c4): undefined reference to `crc_ccitt' > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/greybus/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/greybus/Kconfig b/drivers/greybus/Kconfig > index 033d31dbf3b8..ab81ceceb337 100644 > --- a/drivers/greybus/Kconfig > +++ b/drivers/greybus/Kconfig > @@ -20,6 +20,7 @@ if GREYBUS > config GREYBUS_BEAGLEPLAY > tristate "Greybus BeaglePlay driver" > depends on SERIAL_DEV_BUS > + select CRC_CCITT > help > Select this option if you have a BeaglePlay where CC1352 > co-processor acts as Greybus SVC. Yes, same as my patch: https://lore.kernel.org/lkml/20231031040909.21201-1-rdunlap@infradead.org/ I expect that Greg just hasn't gotten around to applying new patches/fixes yet.
On Wed, Nov 08, 2023 at 08:12:57AM -0800, Randy Dunlap wrote: > > > On 11/8/23 07:34, Arnd Bergmann wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > > > Without the CRC_CCITT code, the new greybus driver fails to link: > > > > aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `hdlc_append_tx_u8': > > gb-beagleplay.c:(.text+0x158): undefined reference to `crc_ccitt' > > aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `gb_tty_receive': > > gb-beagleplay.c:(.text+0x5c4): undefined reference to `crc_ccitt' > > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > --- > > drivers/greybus/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/greybus/Kconfig b/drivers/greybus/Kconfig > > index 033d31dbf3b8..ab81ceceb337 100644 > > --- a/drivers/greybus/Kconfig > > +++ b/drivers/greybus/Kconfig > > @@ -20,6 +20,7 @@ if GREYBUS > > config GREYBUS_BEAGLEPLAY > > tristate "Greybus BeaglePlay driver" > > depends on SERIAL_DEV_BUS > > + select CRC_CCITT > > help > > Select this option if you have a BeaglePlay where CC1352 > > co-processor acts as Greybus SVC. > > Yes, same as my patch: > https://lore.kernel.org/lkml/20231031040909.21201-1-rdunlap@infradead.org/ > > I expect that Greg just hasn't gotten around to applying new patches/fixes yet. Nope, waiting until -rc1 is out, sorry. greg k-h
diff --git a/drivers/greybus/Kconfig b/drivers/greybus/Kconfig index 033d31dbf3b8..ab81ceceb337 100644 --- a/drivers/greybus/Kconfig +++ b/drivers/greybus/Kconfig @@ -20,6 +20,7 @@ if GREYBUS config GREYBUS_BEAGLEPLAY tristate "Greybus BeaglePlay driver" depends on SERIAL_DEV_BUS + select CRC_CCITT help Select this option if you have a BeaglePlay where CC1352 co-processor acts as Greybus SVC.