From patchwork Tue Jan 31 09:46:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13122693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1DD5C636CC for ; Tue, 31 Jan 2023 09:47:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232733AbjAaJrU (ORCPT ); Tue, 31 Jan 2023 04:47:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbjAaJrD (ORCPT ); Tue, 31 Jan 2023 04:47:03 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AA5DCA2C; Tue, 31 Jan 2023 01:46:24 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 97D8861485; Tue, 31 Jan 2023 09:46:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D279C433EF; Tue, 31 Jan 2023 09:46:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675158380; bh=KTfxAv4/PIks1rtAcMvxbdh4fpDCyfuw7pXRReopI3Q=; h=From:To:Cc:Subject:Date:From; b=nu1hPCq9s7Jhnb2Yl9juR5sAlsr0lq6ir2BCfz3ElXtbHzNbizn+DzUNFurLSgomT i6X4/Ra8hBdbUiPfbOzDbJy0oYh/iigjyWBjLn2nUN4lv6N/gIpm7wsaV1Hl/UJY0O kJiBJ9xVBmAYzeTKP1DeMPkZYhI18L9LyB7ja6bxJh3YVfMTAWVSmfmZs+BtGEXdbz y3iibSwb/vaQALRn0b++qB/1GVsN6XWKAXregjKVdxV9Yf/DG2DZaMtiaZsb9LP6Sh ADmy6BuRHFhxWWvezjlgKYB7RGal2G2b+lYT+qYnIvozJuBH03HuRl+jIu+PC4ACNq k46Sj9kV/IsHA== From: Arnd Bergmann To: Jonathan Cameron , Nuno Sa , Lars-Peter Clausen Cc: Arnd Bergmann , Andrea Merello , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: adis16480: select CONFIG_CRC32 Date: Tue, 31 Jan 2023 10:46:11 +0100 Message-Id: <20230131094616.130238-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Arnd Bergmann In rare randconfig builds, the missing CRC32 helper causes a link error: ld.lld: error: undefined symbol: crc32_le >>> referenced by usercopy_64.c >>> vmlinux.o:(adis16480_trigger_handler) Fixes: 941f130881fa ("iio: adis16480: support burst read function") Signed-off-by: Arnd Bergmann Reviewed-by: Nuno Sá --- drivers/iio/imu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/imu/Kconfig b/drivers/iio/imu/Kconfig index f1d7d4b5e222..c2f97629e9cd 100644 --- a/drivers/iio/imu/Kconfig +++ b/drivers/iio/imu/Kconfig @@ -47,6 +47,7 @@ config ADIS16480 depends on SPI select IIO_ADIS_LIB select IIO_ADIS_LIB_BUFFER if IIO_BUFFER + select CRC32 help Say yes here to build support for Analog Devices ADIS16375, ADIS16480, ADIS16485, ADIS16488 inertial sensors.