Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp510807pxu; Tue, 5 Jan 2021 18:20:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMAvS4v5rja/8aVdD4yRFqMqlgl5Mk7r/OtFYp+RUV1SxSjXvV44hKhGq4bOXOh2Ink4eT X-Received: by 2002:a17:906:5e0d:: with SMTP id n13mr1459846eju.500.1609899637026; Tue, 05 Jan 2021 18:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609899637; cv=none; d=google.com; s=arc-20160816; b=yxAeVWrH2a6XD1ejQ9ahQF1Rx4F6swdi+nECkSu0gNTKxdyPq49/oL8oAaCNnVRT8H dGv38SmXsemhm6/IRiiD8d5+WOgzyNfCHkG0Tjah4NqY8XXN5LpDFkF6OVpqNLWCx+HT ctuJMBypHoRoWfMYTj44uK3R/acofODolR+ALpU/EbT/xuTgVSY5G31F5Tj5JrHyVKGj WoUoC2Afs5F8s79AAavzUFkzxWWmP1d3y2wWn+j4+QuWL+NisofBH5A+D/AKaBVLV+f1 XIJ4OCVT9NKdn6wrLSivA3FigWLB1v2hyy9RT7Yg5HlTNZhrx+yFGse1Iq/+a7mICThm J4zg== 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=LIaWes6GL5/coUIDfM1TqdIbbzbCTmUwH4VD0Q/gdoE=; b=hP7roGekt+qU8YSMNsaZP2D7D8uDpnRZ0AcxUb/Ic/yXfUksBUg2jay/lSPLEXhwUT e1Pb4JyIveLPUJztORiAgxsNbCVrnlV+UT4gOm5c/x/F5BsAEJZoIsTIv1yMvAQIC5J/ exOjORu6Sy2SRRlpaERanBbejYnsALYbgdb2oDs/9ZjSXrGev68ILfrF85pzeXKx2TQu ZgJ+ZEabghEB4LxJ06YHwFtJNlh5v0CdIsdw2HtK/LNm2B2AX0fyR4k69ylsOlXyfWxG JTOMfj1F2gwA+JAzneRNUEoQ/jkcvh1Ydgj74yTNBELoBZD1M8P/oUVT57h1yeL/0Uyq /41w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=LI5OpgDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay21si368148edb.575.2021.01.05.18.20.13; Tue, 05 Jan 2021 18:20:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=LI5OpgDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726011AbhAFCTV (ORCPT + 99 others); Tue, 5 Jan 2021 21:19:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbhAFCTV (ORCPT ); Tue, 5 Jan 2021 21:19:21 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2528C061387; Tue, 5 Jan 2021 18:18:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=LIaWes6GL5/coUIDfM1TqdIbbzbCTmUwH4VD0Q/gdoE=; b=LI5OpgDBafj/vEhcm8ebq9I1zd wX+ikXiec+Q7WQKbnbvd9EzVvxVZI49mL1gDwS7FU7NJbkYd1V/j+NpBaTjI9/zEufqenxYYsacpk f1CIZVECMVDBRC1rRO4F1+xDGk23AxqP5d6XrNYHidj8fW0SzsAzS4QiyA/dsSv/fjHBEj2/A18Qs F/XjF+Y2fpOZ8J5Pj7pYt/UWp0JrzwJUFji4evPIyEDK7lkjImeBaAxG0YsdE/9g6e+e2dS5hrKIP y0iOtcVcUUTxtPxkBR7hra3qcRv2y7AS1DMWT3CiYIvVI1Ztn20h/X3/ivK2wnhWnR4Tx5IkWNYuR 3gpB1atw==; Received: from [2601:1c0:6280:3f0::64ea] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1kwyOz-001uSQ-9h; Wed, 06 Jan 2021 02:18:25 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Kurt Kanzenbach , netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski Subject: [PATCH] net: dsa: fix led_classdev build errors Date: Tue, 5 Jan 2021 18:18:15 -0800 Message-Id: <20210106021815.31796-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix build errors when LEDS_CLASS=m and NET_DSA_HIRSCHMANN_HELLCREEK=y. This limits the latter to =m when LEDS_CLASS=m. microblaze-linux-ld: drivers/net/dsa/hirschmann/hellcreek_ptp.o: in function `hellcreek_ptp_setup': (.text+0xf80): undefined reference to `led_classdev_register_ext' microblaze-linux-ld: (.text+0xf94): undefined reference to `led_classdev_register_ext' microblaze-linux-ld: drivers/net/dsa/hirschmann/hellcreek_ptp.o: in function `hellcreek_ptp_free': (.text+0x1018): undefined reference to `led_classdev_unregister' microblaze-linux-ld: (.text+0x1024): undefined reference to `led_classdev_unregister' Signed-off-by: Randy Dunlap Reported-by: kernel test robot Link: lore.kernel.org/r/202101060655.iUvMJqS2-lkp@intel.com Cc: Kurt Kanzenbach Cc: netdev@vger.kernel.org Cc: "David S. Miller" Cc: Jakub Kicinski --- drivers/net/dsa/hirschmann/Kconfig | 1 + 1 file changed, 1 insertion(+) --- lnx-511-rc2.orig/drivers/net/dsa/hirschmann/Kconfig +++ lnx-511-rc2/drivers/net/dsa/hirschmann/Kconfig @@ -4,6 +4,7 @@ config NET_DSA_HIRSCHMANN_HELLCREEK depends on HAS_IOMEM depends on NET_DSA depends on PTP_1588_CLOCK + depends on LEDS_CLASS select NET_DSA_TAG_HELLCREEK help This driver adds support for Hirschmann Hellcreek TSN switches.