Received: by 10.213.65.68 with SMTP id h4csp2203817imn; Sun, 8 Apr 2018 22:26:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+1vBhuf5jkltuUEuME67iusRmPPiHTkZ4eZA8ZjsiLPE7fJBuz0PkL65G2yrkzDEGCzAUd X-Received: by 2002:a17:902:b082:: with SMTP id p2-v6mr2125315plr.11.1523251565749; Sun, 08 Apr 2018 22:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523251565; cv=none; d=google.com; s=arc-20160816; b=sBRDp1gjwXtF6lBsYZ8FPzRpnrv0C5hEBrYQUL789w7QQJsPx8PyDxHEMe7B1m27MC EcKR3wOzpi59Fv0fmmmx4NJrd8ZJyq28H0vEPzYvJtdKw9GlpZ+JtVPnuP0udj5Ffs7w lrRSELfsLb5/J2LdFgaSQB/4Ev/tYCnLaL9Oz2kSfPs+VC2VD6mnGEepBtxA3Q8aSn11 ZSKuHaBXcmSjFI2RcbgHm7rrxQnk/lFZbSmBBVjD8KWsqcZR441v+3nGFRf3r3X47r4n s3kvybpexLOmwPy7HHuejSsCYDfI+2JvNG/fWXvgCtgsvrqOeUdBDEWoWJJa1fmWpU0P T+3Q== 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=OVpac7ZL2k6zsyhPiU1jiJ9YWIQi83QxAQjbNeNktAqoy0cFcYBjJOmzoxyw451mIJ WGi4EP0fDvlVTLm+jgtiQd9T15g98ZwffDvWYeFaMoEHT5mIQeR6ERjzK+hLHicjrcZ0 gw0bLTQaBXByAyg+0ypQlg2GJX9kzWDFDf6AZ7Eu6OsIzP5+pnWbvEPQltE2ne30K08V DCCNP9oA/E9IPJsueADEBm+MMQlfj6XtgtBPFfx0SIAXToeaVCGl5xGVkRjAVzKhtYVo ar3VzRFideKfUmxN4owp2SErL+InA37kqEjIGcej74839txfgTtVQHnVyGG6n/1KYdjv PqkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=BBDC9nYW; 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 bg1-v6si1393274plb.695.2018.04.08.22.25.29; Sun, 08 Apr 2018 22:26:05 -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=BBDC9nYW; 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 S1755223AbeDIAZj (ORCPT + 99 others); Sun, 8 Apr 2018 20:25:39 -0400 Received: from mail-bn3nam01on0139.outbound.protection.outlook.com ([104.47.33.139]:17920 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755165AbeDIAZe (ORCPT ); Sun, 8 Apr 2018 20:25:34 -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=BBDC9nYWsA3IoetD3KIH7Hd3h7s4QdhmO1aigrL61L4R6GzHDirb59OGR7jkGiWnilw7ZDBXyV1uQM3e5AsFlgnzQa15x5beBhyE9Ok4uroDytHTlwtj4AfofKwjBygq7jB0hExIqAoGfm0Z2zO7suEmEb0levNpqTToSzXycLY= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1013.namprd21.prod.outlook.com (52.132.133.35) 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:25:30 +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:25:30 +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.14 124/161] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS Thread-Topic: [PATCH AUTOSEL for 4.14 124/161] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS Thread-Index: AQHTz5i35B5sXTqRnkuygn2sm+RC/Q== Date: Mon, 9 Apr 2018 00:21:34 +0000 Message-ID: <20180409001936.162706-124-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-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;DM5PR2101MB1013;7:Vkh4GFeLFH+3IgfLgSPwMjtIqJgMzYcuYU2QztAxoYoS1oK1GQ998+12oD9AS3kvNYDPN20HlIyHcqc2mz2/UmKZ2aRXwTI+FCbetS9Izmg+X80D4slcutjvc9v1xXjTnI+vAfyRTEjcMcNMroaj0gRaVWtGCIitrZ4/qTK2F6UNaI0i8kePdjNkf0y7xaJI4ZaZx7r0daORmz4NYj+JNX9iESvRocdISZSsppA/Zvo1rj/suBa6IaMeJhUAOgR/;20:o9gfW4QeoFDxcwidt9OD6NJLTKX659FWDciB5zXeobcpJJXAeeO80lFSmJjQLMhvVWxbaJnEKsTxFIXM4Ud4ZkR2LRnc0x2X/ANtqIFxhnMuPSYZc5mvtBf1MWj9H72L3Vk1VvhvwAE8P6tBi16VTIKH+TozhhiNUSlE1HyheAM= X-MS-Office365-Filtering-Correlation-Id: 3b3d9764-1ee6-4a05-2385-08d59db06684 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:DM5PR2101MB1013; x-ms-traffictypediagnostic: DM5PR2101MB1013: 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)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1013;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1013; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(376002)(396003)(39860400002)(39380400002)(189003)(199004)(3280700002)(2616005)(8936002)(7736002)(476003)(446003)(11346002)(53936002)(3660700001)(86362001)(86612001)(81156014)(2906002)(186003)(81166006)(105586002)(1076002)(8676002)(26005)(97736004)(25786009)(6306002)(6512007)(3846002)(68736007)(72206003)(106356001)(5660300001)(6486002)(6116002)(966005)(14454004)(4326008)(305945005)(6436002)(2501003)(5250100002)(10290500003)(478600001)(2900100001)(59450400001)(22452003)(110136005)(316002)(99286004)(66066001)(10090500001)(107886003)(76176011)(102836004)(54906003)(6506007)(36756003)(486006)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1013;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Y3eTXqwXTJ33Gc5ByTF6ZE52fLjXZcEKyBHu2CVbsh1sRnX1DutlwkKpriAwPgZebCr668PZzMGOwj5eMZ4x6a0Nx+dO4krO62RpgnvB6vZ9DV9CkwO9g9p/+5YrNUl/yjghUP+Rre/oml+pyHrhJQ49BA/WmDaMg5uH8cJ3IPyB6/4JtkCZDsNqptFQKn8ozJEmyWEdHjd3GTV/1CJz502zM4d8CUGvKiSQ6tBc/BTbfCaryXA0VWB0jY5e69zJiBs1PILKxYGPRHykkLg/GnKhTssc5WNyorlwyD4jnlme9DC1/FOVd713vlqSjxoxAXjyB3nEieGz715K2ZJ245Ozo4iLdi7zuAALv7mHfkaUsFvK/4LceOYIES2OlC4zM9FBKsDuhR2tJV1hZbJwdKzLpoFdO0Hcaco6pup6AbM= 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: 3b3d9764-1ee6-4a05-2385-08d59db06684 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:21:34.5811 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1013 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