Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4932279rdb; Tue, 12 Dec 2023 13:36:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOGDOUWI91XKjXy74gc0MaTI/cgP9/7CynDPNFM/M0FQuBqguC5S2BHCxDK5Ogw6fYx18b X-Received: by 2002:a05:6a00:8b17:b0:6d0:93da:72b0 with SMTP id if23-20020a056a008b1700b006d093da72b0mr2926364pfb.46.1702417007074; Tue, 12 Dec 2023 13:36:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702417007; cv=none; d=google.com; s=arc-20160816; b=LzmokRxhIRCzndR6K3hZdPv1Oh52pDGRnGiW4Nb5ca8YSYlQZhtuLIXtCp6+v9rZmQ h64BX2yark2eV2UMsBvwr/Wg/a/BYO/l3xZNidBSBGc1dvRcrSjqKSOkAP/v4F8V0gB4 Ivpjin+qV5uJb3k0kj4cnspts3s0O3D2ERYIMydWzQGmDYd2Hqlj0hcmNJRWlhSpVTDc RqjivJ29iEmN+4aYx/LviJqc/WjqAc3egQ0hibVZqz8ggumz1rgZs/U7FuOfB9Gp5MC5 B+u4XPTWOuy/VyoOpuU7wefFjTtZdWqd6excWE+qg5uSEioFgwP8AqeZr3cGmuVk0Aet SyIw== 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=nFc0T30Xe2i+IrJ9j3Pj7uw3MzLs34p9MmhmNz19bgk=; fh=f9fja+ICYHxdCulRQFDe6ONzVUD8u6bU6j2aJYtacvQ=; b=tNPWw4brqEGqPJg7/zomUdMM1F5iCz+o0fn0MqcT49Bo3EVURtK+IPkMIrtPIq7N2M KgRJOAlk0E5ywRflmOkUlTFxxnMPxxMH8k8JwirVJeb+rszp/4YtWu6OtVu2rfPBdM8Z AU/+9dp6GtvVzE5As6A91zifugTJyz9zmelK+Kj2LAukALflXbXm1N7nVmuYm7rNVnpu MaRx3Uzu6Yx9VUrTgpC9gYN9vu85F83IAkxj3Vxb7DQJ21yfTxTm8RaqqZS4ft0TuxRE 9zLTjtyFLDVRSIgYAX4hRlEACZZNWh2dg6c845HNCUZkzAXq2mQjhAGnYYIgLMyC1xkq 4Pew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jogJziO6; 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 Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g18-20020a056a000b9200b006cb6b7aa192si8437989pfj.331.2023.12.12.13.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 13:36:47 -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=jogJziO6; 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 6E39380A80F7; Tue, 12 Dec 2023 13:36:44 -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 S1377582AbjLLVgb (ORCPT + 99 others); Tue, 12 Dec 2023 16:36:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377564AbjLLVg2 (ORCPT ); Tue, 12 Dec 2023 16:36:28 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A364CE for ; Tue, 12 Dec 2023 13:36:34 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A13DFC433C7; Tue, 12 Dec 2023 21:36:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702416993; bh=7eLZmT4c+fhFsyeFMw0JfCmjrU8I9lIkdJtLdS55xkI=; h=From:To:Cc:Subject:Date:From; b=jogJziO6KMjsDBdgTJ3ForpAxZ2uFB69WZGXd3/IfFyg5tI+o5RHURJQ5VRTxE6Fr C7Zbo3zE8fb2bRohJVE808bYOONGZLkZg+KBkwOZb/yHfUpsimO4JHhTJed8xjn6Od F2HFZr0skIQJQRqzTV/DbxXbxZG6TLjbK3B3fG+kEHSmDbz7rMlQSFjus3J1wPqEko RqOhl9hRq8kXc/4jUEJunbPBlWk+qDiAjxoZ9XlsuqqVrTkeEcADCMv/QhZvgLqX1e zZ85U+5FZbgw/vVOC6RlquCAdfIJMGzs6J0yNJuKc0qayPp5USq1o1vZsSITFzKmYm c8mZD3flToCpw== From: Arnd Bergmann To: Mauro Carvalho Chehab , Nathan Chancellor , Sakari Ailus , Jacopo Mondi , Hans Verkuil , Laurent Pinchart Cc: Arnd Bergmann , Nick Desaulniers , Bill Wendling , Justin Stitt , Hans de Goede , Tomi Valkeinen , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] media: i2c: mt9m114: add CONFIG_COMMON_CLK dependency Date: Tue, 12 Dec 2023 22:18:04 +0100 Message-Id: <20231212213625.3653558-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=-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 Precedence: bulk List-ID: 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]); Tue, 12 Dec 2023 13:36:44 -0800 (PST) From: Arnd Bergmann With clang-16, building without COMMON_CLK triggers a range check on udelay() because of a constant division-by-zero calculation: ld.lld: error: undefined symbol: __bad_udelay >>> referenced by mt9m114.c >>> drivers/media/i2c/mt9m114.o:(mt9m114_power_on) in archive vmlinux.a Avoid this by adding a Kconfig dependency that avoids the broken build. Fixes: 24d756e914fc ("media: i2c: Add driver for onsemi MT9M114 camera sensor") Signed-off-by: Arnd Bergmann --- drivers/media/i2c/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index aae05142e191..b224c37bfd77 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -228,6 +228,7 @@ config VIDEO_MT9M111 config VIDEO_MT9M114 tristate "onsemi MT9M114 sensor support" + depends on COMMON_CLK select V4L2_CCI_I2C help This is a Video4Linux2 sensor-level driver for the onsemi MT9M114 -- 2.39.2