Received: by 10.213.65.68 with SMTP id h4csp2142137imn; Sun, 8 Apr 2018 20:47:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bqp7JFuPl5XNNKZeVKWJdqmzrYsFOWMy7JM/KIyjZNtiulhxnDdBRU8k3Sw0/MeUcAVOo X-Received: by 2002:a17:902:7793:: with SMTP id o19-v6mr3853172pll.349.1523245671536; Sun, 08 Apr 2018 20:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523245671; cv=none; d=google.com; s=arc-20160816; b=OaOXL8YohBgUcsrlbpSjlvQO+lpXkYwCxE5VyUtyeOt4heELp9TcevyDoR4Qj7G5gM b4j4rgKoDxSf1oxbsCibqzwLvi923ByS1g4+jWLrFWhXbJlPi5ctVkefdEhP/7ZHwSai 0P5/CajLqciCnKNBhZweXBrIInZ1uY2H6Cv1q7jIDJEOKaZWYKNCvWo8ENa1ivgJI3rb fWz0PhpS70qy62MPfLvbyDVmLGc/yF+GEge1kqV0W4LqbW9xKURqapUYPhUnsuwzdcvl 6qv3c6liBNWrlTaZAG6UV49WnTO+hBBHsjaqi2b2+JYqYPwLvHKIkKKW5fFE5UFuJdUV Xa9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=+/Dqa7FbR5j7K1LjP7egbAkmgRZyQcZi79+r1TCp51U=; b=mx+gAYCBXYqKnAYX6VEHvNpY78KEi+RPfQipLaEPG258mRAKqAoJow++O1jhV6+H2G 3/KiMIgrNucXhjnbC4jGL2jUZAdvf8RJnFOcsgMzNuA0FAJ8XvGzBYeL2YjQFzxo/spZ NBWHJq5g8KBkxTV7HNS8NHAyCTjv31txhYp0DWx5Y1gZ/YTH4SE62gvO6TrVBXntrYwS r8NX0NmeIBde17KpDbHFstPq8/RR4yO5I2lXu8VsFl81vV3BDW0lzAj5LUcKQn0fh5Hh bGrvp3vZMRDj6ZRyThYPNL5t9I/q1lPAx/h8IA2AQO4SladY8jGDBVVrQBi2jl//rvef NX3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=RhDNc/6I; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v31-v6si13626220plg.157.2018.04.08.20.47.14; Sun, 08 Apr 2018 20:47:51 -0700 (PDT) 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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=RhDNc/6I; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754685AbeDIDm5 (ORCPT + 99 others); Sun, 8 Apr 2018 23:42:57 -0400 Received: from mail-dm3nam03on0097.outbound.protection.outlook.com ([104.47.41.97]:45238 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754259AbeDIAUf (ORCPT ); Sun, 8 Apr 2018 20:20:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+/Dqa7FbR5j7K1LjP7egbAkmgRZyQcZi79+r1TCp51U=; b=RhDNc/6IR9R+3pXlD1uBZvhnfnWFf7Y96AaGiDdmKch0PUVZ24KsTfrCScSuk4iFo6Y+fdxu5lvZ6g6qBUwvcR57JwVxIFuKdJOPjUulmL+8wM16Dlkp7pZwmk8IZ20+HztstBid0GlkCbR+0vmbCROy7fisAi51WVAcswS+HtI= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0920.namprd21.prod.outlook.com (52.132.132.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:20:25 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:20:25 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Matt Redfearn , Ralf Baechle , "linux-mips@linux-mips.org" , James Hogan , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 148/189] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS Thread-Topic: [PATCH AUTOSEL for 4.15 148/189] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS Thread-Index: AQHTz5hTmFysGteWY06iOgBmMm3SuQ== Date: Mon, 9 Apr 2018 00:18:47 +0000 Message-ID: <20180409001637.162453-148-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0920;7:FkiO9iBfy6RtuZ2TCkFDKL/WXMXcwIwyjhARsqWhByc05ATuh0sus6YgzEPua4sAOW1InGQhK6sMktK3XmrmCMMNUpR7gObI5RFZYHUr8jJu5XVemoMWkGAd+w79VJ4dRwpLhmTE95KBSjwgqD1sXZFalqXC1NDbQ0cViXIDlgABKpe3PM11lSXpGar9YNBo2dqJYvMyEHs793Avkmnfkkrwrszws0rXE0oonr0lMXcGI52eYkJK2dww9cXQmesl;20:JH09718h7w0YRDkRo+czdYAO6XuzmeBeZzO6NFDhMTeej9xiqzpx29N4BgRcoN9r27Rnj2K4n696COoOQfpIYdWvHhhC0icuqnMFDpRY7gPVF15/sojF8NZA/cXnXGA5YMkKHkA1FHQcLqA68exRrguYopZz+5XJEuVtFoHaO/A= X-MS-Office365-Filtering-Correlation-Id: d5360f1f-f4f7-4115-21a4-08d59dafb095 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB0920; x-ms-traffictypediagnostic: DM5PR2101MB0920: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0920;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0920; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(39380400002)(396003)(366004)(346002)(376002)(199004)(189003)(66066001)(86362001)(59450400001)(3660700001)(3280700002)(25786009)(76176011)(2900100001)(36756003)(6506007)(2906002)(99286004)(86612001)(6486002)(102836004)(305945005)(1076002)(7736002)(97736004)(2616005)(446003)(11346002)(476003)(486006)(26005)(6666003)(6512007)(4326008)(107886003)(6306002)(5660300001)(478600001)(6436002)(105586002)(10290500003)(966005)(5250100002)(22452003)(316002)(186003)(8676002)(110136005)(81166006)(54906003)(6116002)(8936002)(72206003)(53936002)(2501003)(3846002)(68736007)(14454004)(81156014)(10090500001)(106356001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0920;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 6NZFQ9u86Df4dsRnZW1gtKLb5FUGa2twRs7DuPmIXDdBZKdF/pDCRcbLAl41yM1jPkEad7U0SfyFtmotYrwACuEjJLI6cW5+y5rvUl6mLEjOixYXZSnmPPEAkT9Lc9LjNkGwNBLETSDjP8LIhTaA6U8AaSQeniMKxWjp9gXlbFWIh7w6b8k7G3xHWpRMkhTsWxqGhXb7xToAlgzgls6kQFhQzV4OyBMgSMhgeMtMyWMfvVpRAwJ47QtrDh6m5e43espWe8qNgkFsZTADvcJTmBotmY2AQcH9l6ab2j6hkCVsoCjOfcQvaZZJlgBsPyF0c3Cu3azI7gczKguegP8imxAysBR4AEIoK4R5M9QQGzAmgXxqjWHIHuhd+6YB80B1cZgKsgeoeaM2EL0lcpKZjODxpdNEnupiv/F8x51C1aY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5360f1f-f4f7-4115-21a4-08d59dafb095 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:18:47.4561 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0920 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matt Redfearn [ Upstream commit 0cde5b44a30f1daaef1c34e08191239dc63271c4 ] 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: arch/mips/txx9/rbtx4939/setup.o: In function `rbtx4939_led_probe': setup.c:(.init.text+0xc0): undefined reference to `of_led_classdev_register= ' make: *** [Makefile:999: vmlinux] Error 1 Fix this by using the IS_BUILTIN() macro instead. Fixes: b27311e1cace ("MIPS: TXx9: Add RBTX4939 board support") Signed-off-by: Matt Redfearn Reviewed-by: James Hogan Cc: Ralf Baechle Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/18544/ Signed-off-by: James Hogan Signed-off-by: Sasha Levin --- arch/mips/txx9/rbtx4939/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/txx9/rbtx4939/setup.c b/arch/mips/txx9/rbtx4939/setu= p.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.15.1