Message ID | 20230601213439.3398794-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp627588vqr; Thu, 1 Jun 2023 14:38:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wx6UvQU9tECmRmG/Ng+z/XGQY59gBMUrFubsBC7xvEJcU7LaHgA66KN6sXhMP82SKGbnd X-Received: by 2002:a05:6358:93a5:b0:121:c4a9:aeb2 with SMTP id h37-20020a05635893a500b00121c4a9aeb2mr8093361rwb.28.1685655492233; Thu, 01 Jun 2023 14:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685655492; cv=none; d=google.com; s=arc-20160816; b=zkE6+1JkR0cjkdO6I9fbbllnHbJrnSyXOQhpr3TmCp2N74Ld7SojAotdD/YX9tJOLU J/svkenqFUy9MBALqBscXJ1IljXZ7cuHg7QHbPPCEVRLBaYr0XrJgrNwDe0p/0V3zWWC afWSroCqGSgBZ5Hl3nIhx5r6UUSlcCxtzkXMWB+gzjE34XQ111RB+lhLGQQbg4DADO7t mruFepwIg7Wt2IkPy28UNaqK0X+RO1LQs4uW74REUaSqQH6/wILOVqoaU2G2vcK9Grja sw0Kg6KgpS0dNdqFHnTxay+QFablBd+A36HobDV17ardVtW1y4OddjDROubl3m/7x4VP EAbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=akGjy4ZfZftwiuzQS+yBOX5j0ittyRLo070UvG/3nWE=; b=SjOWb/k4bzPYSnGKUWaEdVAKp3LZ2hmalOSWSNXoQfWlp49iZwSor0SuVUvaWmLcFH HxJTNX6KMz8S60IN5+KR/36onsP1JO50McXdeVZNm39w6DK/a7U3R54asWUWEuTaCzMv FyPRjvCNO1ka+i1gRvKFypmVLW8McDbIaUdrAfjuk+yrZFBA7F9J77vAGGZ/uFqurQCI ADTovJW9Xm+VLmA9xm8QZORBJG6buM/txebftNQQzTu/uBETatvXIT8yaRCHNjVHHkEf utMJPHchTUBTvPFnCnkGhS752uXfCkD1/VTFNAuAY9gQVAVI9OiV0Y5kc5x2TP/qR1j6 /GjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VW0jA7Mw; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o21-20020a17090ac71500b00255d8dda719si1674210pjt.148.2023.06.01.14.37.59; Thu, 01 Jun 2023 14:38:12 -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=@kernel.org header.s=k20201202 header.b=VW0jA7Mw; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232746AbjFAVez (ORCPT <rfc822;limurcpp@gmail.com> + 99 others); Thu, 1 Jun 2023 17:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232986AbjFAVev (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 1 Jun 2023 17:34:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FF7519D; Thu, 1 Jun 2023 14:34:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0641E649ED; Thu, 1 Jun 2023 21:34:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF33EC433EF; Thu, 1 Jun 2023 21:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685655284; bh=AbHfTr5p4zXcglalc0/KHf9eaa46MDixzs0334/nXsk=; h=From:To:Cc:Subject:Date:From; b=VW0jA7Mwu5T2MtFg9L0vQu1b9YVdZekxH9ULe+m0nXatTeu6X8r9m9FiG1BsE+FOl WdZ7GxIsHpuUSnndQ+1LYlfe/nXD5SbyLxtMPQE5d91G+su3YyMruiUFSBSxgCe+Pp cIvF7mNE3Ti4ZHkgj78V0jgXWnM9LcPXckXXESitFhUXzBrh8qEWC6Sg4F5IFfMD8L 3KbQp1gKVzLCMZ22wEOo+ANXEj0SwHIKsN3d9RXq0IcAwFzH5P2h1LIyitVwu99MoP YWwj13wlayXxtVOBkxkM25bHaBNE7EQ/bexf19RG+LA3tDgdxbYiq8uIehYldPm+SI dNCn+CP0KKWIA== From: Arnd Bergmann <arnd@kernel.org> To: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>, Hans de Goede <hdegoede@redhat.com>, Yauhen Kharuzhy <jekhor@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de>, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] leds: cht-wcove: mark cht_wc_leds_brightness_get static Date: Thu, 1 Jun 2023 23:34:33 +0200 Message-Id: <20230601213439.3398794-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767537893360181030?= X-GMAIL-MSGID: =?utf-8?q?1767537893360181030?= |
Series |
leds: cht-wcove: mark cht_wc_leds_brightness_get static
|
|
Commit Message
Arnd Bergmann
June 1, 2023, 9:34 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- drivers/leds/leds-cht-wcove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Arnd, On 6/1/23 23:34, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > 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 <arnd@arndb.de> 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;
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;