From patchwork Thu Feb 22 10:02:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 204660 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp148805dyb; Thu, 22 Feb 2024 02:03:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqwSfiOAo9K9njw4+BkEl2aBY3P4vboLVJWeYsicTzg+ovxRXQpb8URSvgTNxaWOHFScfDeyOJ8Ve/73NkFIk1rJzHKA== X-Google-Smtp-Source: AGHT+IF5AGIH1X8tbxPfgeEnPYN7HwxMn2Zwme7y3Jx6NGjrjXvvT+N4Dr0heuhaCGOIw3mF3u18 X-Received: by 2002:aa7:cd77:0:b0:565:43a3:ff65 with SMTP id ca23-20020aa7cd77000000b0056543a3ff65mr556696edb.9.1708596232433; Thu, 22 Feb 2024 02:03:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708596232; cv=pass; d=google.com; s=arc-20160816; b=hz0QqzGpoRzzzLoayURDEAL+RARyE3BtvJDpCXrDNni1f40KPia+XGKAvfcCKSzAjl pMxkkfppXJN4bDjGJaOZImcwUlEe8Ixq5jkHW/R/UBu523u/JYOTsZAf78CuSPMvOJWw qDKk46/LfifaVXlV15W2c994C5rE2azfqokfjasC06YOXHkVTj/QjwmknHihl/CKZwU1 CWW4JjsHDoiCccu58lQ3VRvtBtzVXayyo80st3y+60ZrMrwr5pMl6kc2fvdpV3ggZLs2 jX3VneSFscO7Xcu0Rh4UPptnnuZPWl/kz1m/dvr7J84PxtHgIUgznQWWp23i2VRWQnw8 Vugw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=K7mhh/+tGSokKC9hoWu6KuTY/yZf2g0GFbeGM7yMr08=; fh=jI+t8n36T9ESwReJ99oVtt8Wwy5ZOK8dEvdglrdgsAE=; b=sGNwDVmmxEWwLVi5E0kvJGWl4kq3MiSoR9F27ifFRUSuiWzfiiDRxIZBo9lP5GAqwL vzVLw4Qjt8OcjADLJ0c7ShF6k0YU1nKqViSEQouB1pm80ekSW3w9CNE7Vkv0TUh4+J/C uUkKDKcjbT2Ejo2IlYfKmZWcR3HAXfwKvw/K9XZO032n3JgFoMT2J92eM4ShyRHQzJJ/ XtB/0r/eGBa2C41kJsBnWjdPsoNmanOvLUVuXVObM8qhATMdClcNFpSdf6oOmxfUCCH+ ZR5lIte4bdXgugSyYrWA914lnFos3HjE+Q7YPChTtXl64NTZx9YMHRRvHiGCw/sqcqnk J6zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M6Fe4TK8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76286-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76286-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j22-20020a508a96000000b00564953c2af7si3014602edj.224.2024.02.22.02.03.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:03:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76286-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M6Fe4TK8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76286-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76286-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0E1BB1F25F53 for ; Thu, 22 Feb 2024 10:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC20E383BD; Thu, 22 Feb 2024 10:03:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M6Fe4TK8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EAF538FB9; Thu, 22 Feb 2024 10:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708596212; cv=none; b=gLDYlF4AcYqhyIp2R7ZrOa3Evko6Edll514Sz0vIYpXU8dZEFdvnifI+MtlYTShDUQ2pBiX8SxJcag26w8wHcylwFEO38eJaXBA3A3BwyYg+YBmDTgBEKb6YXAC+AlECD1njGzUe7fYswWnh/FchBremZ1V1+i1+RmXWEgX9fY4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708596212; c=relaxed/simple; bh=0AggU31CGt9Ylb7dMMATQT5arx+9ift1Y5YR/y3R+MU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HVA2/o63OWHAkc/V253Ee6ziw6SMBdcVL9/FT3++ZLrU4V6XpfSw0M+g2TmCg4/unAqW7yRW53x+bFWykaUIsEWAK7MO+2Wt9FdERifXdyupyLPP4YKu+HIgOMgjJ4idxxF6CdcpEPOOLg+4xtr3XoIpUdjw5mwrTA/Uv+SkQno= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M6Fe4TK8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A975C433F1; Thu, 22 Feb 2024 10:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708596211; bh=0AggU31CGt9Ylb7dMMATQT5arx+9ift1Y5YR/y3R+MU=; h=From:To:Cc:Subject:Date:From; b=M6Fe4TK8tyMXPrN5n3UA3CMidv/F0/zv9WlgWVDiLyjsRIvkZDgUECgErqur0N4/d BEpUb6hdqeYViHQjlHxqcFvFJFlQUOZKDI44b3/cKgAIZL1F/wooyjj9ABOEOu9p5Y 1277HuwsBDyZrDwlOY77ie08vHxOXchwQ6pmHGZjWQzOfZ6947Rte+CCDWLgxHBQmS XtenB0iA0TJlpvSv5CKPxN/aYbDQhVfv4iYUKnENXlCLFwBwYO5mtI56klb44M0XhB SclZjstRT4iLXKZGNMIrScxEAacBniTrTWufVS32T1dd7aKO8kjYQKxFNb/IlmUxcF keHbag2tHwuZQ== From: Arnd Bergmann To: Jesse Brandeburg , Tony Nguyen Cc: Arnd Bergmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] igc: fix LEDS_CLASS dependency Date: Thu, 22 Feb 2024 11:02:13 +0100 Message-Id: <20240222100324.453272-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791593003003142976 X-GMAIL-MSGID: 1791593003003142976 From: Arnd Bergmann When IGC is built-in but LEDS_CLASS is a loadable module, there is a link failure: x86_64-linux-ld: drivers/net/ethernet/intel/igc/igc_leds.o: in function `igc_led_setup': igc_leds.c:(.text+0x75c): undefined reference to `devm_led_classdev_register_ext' Add another dependency that prevents this combination. Fixes: ea578703b03d ("igc: Add support for LEDs on i225/i226") Signed-off-by: Arnd Bergmann Reviewed-by: Kurt Kanzenbach --- drivers/net/ethernet/intel/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig index af7fa6856707..6e7901e12699 100644 --- a/drivers/net/ethernet/intel/Kconfig +++ b/drivers/net/ethernet/intel/Kconfig @@ -372,6 +372,7 @@ config IGC config IGC_LEDS def_bool LEDS_TRIGGER_NETDEV depends on IGC && LEDS_CLASS + depends on LEDS_CLASS=y || IGC=m help Optional support for controlling the NIC LED's with the netdev LED trigger.