Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2187535rwd; Fri, 2 Jun 2023 06:12:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pvIgLVNvxj+Hbt0DORUixpD/XAcvFWnxGY9mg1wdSgtUmUcUmm9cG9eUz5dxEXMzwgo4j X-Received: by 2002:a05:6a20:918b:b0:111:1c17:3fc6 with SMTP id v11-20020a056a20918b00b001111c173fc6mr9855917pzd.10.1685711526349; Fri, 02 Jun 2023 06:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685711526; cv=none; d=google.com; s=arc-20160816; b=kdihNyHfis8zxg1vIhVPbEZUm7H0h3bRmTHFq35KPbcu/0MsiAm4FOiz6qa15USibE Gzst2tYTSD5YImPlmoDWTH5L1I0A6eeZBqavG3rfJQkw43tv9w8KtMm+t4PlSZrcyzvF 0pQNw+LDEfmgTZ6od2Tt+7UKY9QU6waiC60MtRabGt81BS36/ORG4FkGJfIYMMao+lD8 2nUxlDOSAlV5Jn0hT8jRaoObhppopU1EZtYuevNxSPCSzciXbUCmwkmKjkF+VRaYxeCj mJ+AM0yWHEa3weGY6o5VEJdDHpDyRRJD2MzP8lWrqnt05IpoGurbyAeHFary0hQgDtTl 6gdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SYQbDxF8HJ9yczCBr5+GXXpcpnhVFKGmC8UmRB4rHvs=; b=O86+ed2B5jIQFqGDD/HDu5V4BM4Icob/xJ+LVKCw5zEM0E6Rtw60HO0ZAZgm75DcfB pO/Gez+hhSJD4J1HAsZguFuP3+HMGyZ1ttVJdiuHgFKqhX8FxrVImbb+ugwUBo+QX4v0 cAVZWyVXoIvakS6QOSRIf32MUf7C3K88wd4zVPzNC6wdXkIE1M7TUzFXxvF9loBayDXd xs7yY8+HJFwqpXiT6Y+ro4Nh34iv8K1TZU0V9Z1O9ZSQXIrjEF0rTMoq4pG9xHYVBcER 9MjuX6kFQFOhNgd/x/iIIv/n+ls9/OXokyk7CDbdWQlgSnBgZowAVzYT9ZlM5Krha74q Uiyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GCJJ8rIE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x126-20020a636384000000b005133c334fe9si948671pgb.847.2023.06.02.06.11.53; Fri, 02 Jun 2023 06:12:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GCJJ8rIE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235253AbjFBNAk (ORCPT + 99 others); Fri, 2 Jun 2023 09:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234366AbjFBNAi (ORCPT ); Fri, 2 Jun 2023 09:00:38 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA391AD for ; Fri, 2 Jun 2023 05:59:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685710792; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SYQbDxF8HJ9yczCBr5+GXXpcpnhVFKGmC8UmRB4rHvs=; b=GCJJ8rIE20Z+Yr7P6/3Ezht3iouMduFDsyGLFSDHOj7CihTUbLGuxOtfkcpD9ZDIIShz0A WsOhjLc9J3blMhIj95/k3Om9iNXuOkFeHswlH0OhPWNWUTkwk6MuBefomwNxGpYw95gS3m 285ZRZCrMJf7m8NzkeTkrGPcqk7wCCE= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-219-mht-Sc-tPXyqHbt3B36diw-1; Fri, 02 Jun 2023 08:59:51 -0400 X-MC-Unique: mht-Sc-tPXyqHbt3B36diw-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-94a355cf318so157684666b.2 for ; Fri, 02 Jun 2023 05:59:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685710790; x=1688302790; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SYQbDxF8HJ9yczCBr5+GXXpcpnhVFKGmC8UmRB4rHvs=; b=ir6UWFwcsD0/pd7VPTKdwmeA+1ePbnmBHoHFY17AKQTYUthjMzxKu8hmEqEVTdd+v9 f2XRlnVPca9p4IBeQ14sdBshSre5B2Fqd9/O+aTFpy6AORqbEZEl9KZ9NVES1gQDmp51 LpdihveHS9WT3JwVfjVFT8tcQ+57btMjbHixliym5XziEj1g62OaYN0EOHV1Z4bHW4vd dp8HJA/DJPHrFrD8CRv0v5ZRs1W61f8xFmXXpKPaViUPvQOhBSM7tE0q/3cG+7DAx0Wq LApclDr6Oa55nCtaXPJmo7Qaz0VGWRuXQ/eCdBxxVmH9fUiyiCAwaS2usdQIPz4AGKwZ b00Q== X-Gm-Message-State: AC+VfDze1kluddu61uqGEHt/0bPPlsPOv7it95qLjYm3gWdBE3YxZfQY 1MFeqoUBd9btvepSc4X5z2cZ7GubHqq5muxctS+yckO22mCBYWGtJMQl+VynnnYm8sbYn+Cuhfw bFCQ19WqU/tYVIlj40Qsd+DN0 X-Received: by 2002:a17:907:ea4:b0:953:37eb:7727 with SMTP id ho36-20020a1709070ea400b0095337eb7727mr11854251ejc.43.1685710790319; Fri, 02 Jun 2023 05:59:50 -0700 (PDT) X-Received: by 2002:a17:907:ea4:b0:953:37eb:7727 with SMTP id ho36-20020a1709070ea400b0095337eb7727mr11854230ejc.43.1685710790074; Fri, 02 Jun 2023 05:59:50 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id t15-20020a1709063e4f00b00965c529f103sm737493eji.86.2023.06.02.05.59.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jun 2023 05:59:49 -0700 (PDT) Message-ID: <880b5b02-3c4c-c104-2eab-22664f13a252@redhat.com> Date: Fri, 2 Jun 2023 14:59:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] leds: cht-wcove: mark cht_wc_leds_brightness_get static To: Arnd Bergmann , Pavel Machek , Lee Jones , Yauhen Kharuzhy Cc: Arnd Bergmann , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230601213439.3398794-1-arnd@kernel.org> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <20230601213439.3398794-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On 6/1/23 23:34, Arnd Bergmann wrote: > From: Arnd Bergmann > > This was apparently made global but is not called from anywhere else: > > drivers/leds/leds-cht-wcove.c:144:21: error: no previous prototype for 'cht_wc_leds_brightness_get' [-Werror=missing-prototypes] > > Fixes: 047da762b9a93 ("leds: Add Intel Cherry Trail Whiskey Cove PMIC LED driver") > Signed-off-by: Arnd Bergmann Thank you for the patch. This is a duplicate fix with these 2 earlier submissions of the same fix: https://lore.kernel.org/linux-leds/20230525183317.129232-1-hdegoede@redhat.com/ https://lore.kernel.org/linux-leds/20230530234748.3641630-1-trix@redhat.com/ Regards, Hans > --- > drivers/leds/leds-cht-wcove.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/leds/leds-cht-wcove.c b/drivers/leds/leds-cht-wcove.c > index 0cfebee989107..0a5c30e5ed5d4 100644 > --- a/drivers/leds/leds-cht-wcove.c > +++ b/drivers/leds/leds-cht-wcove.c > @@ -141,7 +141,7 @@ static int cht_wc_leds_brightness_set(struct led_classdev *cdev, > return ret; > } > > -enum led_brightness cht_wc_leds_brightness_get(struct led_classdev *cdev) > +static enum led_brightness cht_wc_leds_brightness_get(struct led_classdev *cdev) > { > struct cht_wc_led *led = container_of(cdev, struct cht_wc_led, cdev); > unsigned int val;