Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1481649rdg; Sat, 12 Aug 2023 03:09:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZwA8XMbcLTDE2BwFAxmHk4ALZtMTCR7B4WrBVeM95gNdlaeJ7TVZbENqe+QEGo46xoCe7 X-Received: by 2002:a9d:6c52:0:b0:6b8:7880:de9 with SMTP id g18-20020a9d6c52000000b006b878800de9mr4742642otq.19.1691834990245; Sat, 12 Aug 2023 03:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691834990; cv=none; d=google.com; s=arc-20160816; b=p17ygQI6DXUl0nEvimuuom3m7MiRTiN4Hdum1ZQ7Y2IlcQlduYHkws7xAv8e7I8Gpr 7DLF6Q3CTOoisPKi1iEOxp3lkST19sQy5xWws6K3rn8Iv7RrQ5X0NkHUlwTAlkSRQXfI HMmpOhIjEn2QJgq4fZZr0BVXszEP6CWUuGZYJb70+OIKGMI+8RwQNIOTkem0Dlo9HSjC MdHfF9oVXiwPHt732QdKSQ4ElFm15L4aK6KqHlQpgUVRkY/yZ+gH7p+lB0Gh95oc7fE0 zv2A1kkOLBJemSQX71b6gZBcPGgJeBQ1g9rvy8DsDZ5zBX/8HyCKgDy5DQY33XpYpZ17 L/RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=POBai4VLyhm9rOGiPzBMM1HkllY/sF6yVqxJOaWGKQI=; fh=+NJ84h4fOLCbnqbXn2wYmfOGCAp7FfvVWHx+50aaS5Q=; b=OD7p8v/2MxuUn5cZ9akIEzdMdRtIKQ3Yl0ZyZQWcJCNwKWm6SqgDjJcDwiLoCEtFB7 EcXrFByNb+wezD2WDWKJQtGhGe5XD08EO8Lhy1CFW2YzXvSz9CdxpEoloyXz2e/Dkl8l PjHrRNyUz99HLDFA9mpwozha4uBDcKOnjV4Qc0gDKFWXptoAdInnMi3QikvJxu5haemA GfZ7/k9wGXvnJuNJdQ8rnpSY+G9gfMa41PpjGsg2RlmZUQcAaMGuzvhY+Xs8AXDsYU+Y SJkuv7BfiZdneK5c6HhCA0o3tz7daEwuYtqEfCExuOrv0HWUUO56YxiMGVKc8wrnk/3y dStQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a17090ad70700b002681289fee1si4711181pju.107.2023.08.12.03.09.29; Sat, 12 Aug 2023 03:09:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234276AbjHLJTk (ORCPT + 99 others); Sat, 12 Aug 2023 05:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231503AbjHLJTj (ORCPT ); Sat, 12 Aug 2023 05:19:39 -0400 Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 979212123 for ; Sat, 12 Aug 2023 02:19:36 -0700 (PDT) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4RNFSl53Y4z9xyqf; Sat, 12 Aug 2023 17:18:15 +0800 (CST) Received: from fedora (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 12 Aug 2023 17:19:29 +0800 Date: Sat, 12 Aug 2023 17:19:28 +0800 From: Wang Jinchao To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , , , CC: Subject: [PATCH] drm/i915: Fix Kconfig error for CONFIG_DRM_I915 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00603.xfusion.com (10.32.134.231) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_DRM_I915 is set to 'y' and CONFIG_BACKLIGHT_CLASS_DEVICE is set to 'm', we encountered an ld.lld error during the build process: ld.lld: error: undefined symbol: backlight_device_get_by_name >>> referenced by intel_backlight.c:955 >>> vmlinux.o:(intel_backlight_device_register) ld.lld: error: undefined symbol: backlight_device_register >>> referenced by intel_backlight.c:971 >>> vmlinux.o:(intel_backlight_device_register) ld.lld: error: undefined symbol: backlight_device_unregister >>> referenced by intel_backlight.c:999 >>> vmlinux.o:(intel_backlight_device_unregister) This issue occurred because intel_backlight_device_register and intel_backlight_device_unregister were enclosed within However, according to Kconfig, CONFIG_DRM_I915 will select BACKLIGHT_CLASS_DEVICE only if ACPI is enabled. This led to an error, which can be resolved by removing the conditional statements related to ACPI. Signed-off-by: Wang Jinchao --- drivers/gpu/drm/i915/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig index 01b5a8272a27..5003de921bf7 100644 --- a/drivers/gpu/drm/i915/Kconfig +++ b/drivers/gpu/drm/i915/Kconfig @@ -24,7 +24,7 @@ config DRM_I915 select IRQ_WORK # i915 depends on ACPI_VIDEO when ACPI is enabled # but for select to work, need to select ACPI_VIDEO's dependencies, ick - select BACKLIGHT_CLASS_DEVICE if ACPI + select BACKLIGHT_CLASS_DEVICE select INPUT if ACPI select X86_PLATFORM_DEVICES if ACPI select ACPI_WMI if ACPI -- 2.40.0