Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11200231ybi; Thu, 25 Jul 2019 11:45:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwANfRnljxnmvJA9Jgwbd12B7aNXk/z1XKOT+k5tJVyq0PXRUXMNqsOm7PMCYWiheP4N7Ie X-Received: by 2002:a17:902:e383:: with SMTP id ch3mr91837971plb.23.1564080352603; Thu, 25 Jul 2019 11:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564080352; cv=none; d=google.com; s=arc-20160816; b=LR6E39ePaIei+kS5YwGptCtay7+kIQPEPqqTXvjQIT74zRpnXKwZug2tY2WdB6XERI ewhySQgMRbEh+la/GQzDa0GO9sjbP8AdtdOLjFWv6go4K6BSKLKWVaRWl/kuXzhwGQwU MzmllQcaeNrel1kK/8KqP9BzIhQbCrAQwDWVg0N/EPmprViZmoFoeQRVxLwXcq4mGsBt qbGBIW7KsDP8YImn73w3ZQNHKV+miD66Iqx0GLQiB+ogZ7MF9617wrn5XOEA//nKsiqd otCCBOs9kphgbaUcOsdTFxDso47eAfvcsp7WDw5Ruu703RmCklF7hNHySdK4a/7vdH+R or3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=eZg2XLH1NHBQ2/38DmwmZR58KK7aQy+03e1hk0T/aU8=; b=GmGLXabTs+uMsSYlbitQpYJPIrwpQxvmphhoG0ktBBY3OiTU8aIxChPyTRlxzbvOwq twUZKPYevFy9e5IJ5863xZJ3hgTGCXZbSeVG1Nk7HvzqdSTt+cZzb4RGxC0pIc7XDAag 1nF1766c5ZSF52hl+BQ6R2uukJHZfdW7NXE6be+g9cwq2z8Avn62FcSlp6Yj5MrgyDcg Y4c4kgn6HA5TWUTV3oBN9KH1p4N/IdvKR/31Mx3QU/aPqIlM7fzCoSWXDGYBOAYP4qX1 Wabb+6pi2blETe631Zy48pX6MHemT9qBiXkr6OtThJQxZTnZdPpmcWH9ngVTIKwaa+PW P9nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fHdt0j1m; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si19234379pfi.256.2019.07.25.11.45.37; Thu, 25 Jul 2019 11:45:52 -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=@gmail.com header.s=20161025 header.b=fHdt0j1m; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726535AbfGYSoj (ORCPT + 99 others); Thu, 25 Jul 2019 14:44:39 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:56059 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbfGYSoi (ORCPT ); Thu, 25 Jul 2019 14:44:38 -0400 Received: by mail-wm1-f65.google.com with SMTP id a15so45874525wmj.5; Thu, 25 Jul 2019 11:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=eZg2XLH1NHBQ2/38DmwmZR58KK7aQy+03e1hk0T/aU8=; b=fHdt0j1mU6u18B9UpKdbWWXcrUmxKHxSnJK2qj2AtahBcQ2kkpQi5mBTMrl1ToshDG HNtMLtmQxXNqU6uVfLThbs4azb5dFOZKvtUTOteqjHmzb/vanxWLJXg7CHvZVGy4wx+x zrOup6AqzggKk8SbQjRMHWFoa/OV9Or9SCygHdZq6Bcy9cDZmTTggE0Vmonh9Ao3APCx 7BwodfYbnQdyf8v96LgI9LQt8571kqbgrM1eCQ90862ZT4ncpmasiBqObBPIZBuWJGse pWQWa0SKcjK52oxNmZG5CY44CU+87z1nPVLgxeMcrBFDW6eUlqtWMKnhXr9C5d8aZ7J0 0raw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=eZg2XLH1NHBQ2/38DmwmZR58KK7aQy+03e1hk0T/aU8=; b=Ncze/bFVXQZ/OlQo4rqG4OiDfdA64bNxZUv9TtQOhBKZcBRdYcB5/zhLBSJDFhppwf HBXHkQbUcRmTy+6Rtz/0AvKT8+CCkXxA7j9iXgsb+o9hYQqdRKdgAnNsat85iNxLfqDo yQiFbmrFw27gPYApOyR/9qo97dkvABeplCPkma1VcL9VGVL/aD1w+68Oq2aWSymsUbk3 /bG8ivCVBiVVrBVScTZj40vbV9vke1bGDiG6V38PrIO9laL6mi6n0kdAJe3pEu2wkFBs DMfX549pBF97fBKujhexxVHJkimAofjChXPq9nJUyjBj9tc871jefobT8qNjLS03o4tM j6lA== X-Gm-Message-State: APjAAAUJe7/axdcS6Khc/xUvs5MWjsUsn8dWDhQBexhdDLg0pnYr5Ept xojzn1CuI81NK/kPZqVLLDs= X-Received: by 2002:a1c:a909:: with SMTP id s9mr80151705wme.20.1564080275478; Thu, 25 Jul 2019 11:44:35 -0700 (PDT) Received: from [192.168.1.19] (bdr31.neoplus.adsl.tpnet.pl. [83.28.3.31]) by smtp.gmail.com with ESMTPSA id u186sm85701772wmu.26.2019.07.25.11.44.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jul 2019 11:44:34 -0700 (PDT) Subject: Re: linux-next: build failure after merge of the leds tree To: Stephen Rothwell Cc: Linux Next Mailing List , Linux Kernel Mailing List , Bartosz Golaszewski , Lee Jones References: <20190725123126.725c77c8@canb.auug.org.au> From: Jacek Anaszewski Openpgp: preference=signencrypt Autocrypt: addr=jacek.anaszewski@gmail.com; prefer-encrypt=mutual; keydata= mQINBFWjfaEBEADd66EQbd6yd8YjG0kbEDT2QIkx8C7BqMXR8AdmA1OMApbfSvEZFT1D/ECR eWFBS8XtApKQx1xAs1j5z70k3zebk2eeNs5ahxi6vM4Qh89vBM46biSKeeX5fLcv7asmGb/a FnHPAfQaKFyG/Bj9V+//ef67hpjJWR3s74C6LZCFLcbZM0z/wTH+baA5Jwcnqr4h/ygosvhP X3gkRzJLSFYekmEv+WHieeKXLrJdsUPUvPJTZtvi3ELUxHNOZwX2oRJStWpmL2QGMwPokRNQ 29GvnueQdQrIl2ylhul6TSrClMrKZqOajDFng7TLgvNfyVZE8WQwmrkTrdzBLfu3kScjE14Q Volq8OtQpTsw5570D4plVKh2ahlhrwXdneSot0STk9Dh1grEB/Jfw8dknvqkdjALUrrM45eF FM4FSMxIlNV8WxueHDss9vXRbCUxzGw37Ck9JWYo0EpcpcvwPf33yntYCbnt+RQRjv7vy3w5 osVwRR4hpbL/fWt1AnZ+RvbP4kYSptOCPQ+Pp1tCw16BOaPjtlqSTcrlD2fo2IbaB5D21SUa IsdZ/XkD+V2S9jCrN1yyK2iKgxtDoUkWiqlfRgH2Ep1tZtb4NLF/S0oCr7rNLO7WbqLZQh1q ShfZR16h7YW//1/NFwnyCVaG1CP/L/io719dPWgEd/sVSKT2TwARAQABtC1KYWNlayBBbmFz emV3c2tpIDxqYWNlay5hbmFzemV3c2tpQ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0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190725123126.725c77c8@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/25/19 4:31 AM, Stephen Rothwell wrote: > Hi all, > > After merging the leds tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/leds/leds-max77650.c: In function 'max77650_led_probe': > drivers/leds/leds-max77650.c:121:8: error: implicit declaration of function 'devm_of_led_classdev_register'; did you mean 'devm_led_classdev_register'? [-Werror=implicit-function-declaration] > rv = devm_of_led_classdev_register(dev, child, &led->cdev); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > devm_led_classdev_register > > Caused by commit > > 4eba5b82096e ("leds: class: Improve LED and LED flash class registration API") > > interacting with commit > > 5be102eb161a ("leds: max77650: Add LEDs support") > > I have used the leds tree from next-20190724 for today. > I forgot about this driver jumping in lately. But here is the fixup and the rationale: devm_of_led_classdev_register() API has been useless from the beginning, since it was just an initial portion of work aiming at adding some generic DT parser. The actual parser had not been added up to this commit which also switches the API: devm_of_led_classdev_register(struct device *parent, struct device_node *np, struct led_classdev *led_cdev); to: devm_led_classdev_register_ext(struct device *parent, struct led_classdev *led_cdev, struct led_init_data *init_data) To not break the bisectibility The remaining users of devm_of_led_classdev_register are being fixed by this commit to use the wrapper: +#define devm_led_classdev_register(parent, led_cdev) \ + devm_led_classdev_register_ext(parent, led_cdev, NULL) leds-max77650.c is the one that was omitted, so I've just applied the following fix to this commit: diff --git a/drivers/leds/leds-max77650.c b/drivers/leds/leds-max77650.c index 04738324b3e6..5a14f9775b0e 100644 --- a/drivers/leds/leds-max77650.c +++ b/drivers/leds/leds-max77650.c @@ -118,7 +118,7 @@ static int max77650_led_probe(struct platform_device *pdev) of_property_read_string(child, "linux,default-trigger", &led->cdev.default_trigger); - rv = devm_of_led_classdev_register(dev, child, &led->cdev); + rv = devm_led_classdev_register(dev, &led->cdev); if (rv) goto err_node_put; and melded it with the original one to not break the bisect. If you have any doubts please let me know. Best regards, Jacek Anaszewski