Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp239070rdb; Thu, 22 Feb 2024 02:03:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXdF7rOeGJYxa0lQ7abTkkmCFD0YWKndA+OmWueOPKvScS2zXUG58bvRENjQvzaSzwmxZ08gVO8lYRlg9Iv28LQIpGwtLS2kivA4ATJTg== X-Google-Smtp-Source: AGHT+IEYClXnXpI1OfUSnBj1GjgEM7bXougR6ILHs0xyJ7HfG14vZLwX7vgbrgGnzh1NYN4ueh4P X-Received: by 2002:a17:906:35d6:b0:a3f:47a9:481d with SMTP id p22-20020a17090635d600b00a3f47a9481dmr3226713ejb.76.1708596223149; Thu, 22 Feb 2024 02:03:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708596223; cv=pass; d=google.com; s=arc-20160816; b=mXt/HVrWABWoPEe2FXrxeGb+V5tzlGrozMm11oun3ezL7VuiODX+0R+SYg6hGla3Py McbndPew4dyAfrOAhGYjZlnpXaTH13AY9iXTRNk6Nj2eXnzwhOj5O5oXSonQ97B/Z25i XHzeSKo+0Q82snIjOQ92V6AGCVuQI4CrLmOSMxiOrbDUf+P6ZtkJ/fCpnknKBwpiYYBi tFERbAYECfmvjwJtGOCeLVG9IYqZO2H/3x7xm5V3tzsHqL2izdC5qRRi3IaxjW+i6gka HKu98On7ao4DyWVdILKwS0UZgK9XHoCC0c1SCN0FbCsRdrHO77v+Cdz+s3cje9Ps6UnY oC3Q== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76286-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k25-20020a1709065fd900b00a3e5f4eaf0fsi4214793ejv.19.2024.02.22.02.03.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:03:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76286-linux.lists.archive=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 D41AC1F25E35 for ; Thu, 22 Feb 2024 10:03:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 018D539AE1; Thu, 22 Feb 2024 10:03:33 +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 Content-Transfer-Encoding: 8bit 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 --- 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. -- 2.39.2