From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 61EF03ACA51; Mon, 22 Jun 2026 12:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782132156; cv=none; b=f5WF1n1DllTnrGQ+IdZahzQ1T9KWbmfc7QnKuqB2lFsqkGQuIaCLG29eEegBKj3gHE8cAhwm1aH+XhyAVDI1+kySUuFLWISd4hJrPJmiDezR9hMN8m8cYPjTwM4NwyDd1RyJzLfOfI5V3GbI5KbiDw9mRv6r3daTWhPYZ+u8Auc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782132156; c=relaxed/simple; bh=7N2TAafp+SmVEnFS/PlW2wcFbqKinOTiwEw8rfZSR6I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=UjDa1mgerkVJjCR/5mvz9fEiuP6ngQnvwaUFLyU4HDJt/uJAHsA0tf2p8MinXm60oZSPuC6r8uHiB9UTTaWibKqM+l/784HefhmVuRa7LthwmMYeDtel5Qoj6Qq8wrmQirl8NOZiH0lOuhk4rqZuXZdP8EC7q3w5BF0p3dQMrjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eqfWTanM; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eqfWTanM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98CD61F000E9; Mon, 22 Jun 2026 12:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782132155; bh=CgKo/nqGF/gxh7rMoUxHIPw+Kwmsxo0ahLadQcPxeRQ=; h=From:To:Cc:Subject:Date; b=eqfWTanMnrzYj7XiReTwHaFp12eloCG96U716NFElnvA970BTuSY/ZaB+rC2CE2nr qZXQHN4Fo0l7OsVDzTrkUSqc0HUfFGnZVPJMacTn6wPg5ogvEXk4L9Q6b+Qoi3agLW B7u6GuYKp9zDRC/50VKMdUR/iBeg/xUuJIHtew+Z2wWujh4Fd9wM8rrYK0i8VbxmmY I49YhAyj8rc7bs+lNZZjLB3fxuTAuq5zyyMdTpzTZxUWGv1F4EfG7B9jZWps++96be TBrTZlqMvpXTkXyPd9Xo+1Ek/s9R43RKB/fwJYtpaUYRWedz/IqdLxVsaYzjq2uGHW xNUNYNt6qo7EQ== From: Arnd Bergmann To: Saeed Mahameed , Leon Romanovsky , Tariq Toukan , Mark Bloch , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Sabrina Dubroca Cc: Arnd Bergmann , Daniel Zahka , Rahul Rameshbabu , Raed Salem , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [net] eth: mlx5: fix macsec dependency Date: Mon, 22 Jun 2026 14:41:07 +0200 Message-Id: <20260622124229.2444502-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann Configurations with mlx5 built-in but macsec=m fail to link: x86_64-linux-ld: drivers/infiniband/hw/mlx5/macsec.o: in function `mlx5r_add_gid_macsec_operations': macsec.c:(.text+0x77d): undefined reference to `macsec_netdev_is_offloaded' x86_64-linux-ld: drivers/infiniband/hw/mlx5/macsec.o: in function `mlx5r_del_gid_macsec_operations': macsec.c:(.text+0xe81): undefined reference to `macsec_netdev_is_offloaded' Fix the dependency so this configuration cannot happen. Signed-off-by: Arnd Bergmann --- First seen on next-20260615, but probably an old bug. I could not figure out what caused this error to appear, I have not seen this combination in many years of randconfig builds that look like they had the bug. My best guess is that there are so many other dependencies that it is simply very unlikely. --- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig index 9cf394c66939..ba944763a737 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig +++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig @@ -144,7 +144,7 @@ config MLX5_CORE_IPOIB config MLX5_MACSEC bool "Connect-X support for MACSec offload" depends on MLX5_CORE_EN - depends on MACSEC + depends on MACSEC=y || MACSEC=MLX5_CORE default n help Build support for MACsec cryptography-offload acceleration in the NIC. -- 2.39.5