Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp71078lqp; Tue, 11 Jun 2024 15:14:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDH7+dQvW/kyjXkMC6XZCN5MmWkAacc1BVozwKI5TvRjtIHGlRezwY3rqkQwGr3h5siVej8qpsxveRUHWNhz4StVsNamgEx743xClRvQ== X-Google-Smtp-Source: AGHT+IHNTcWDXyo9UV1GL9pzU3A3R/Nzz8bsisZlCyifTByxcC57hzHHA3dcYG5CZ2KMZLm/7EVW X-Received: by 2002:a17:902:d2c6:b0:1f8:393e:8ba9 with SMTP id d9443c01a7336-1f8393e8e07mr7596245ad.13.1718144063825; Tue, 11 Jun 2024 15:14:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718144063; cv=pass; d=google.com; s=arc-20160816; b=GgiHQZqmHX0Nq9H7Ri29EztGPhfw1qNI25F+gTktGTw27dl33rUmL97Okxdlad+yxL vknVvk6efTRQvHR7OVQVFvIXFPIC+ijlH7aVKm3AKcZXy3YR0Q2TpxLKLbKl9KCHx1D7 y5tX9kuorTdzpfdVRobEOHQMR5a7F+RMNpaEqcxYwdG9OeFmU4nj4h/8ZX9Tgv1tSYMv MVo9LTtwS9MaroY0Ij+4S34pq1jVi+Lwj6xBv0JDeHvFx/zTRiOUKDwcP9H0dSZ8hgO4 Huo5sa4wnsNhU8yfr3Ii8h5hAzoObtLbfE+bow/f+MKgrN4zr7yfa88m/te+WlIlpyS1 4ciQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=dgd2gxREMu5XUau4oavqQoWlbsTO40tosBCUZXfMJAM=; fh=9N5HY/b6HtBwrwcOdyhrDWFqFrFR1J/Fy3HlFICoF5E=; b=hxv3CK4E889k7mS09QDafaOOFh+DDlFjZ5MilCHxpozvVD+U4og84ob1Myj3iyRLES vZr2V9Pt9itos8CPPdwjIbhrBOZeCfWecXsmMs/wNRXCPcR7ufBVCWCLzIjherq91odd NX7HnWSLTRWTz8HgJtKl1kCsDzrblJgOxjWqGw4p61NsOPwCBB/vjbpYUs8Z866qaJs6 1uj/WvVyafgmE4CpNvrpH1uv2Fanv1Jm7LWsnxiN2fizCydqx4C7agO/nRBknpUp2V4a uwp0/n21xaFPmzNWk8kOj8vEDL1ZDFWJdqgQpoKq4kqJgbBOOcnBPOym44tJqJYwcDmd zTIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uvr7QjPA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-210655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f734bf0913si16430565ad.375.2024.06.11.15.14.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 15:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uvr7QjPA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-210655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A9B21B21F1C for ; Tue, 11 Jun 2024 22:14:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9A10155314; Tue, 11 Jun 2024 22:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uvr7QjPA" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49C971527B3 for ; Tue, 11 Jun 2024 22:14:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718144052; cv=none; b=Ilc00SCiXAbMtW4QE6bpb4W1YmXhokd6JTYFVWlXXIwpAvSZVl8d/p9RZNRdqYCrRu0QLAOnBopMIqliYEB2FW87veo1sbXGvY8RNQ2KE7lUf0NVGyoRGWcAbbrnXn5ee95ZaPOqjSqVC69EJtzRn6GSckOjKaOUJrjG0UR6Yxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718144052; c=relaxed/simple; bh=dgd2gxREMu5XUau4oavqQoWlbsTO40tosBCUZXfMJAM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=i7lYrqSxILKv4Opp/+1dbB0MYPsrbIL2Us6oZWQpw4ZqzKyszK6qaqCP0PLbfhR3VMxLorM3r7XxatSSu867N8hJHybmucRMO7qHidNZUqBLkKmsta5X7sJ3cfrojCbL91A9ii+Jy1Ex/uwByAtJRTlaeoVnvRynWiHyaAhuXts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uvr7QjPA; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-52bc1261e8fso5026827e87.0 for ; Tue, 11 Jun 2024 15:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718144048; x=1718748848; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dgd2gxREMu5XUau4oavqQoWlbsTO40tosBCUZXfMJAM=; b=uvr7QjPAzlrSuyUCmdjVvR4RdXDaxjnoDH9u/5LDJIB511mGNgdwo+8PiEO169Sne8 8ztxkx7eDKQvReRNA6hxOc7SL4eHLPP3MdEQExCLh1p0JbLRiUrIcfLkxVUoCgYmyqwX 1CjZOrggoOMvV7oup9r4G0Z4lNp4TKcuQlCHECtJepbPTB+pB2RVjnMUQjcXCMNcBZm2 kGAd5AdQw9a71efMlH1wBLJN/GE+fa7yQemdOL78tdttQRZeuUTM4csKwwN8MjoaBz3y dgKImG5Hqrt4mzjwIAjRwcTHDAPTHPMB7uELhRhbHKDqrE30o1egZR7wG+tQyoRPT0yD 45qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718144048; x=1718748848; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dgd2gxREMu5XUau4oavqQoWlbsTO40tosBCUZXfMJAM=; b=nrwbLxBBbiLpWTcDaZSrRKPb2ZKwfEPD+typqH6XuJRWpr3Dj6m8a8DWAS/hZT8J5p moYrz3gn4fpyNFgiR25wMT+Txp5X3qPeG+LglWf1oSzWMKstsniZcj5VKzbEo/84M3YQ KGH/eBfWmn4rb8KKYm5WwkG1Y4lTw3yP6htxkjJ3AmxuE9Hevgnrsfb95CAAW1qHrBR8 iO+0TWrsYGBlV6CsjK0YwRG07KiMEbpmz0zHwIHSV001lksCaxH6HVNFIjNTSDP4YzvW HHkeJKIBUHxyIPlcpTe76hUTb+/4J/1+Z/dnjB76uTnClDOgOgoPJ4dDekBaViyRWS9j EVDA== X-Forwarded-Encrypted: i=1; AJvYcCUUPfgZR/QVFaeHqwja1c2qmQlti4oU79bq5kGLh3wi2TDMDsnM5C7WnL/ofNFg7DL2DHlJNWX3HweNbmMLVXWp6R2XLAzUdnyh1XI7 X-Gm-Message-State: AOJu0YyGf5QWFFG1e/M6nKEJEKiZrGlZCGWiJJOilCltdqlfsvAETcD7 wGuzXwnxC3kLz5TPOLfdbQmSW8V1zJEivKmadzY77BZxYSK1TA6M9ZlysjH5VudcdQqfTcWpql+ t2C+XGClMNWdv4jYzG/s2Qp+G3xQyq0hc+pf1aQ== X-Received: by 2002:ac2:4850:0:b0:52c:8023:aa9 with SMTP id 2adb3069b0e04-52c9a3dfb4emr29645e87.36.1718144048216; Tue, 11 Jun 2024 15:14:08 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240528120424.3353880-1-arnd@kernel.org> In-Reply-To: <20240528120424.3353880-1-arnd@kernel.org> From: Linus Walleij Date: Wed, 12 Jun 2024 00:13:56 +0200 Message-ID: Subject: Re: [PATCH] net: dsa: realtek: add LEDS_CLASS dependency To: Arnd Bergmann Cc: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Arnd Bergmann , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Luiz Angelo Daros de Luca , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 28, 2024 at 2:04=E2=80=AFPM Arnd Bergmann wro= te: > From: Arnd Bergmann > > This driver fails to link when LED support is disabled: > > ERROR: modpost: "led_init_default_state_get" [drivers/net/dsa/realtek/rtl= 8366.ko] undefined! > ERROR: modpost: "devm_led_classdev_register_ext" [drivers/net/dsa/realtek= /rtl8366.ko] undefined! > > Add a dependency that prevents this configuration. > > Fixes: 32d617005475 ("net: dsa: realtek: add LED drivers for rtl8366rb") > Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij I tried to create a separate .c file for the leds and stubbed functions for the LED stuff, but it ended up having to create a set of headers just to share things between the different parts of the drivers and it was so messy that it's not worth it. Yours, Linus Walleij