Received: by 10.223.176.5 with SMTP id f5csp2524494wra; Mon, 5 Feb 2018 05:38:04 -0800 (PST) X-Google-Smtp-Source: AH8x225ERSrRgBhgZxVVP1qjLcCFMaR+GJk+hDYnLMrhVVwIpC5s/7l50BBZkqTJEglL4drBwc6g X-Received: by 10.99.116.92 with SMTP id e28mr5267611pgn.227.1517837884537; Mon, 05 Feb 2018 05:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517837884; cv=none; d=google.com; s=arc-20160816; b=WQzqlcFZipSDNNBJ3sQapyIBUBBc7rcETR0DSco1dlurW7O6XPf/a6H16XOvrKUD+j YZpfP2hwo2LFIcEodF6BXb27gaWmceNpyreoTIHpIjxEhXnzJG7QNqLYaSa6C+UcUXam j0NpGExQLgMkwE8BdsMoVd6zfizbcKjuaQOEBNP6c7i3MWL6NjCNUicONkT/xbNTJaS7 c7iF6n0E/A8t2+02BJzk3/eRNqRFBZ5nANy7Grj5dbG08pPGPGVVHOHb1cUOKfvHbeDx kfsY3bmmZywIez+SFqyNvu5jL+hEhn4FKgW/aawAzNjvQ1+5KSikMb2Xx1b5Vwt0iLH8 1+TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=Ji6O3+X9OlWb6AIwL38do/2VMavXwlIT519IOMai2Xs=; b=bJuiCd1m6RV9mDrRoeDC0McnHKTfm2gpUa9KPW87iArh5LhAmDGyuJiyP4nE/0LnpB g/d047luqD6zDetYLlZbZZEHzDdKEFSK+Nta97Vz+wreOb/yE7VpO1bsu0dWl27UGuZS aI4hC19DfAKJnc1j/0c1KHKZSlGFsUnMBh6jxiu0N6pfV2dDOaBRLQiKP8Asarn2YU2l QTbGWpnkOfml6XeDwaf4aZKB3OaIVmrniJzt4X67uBPkpwXxwspbLFYkrX1RVA1LmbYc k/Mbcyy/t4bY6b286DrqM/Cbpq1UrjrVNVC3bT5loNVSOiUvCn+9onTOyxjfsKQLcPZc NkAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si587pgf.139.2018.02.05.05.37.49; Mon, 05 Feb 2018 05:38:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039AbeBENhG (ORCPT + 99 others); Mon, 5 Feb 2018 08:37:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:42608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752607AbeBENhC (ORCPT ); Mon, 5 Feb 2018 08:37:02 -0500 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3477821734; Mon, 5 Feb 2018 13:37:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3477821734 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Mon, 5 Feb 2018 13:36:57 +0000 From: James Hogan To: Matt Redfearn Cc: Ralf Baechle , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS Message-ID: <20180205133656.GB8479@saruman> References: <1517225205-10374-1-git-send-email-matt.redfearn@mips.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OwLcNYc0lM97+oe1" Content-Disposition: inline In-Reply-To: <1517225205-10374-1-git-send-email-matt.redfearn@mips.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 29, 2018 at 11:26:45AM +0000, Matt Redfearn wrote: > When commit b27311e1cace ("MIPS: TXx9: Add RBTX4939 board support") > added board support for the RBTX4939, it added a call to > led_classdev_register even if the LED class is built as a module. > Built-in arch code cannot call module code directly like this. Commit > b33b44073734 ("MIPS: TXX9: use IS_ENABLED() macro") subsequently > changed the inclusion of this code to a single check that > CONFIG_LEDS_CLASS is either builtin or a module, but the same issue > remains. > This leads to MIPS allmodconfig builds failing when CONFIG_MACH_TX49XX=3Dy > is set: >=20 > arch/mips/txx9/rbtx4939/setup.o: In function `rbtx4939_led_probe': > setup.c:(.init.text+0xc0): undefined reference to `of_led_classdev_regist= er' > make: *** [Makefile:999: vmlinux] Error 1 >=20 > Fix this by using the IS_BUILTIN() macro instead. >=20 > Fixes: b27311e1cace ("MIPS: TXx9: Add RBTX4939 board support") > Fixes: b33b44073734 ("MIPS: TXX9: use IS_ENABLED() macro") >=20 > Signed-off-by: Matt Redfearn Thanks, applied Cheers James >=20 > --- >=20 > arch/mips/txx9/rbtx4939/setup.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/mips/txx9/rbtx4939/setup.c b/arch/mips/txx9/rbtx4939/se= tup.c > index 8b937300fb7f..fd26fadc8617 100644 > --- a/arch/mips/txx9/rbtx4939/setup.c > +++ b/arch/mips/txx9/rbtx4939/setup.c > @@ -186,7 +186,7 @@ static void __init rbtx4939_update_ioc_pen(void) > =20 > #define RBTX4939_MAX_7SEGLEDS 8 > =20 > -#if IS_ENABLED(CONFIG_LEDS_CLASS) > +#if IS_BUILTIN(CONFIG_LEDS_CLASS) > static u8 led_val[RBTX4939_MAX_7SEGLEDS]; > struct rbtx4939_led_data { > struct led_classdev cdev; > @@ -261,7 +261,7 @@ static inline void rbtx4939_led_setup(void) > =20 > static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val) > { > -#if IS_ENABLED(CONFIG_LEDS_CLASS) > +#if IS_BUILTIN(CONFIG_LEDS_CLASS) > unsigned long flags; > local_irq_save(flags); > /* bit7: reserved for LED class */ > --=20 > 2.7.4 >=20 --OwLcNYc0lM97+oe1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlp4XfgACgkQbAtpk944 dnpwvw/6AqqBb8XqMxPvcfVvboO83hEPlc84gOXz/wT4BL60ZSFQ+JeM88/1EkjO q8E4ANaepHmqUKobnomWyc4TdBtXIFrYxyKel/ipP9rN7v1tWahOznPle2hazHnN y+5tvqw8seJVRer0ewDU6jXkp9jIIYkn/QIBp42uhMHjYLw4+hR/cIEKIZnVz7qY xf2Q5v/p7BvOe2UCAO9Cb8TcYCxzMWh48MkhQeUq6aw22KwEaI1RViUBybsXkBw6 CGvIFOg43KgdfDew9S3ebTWa/hbFYSMraiccFb/7hev+fM9HkB0/eLl289DoRPE5 7omAiRyqqVBqi0yePJjEXvcyjH1hkRZFCZ7qKuZ//jDgd/ArzZuN4JBE+25RM+yZ Qp83EQueg+8vErSDDT+S+E2druqNIPXFwL/tp11x8aGJu9fnM/M1e9n/G/FywQph wrbWJztxo3JzsRNGe8thQOyqpiDW5vuiNYaxHHXv+/zrPZbAzNxy6rzo7gYpdIhP PKs0CxBb3urmuCX4WOaM3B0/ZSukoQO+U/a7sbUxjiCINuXZjHqoc4QNpBtjPrBL Fo0Oi9SyJp8iO4v7Nod9hbyUl9a05+qMl+6Lfoefic4nFc3g82KfXI96HptpKWfo aGTnP1+AFOicYpUVuCSLfTNQoFG+Z6SHPs56GKKhlxRvjh0yUnQ= =PTko -----END PGP SIGNATURE----- --OwLcNYc0lM97+oe1--