Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp42206rdb; Thu, 21 Dec 2023 02:10:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IENMRqjVB+L9k7J1qZwZ2Njd2P2Q6N2nZbmHMgxQ28kjZ8vuuj9O+nw5kWRstZKnGWUM3gR X-Received: by 2002:a17:903:2304:b0:1d3:b3b7:5db0 with SMTP id d4-20020a170903230400b001d3b3b75db0mr7936114plh.4.1703153402647; Thu, 21 Dec 2023 02:10:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703153402; cv=none; d=google.com; s=arc-20160816; b=nAb9paf3j+uKdNGuOM4Rly1OO3uUT7/2fYEmMujEPDiNZakCt+bGHYe4zQ2glH8mz6 /EPmh/yDqPw0jux5dx6KDJXgAHAe0Xd+ISIljoDRIaZs2PfNMHW+AawMTXsqjW6XWubF hp//+k4OWyZ7WbiD0k4TXJnXfh4yYUkQgCCf3gw0P9NMPHdFbGeNXlNq21QZ8IsZwkGz vIevZmGQb5il57cW1f+ud+XzdXgWGXQloflJX3XeUjslN/I/NohlNeelbwPNJm9E+x1N IYwGX6q07/eeJOUDXq2uvGk0F4/jfiJNC+OTYx/kBhxS9BtGnn544uJLbLTl6nmHNHeM HxJg== 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=IoXId/TVFbrVxZtyAc6GIuI5J4TpSU7uu8C95Oh1RN4=; fh=UJjn2aBAfNFErKvTKLwovKsXIVbGLrvx7RI3DzSvduA=; b=b8w8wsiy878ozvxCuNZ0VBDwlKijIKr2sUSVJwasPgWUSLq1+SGEmsuc4wbOYp1N1g EgT4nB+Tu2QKUzsIrAXyVrSL8tHTTMOJQhmB9fSnFhumngM32UJ1VMSeybwNCli61ZYi DQhvVj0eS+5qMWaZOd1nBLNRlY7llfAzyXkXgbGjHETCXEtu+4d3Xlm1eD4LSwtVLvRa yFKdDXKRkzllZA7aGICXQfG8xghsiUEhUDy8OsVKbxt6t6ROsmN7zMN3+jqJdimc0Pgl J1xnmo1Wl73RxlZlTy0RLrvsPYvCWk0z8WRUZLVKcKD0vANosvOEMWr04g4Afr+lDDCQ btoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LjlXSPaa; spf=pass (google.com: domain of linux-kernel+bounces-8178-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8178-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e9-20020a170902b78900b001d3e4207386si1224273pls.317.2023.12.21.02.10.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:10:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8178-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LjlXSPaa; spf=pass (google.com: domain of linux-kernel+bounces-8178-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8178-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C87602885F4 for ; Thu, 21 Dec 2023 10:10:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D1AF4F890; Thu, 21 Dec 2023 10:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LjlXSPaa" 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 677954F1EA; Thu, 21 Dec 2023 10:09:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9093DC433C8; Thu, 21 Dec 2023 10:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703153394; bh=N7NdBHvoI6lopb0oPT20Rf7IiUSRTl/3jgxP8jQIg/k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LjlXSPaa80lmtHCVrz4P79WuePRCzybjMuGFdSXTMKDgqo3bubWQ6PR58WYewkAK4 NYUpIEsMbQIQrAKJomMQawoSAZMHUK1vpFF8w59x3MEa6Mp7fuO9ugjbJ0deK/6rup j3O6mx6wvEPp6lRgL65q6hvMY8LH6sz/UP3uge7qYVHgyzIlkjCo9n9JcE0NQ2DvGr PC4qgx45P1XT7lUzb9qlnXyOnK7LWPLSNS/Do6paJgkHcua+/0gZSgbVZokIk7dvB6 +Pgh45hFhOG55CnX4wzz9faW/6fysr+CeZFfvW4HJDP/VdeCRR71KodRtV5rwtfoc4 dbkPQ7QhjGQxw== Date: Thu, 21 Dec 2023 10:09:50 +0000 From: Lee Jones To: Thierry Reding Cc: Sean Young , 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: <20231221100950.GC10102@google.com> References: <20231221165805.0c4771c1@canb.auug.org.au> 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, 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. -- Lee Jones [李琼斯]