Received: by 10.213.65.68 with SMTP id h4csp2114390imn; Sun, 8 Apr 2018 20:04:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx48d1ouHv9bZMRT0Hb0p+sTdn6pwtsFtlK6Myu7U0y44igYyf1Mjc302yb82uiI97KvJqIYc X-Received: by 2002:a17:902:6b49:: with SMTP id g9-v6mr37284189plt.75.1523243078195; Sun, 08 Apr 2018 20:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243078; cv=none; d=google.com; s=arc-20160816; b=I9O59bcs07n6xhRZWzRMX/DFv2+ZQakv/RfcU9XyAixPCdoEOZVR/6n2mJbRYKPkWK pIVxwZh1nLwQWQlCCkc+GOLdiCCpEUUZXsYn7qeku23OiI2Bg05N6dmReeBt2c+IScBp MOqQ2yC6X9p29COJQpW/mGuRl/1z5dXEUb6is4j3l14ijvVfhgQlIKxmM45VS+9qSYni ruXNlIYoWZVMUs9aVuAQhr0ZIp0C0K3WGgX/qTEPFQ1BAMr52Oh19S6eph3vJ03iFXZ/ QwjYnzPEuxyw93OtSJSwoUOoyTWWrh5gd8WETOUwKTV3pzta7j6X78oSWmpHiQq3ikIo yL3w== 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=0DmVy4FWzXzYmT+N58HLMFPVR16wZiCn476omTcJtUgsr3yIvq6usJzOBbXj0ug0r9 4ovxQyZMvabsS0aX54uxhyN4OmKcpypRmkPkrB6Ev+IyqTG6f6Qi78KFiBIYYv+sbZ2+ PUBxQUEFM7zbEgRUGkdfEjaQZH87amNrzl+DKVs/Lm6DlnIWXrbBHWALJSFIkxc5bRXY +aqSaID+fldVTR6qJUeBYe9eRLScMezvxZstr51P1jbZHBj+iNZEh2/Ti0JZOUAahzIa Q+x0oZefFaKUkMGCTAlAds/tWA/1+COHcAXTBQp2lr+VSdCMOJlC1s4RVEqg1+g6coCN 2/vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=GRzzhYSY; 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 a7si4656086pgc.797.2018.04.08.20.04.00; Sun, 08 Apr 2018 20:04:38 -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=GRzzhYSY; 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 S932523AbeDIAer (ORCPT + 99 others); Sun, 8 Apr 2018 20:34:47 -0400 Received: from mail-bl2nam02on0118.outbound.protection.outlook.com ([104.47.38.118]:14317 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932484AbeDIAel (ORCPT ); Sun, 8 Apr 2018 20:34:41 -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=GRzzhYSYIYFyw9oWWanxbesmUe8/J/P3FgA0udTKPNpE62zAoP/o6VV2qHvhXtiw2/IdRsASOaX6KBKq7dtWFkkWoKNX/hf1ApA5f76bA12zUtuIYyY9iFejIpo4JYUH1/zsjrbr6aUM5aqfNq4vyyGJHltFTV3yEir3Ls2MDhQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0984.namprd21.prod.outlook.com (52.132.133.30) 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:34:37 +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:34:37 +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.9 274/293] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS Thread-Topic: [PATCH AUTOSEL for 4.9 274/293] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS Thread-Index: AQHTz5lneJy1gzRQNkGN6y6N4bQDrA== Date: Mon, 9 Apr 2018 00:26:29 +0000 Message-ID: <20180409002239.163177-274-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB0984;7:PtpD+Wbw8oEhIHgm9KCDv6qABmsStnN/ZTYRHumXtYfQR3tbZhSqqlvmfUP3WBEzWhdiKfjx21jSG1ysQrNsvU8A1nS8orL5RwM0jreZxmA0NHaJJnS+S/efKqbPDTAkBW3GFhkc1ep1fe5yKNRQnBCB/C8jGG5G+7Yy/vMeQY3s62xxLCEyoO7CldsfDXPo67MbEZTDs203w+2QRuYu/OGQQ7uA+G/Z/0JuRWNUZU8CdgPFTDvTKfGMeVu/Px0G;20:ihmrXt6XqgQHo0/6cY9MnfSy03Qpy8cGXN4LvQNfDwzuYqQoJVWGkNTcmUTufiuE7lDMM7MMM2HPMO5DvmedabCSy94psPwdhce9kg+LHfmk+ns6wbKSisqMufgC0kKMk78Fy8FxSI51jDGY6HzSS+uGePzMKRc01Mfpe4vQPpU= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: bcc6b15a-3e0a-44c9-31fa-08d59db1acd2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0984; x-ms-traffictypediagnostic: DM5PR2101MB0984: 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:DM5PR2101MB0984;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0984; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(366004)(39380400002)(346002)(376002)(199004)(189003)(26005)(99286004)(2906002)(14454004)(97736004)(59450400001)(8676002)(81156014)(81166006)(8936002)(6512007)(106356001)(76176011)(186003)(3280700002)(10090500001)(36756003)(6506007)(66066001)(3660700001)(72206003)(478600001)(6666003)(53936002)(2900100001)(105586002)(102836004)(966005)(2501003)(110136005)(54906003)(5250100002)(486006)(1076002)(25786009)(6116002)(6436002)(11346002)(6486002)(22452003)(4326008)(446003)(7736002)(86362001)(305945005)(2616005)(476003)(6306002)(68736007)(3846002)(86612001)(5660300001)(10290500003)(107886003)(316002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0984;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: XEGB6iQo8XuLAnHSxc/JFORs6tGyngV5KqGujJ3APDrOae8aFTdwoDV2Gm1qlh01Yy4OXfnhyotQoiXaeVQOJn2znOd+4gt5Bs0s7A5HFgAfgSIvfJLRcfLLTVPL7Km9cDdbm1ZpwfcfwGHR4UZcw+7HdL2xYmQtmmD6vV+M1LYlNkVcwZk+xOn+Wlt40OT+JA57SENneP8cUtNigVVF6Y9X4aaPjPt9O+mifYMn3v86mlVDzsMSRc96knqGYJPSLP/LI24vYO/WeNqGcFuu6e6SbCZmSq4K8ZcSw4Waxxe5DXQpgxI3Q2ky8FCC+XT+PyYiP3bge+yQgKrcqQIYBpHYmPP27oVGiAgs2XG4wNRr7WnoTs7gjm22w8WUPuubkpZ48y2bwubbi6NJRE9obriW36v7W9h3olsmwMsAbxE= 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: bcc6b15a-3e0a-44c9-31fa-08d59db1acd2 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:26:29.6758 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0984 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