Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp125707rdb; Thu, 21 Dec 2023 04:57:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeEbjUUD7aIClAVT0uraOMRFl02Nv61rq5ESEw3nkTcLUVO33tMKmv4KcihrkukaWnuac+ X-Received: by 2002:a05:620a:458f:b0:77d:8946:11c5 with SMTP id bp15-20020a05620a458f00b0077d894611c5mr28531329qkb.7.1703163472092; Thu, 21 Dec 2023 04:57:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703163472; cv=none; d=google.com; s=arc-20160816; b=N7Z7YiKrU/8DCOGyfgR5TEUvmx5dIaZFq7ArC8hlrbD35HkrffWVHz0Em/1YwCxMf/ d9ZPjgY+2/C78trQDTU6tXySSQiy9oyKh5atdpAEPktC3oTtJO8YC9/yX4gJAfRLi7Q4 O+oojGjixdExwvLCXvM57LELMt9dXyVVpS7XeafKRXqSRGCDOZ/dzoTjX+uznViNDPcK tS/nlOxOxKOj2kt5oRzcM29QcBC1CGhACOgWWX+uHgVRDEdpPMtnU97lwR5ykQrQRZ/a Fi7JMznoiENgx3kj+cos2hBOPv8Y7udsodcTV4V7ieRoaMDUj5RpNxPMGKoeiFAxHQ0Q wj1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ksd7oF/E4haxv3TaGc/BYezP6BC7L2MS6EU2J1Z69n4=; fh=pvPpdWM38S1DVxg8O6y5skLuYw1jE2gUzwv95vIGRFo=; b=wr7W8ONYLRUKPiZ8ImOU3p86uGt2lR5IjVX/oUkcOn5UV7+jN++iMnuBuquc/7843k iFmTOkjGrQp68+rKEONEpsyeWbyxwlu7TBI70KLCVuTwK/DUUPx3ZaWASG/2VwfgTniK utX5/mM2+PaC3z8vfN03KudRoLNQGfUTdDX50PJmkCuPpQzqCX69N5PFWNYToTXNy0YD OcGUrEpmmtJmJQxdKkzGWCDGDRJHjPhvVttWzgsmtO44CE3j0tnf/XPkK5lhz+ucdtv4 qgNFOjtZgINYZFAFxhF+SDf3WNUY4csEX+eVBzOlqtMYc2KyfK5a+T65J1gWGaBL1hOu cMGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bAvh3J/7"; spf=pass (google.com: domain of linux-kernel+bounces-8401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s25-20020a05620a031900b007810de926d5si2008734qkm.578.2023.12.21.04.57.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:57:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bAvh3J/7"; spf=pass (google.com: domain of linux-kernel+bounces-8401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D52D01C2599B for ; Thu, 21 Dec 2023 12:57:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C76D976DC2; Thu, 21 Dec 2023 12:51:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bAvh3J/7" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F397176DB1; Thu, 21 Dec 2023 12:51:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A518C433C7; Thu, 21 Dec 2023 12:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703163073; bh=JWkwZTxr1bx7lg4F5uSH+TZQiOtgILUeHxtqIe2ucXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bAvh3J/7x2ifsPC4dkV6Lp1isab009nZA9lCssYwh0oJPG490Ynx9iGLMc03l9cDp 4vYbbm3k3ad+rnoH0qAMMAxWYs1uDYCBz1bzDGpTy36LjlVPkD7MJ5NPInz6RW3CBK Bvj7tzze8Mh6WXfoyJnaRe6LgwxBdTq+Jt6dkU34HjxUGJjNViT7ndrheKot48cXAu 4U8KZbZm1Xh8mX6MM/dlrDMQZ7Tkl1NcWtgE4hZuO8mmkMVl1YPpD921wHJzfBrxYi qTeW5Fi4lUd6oWRDIqQdCqxrzNTNRVZlYu1jgD56mOcAI4ipFcC3kZ413eJpRHeYPH ePsRl7pVNFshA== Date: Thu, 21 Dec 2023 12:51:08 +0000 From: Lee Jones To: Sean Young Cc: Thierry Reding , Stephen Rothwell , Flavio Suligoi , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the pwm tree Message-ID: <20231221125108.GF10102@google.com> References: <20231221165805.0c4771c1@canb.auug.org.au> <20231221100950.GC10102@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, 21 Dec 2023, Sean Young wrote: > On Thu, Dec 21, 2023 at 10:09:50AM +0000, Lee Jones wrote: > > On Thu, 21 Dec 2023, Thierry Reding wrote: > > > > > On Thu, Dec 21, 2023 at 04:58:05PM +1100, Stephen Rothwell wrote: > > > > Hi all, > > > > > > > > After merging the backlight tree, today's linux-next build (x86_64 > > > > allmodconfig) failed like this: > > > > > > > > drivers/video/backlight/mp3309c.c: In function 'mp3309c_bl_update_status': > > > > drivers/video/backlight/mp3309c.c:134:23: error: implicit declaration of function 'pwm_apply_state'; did you mean 'pwm_apply_args'? [-Werror=implicit-function-declaration] > > > > 134 | ret = pwm_apply_state(chip->pwmd, &pwmstate); > > > > | ^~~~~~~~~~~~~~~ > > > > | pwm_apply_args > > > > > > > > Caused by commit > > > > > > > > c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()") > > > > > > > > interacting with commit > > > > > > > > 2e914516a58c ("backlight: mp3309c: Add support for MPS MP3309C") > > > > > > > > from the backlight tree. > > > > > > > > I have appplied the following merge fix patch. > > > > > > > > From: Stephen Rothwell > > > > Date: Thu, 21 Dec 2023 16:13:37 +1100 > > > > Subject: [PATCH] fix up for "backlight: mp3309c: Add support for MPS MP3309C" > > > > > > > > from the backlight tree interacting with commit > > > > > > > > c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()") > > > > > > > > from the pwm tree. > > > > > > > > Signed-off-by: Stephen Rothwell > > > > --- > > > > drivers/video/backlight/mp3309c.c | 4 ++-- > > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/drivers/video/backlight/mp3309c.c b/drivers/video/backlight/mp3309c.c > > > > index 34d71259fac1..b0d9aef6942b 100644 > > > > --- a/drivers/video/backlight/mp3309c.c > > > > +++ b/drivers/video/backlight/mp3309c.c > > > > @@ -131,7 +131,7 @@ static int mp3309c_bl_update_status(struct backlight_device *bl) > > > > chip->pdata->levels[brightness], > > > > chip->pdata->levels[chip->pdata->max_brightness]); > > > > pwmstate.enabled = true; > > > > - ret = pwm_apply_state(chip->pwmd, &pwmstate); > > > > + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate); > > > > if (ret) > > > > return ret; > > > > > > > > @@ -393,7 +393,7 @@ static int mp3309c_probe(struct i2c_client *client) > > > > chip->pdata->default_brightness, > > > > chip->pdata->max_brightness); > > > > pwmstate.enabled = true; > > > > - ret = pwm_apply_state(chip->pwmd, &pwmstate); > > > > + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate); > > > > if (ret) > > > > return dev_err_probe(chip->dev, ret, > > > > "error setting pwm device\n"); > > > > > > Hi Lee, > > > > > > We could exchange stable tags to make this work, but given that people > > > (myself included) are getting into holiday mode I'm inclined to just add > > > a pwm_apply_state() compatibility inline for now and then we can address > > > this in the new year or for the next cycle. What do you think? > > > > Sorry, why is this happening? > > > > I still see support for pwm_apply_state() in -next. > > Not any more: > > $ git grep pwm_apply_state linux-next/master > $ Okay, that's changed since this morning. I think the easiest solution would be to take Stephen's patch. -- Lee Jones [李琼斯]