Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3309664rwb; Sun, 25 Sep 2022 04:23:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5d04h+9Q3QyGV7u5epwbIB9pmtUTbyrioF2qZl+EqPRdHbcUFWrY/ANdnT5DawUjuDdq0X X-Received: by 2002:a05:6402:181:b0:456:692f:d0b3 with SMTP id r1-20020a056402018100b00456692fd0b3mr12086420edv.190.1664104990863; Sun, 25 Sep 2022 04:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664104990; cv=none; d=google.com; s=arc-20160816; b=B4n7jhn2dzVicrL6apkA+e/97Tqr4HOMgmYVdmdrR+xDDXLG1KUmb4HPCnwGZnfvfU 2tnu0zAg8dVLAA0Ba8W67JV4mwl+QJ2LLmCz3LRx1N50ZpVIjeBWDsfrZ7ufE39NJ8s7 fHb68qFjMJ8MyJ6CYGLG2c3QxTc7BC6jmsYhznH7oKDyT9BxHOXofN5YZiLtutOUBKHW WzRX+LaEkNAzByxuuCMbKjNCWPJC3tbmUuZYemFH6+73mL7S2/hGst9k8hcqxdagWSsD U8Nlk/5Ln1j9Y7OzdFkhW/CNHSztBcTUmeDZl4lkMQOLaPnTAXEg5PEp7OBoFAIZhIB5 9j2Q== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xQyEQ5Pgcjoj1Xts7dYopRu1fN/9Ir5v/rb9Yrg8jOg=; b=TUW/u2TJa5hwvn0JuqeBAylZ1QNAiFuSieTvlV2IbfjROyaN28LCfX0JRppRZ/ujDm PW0nq+VtsvETpEHTeAzNOgO5ImMqWDEJYXJ6wePrUVx3vIXl8TXVJc4rxlNIJORtEwBk bjzVGBahwLRkdFhWhCcB+z8qSmnvIT9cBMURZrZAzPaVKObve/M2VE8+BVvk+4yGUL8G 2i0NmW+NYctm3mt4558hcUVWWLlEkYxr5oZmXlUsf0upTv6gsDyjby92PsnPIner6ubv +/AU00bL2pE8LB7fPmzMGC9CfnrJMnQzKsF6EilriQPV4i76SUDITcULRlEgskPkipT8 1miQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=lVxMjC9W; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj1-20020a170906b04100b007803ce9432asi11408316ejb.491.2022.09.25.04.22.45; Sun, 25 Sep 2022 04:23:10 -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=@gmx.net header.s=badeba3b8450 header.b=lVxMjC9W; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232299AbiIYLLY (ORCPT + 99 others); Sun, 25 Sep 2022 07:11:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbiIYLLC (ORCPT ); Sun, 25 Sep 2022 07:11:02 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65BE1237C3; Sun, 25 Sep 2022 04:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664104195; bh=WSEpFFTzAxr0EcxOgi+67U8ODH6/CZQ0Yv1M9TPP0js=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=lVxMjC9WPtBuY5ai82OTPnw4PYPRzcsAKGcH0CGCQxK2sgtrG9eJnrjJzDPZxy0x1 RFZb8SIjhDZ7H6lXHQuq0zo7Pb1V1VyV9t+dhwvoE8pMd1KcCfgA0Vd31UnNcYL/xt vxRPlJWLzZVNaelHLDxZxICP7Yu5z9Gvp3+dnqGM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.188.118]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MXXuB-1okxCO2vB1-00Z0tT; Sun, 25 Sep 2022 13:09:55 +0200 Message-ID: Date: Sun, 25 Sep 2022 13:09:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH] video: fbdev: arkfb: Remove the unused function dac_read_reg() Content-Language: en-US To: Jiapeng Chong Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220914102301.87981-1-jiapeng.chong@linux.alibaba.com> <20220914102301.87981-3-jiapeng.chong@linux.alibaba.com> From: Helge Deller In-Reply-To: <20220914102301.87981-3-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:C63TvgR0x02Kn5A7dmsLiaUjX6yF/lOw2ac5uz2oMvHy8Swwp1y OXMPgTFDPW/rUQ4Iy5anbOveh862N7oc7xDQ78CCJQr53YajKcikIBDl+1AuTl8NsDpJV3G 2Wzf6B344LlWT9Dzb18GX7XuDFopzSN/mzmdrZuZ89RiVV7VbU1ZPik1GkvUqHW+6Tko9Ns 155bS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BGgX8/SqEGZiNZkEGAq KSzv6KpmhkdpbOe4mGrI2KRQfXoSV3ClsjnNzAX1hZEbAkSc56llt9zZVGAcjLTUjovuvMOKZ dsIvuo97iiIQYL1KMgmYU1YY7ai/KKfeG70NIxkqg0CmvedcGdSp6sPpRsKzUQI2j+FvMnGHL JN2PG+hxQHkxsB3GF/xBpgFyxq X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 On 9/14/22 12:23, Jiapeng Chong wrote: > The function dac_read_reg() is defined in the arkfb.c file, but not > called elsewhere, so delete this unused function. > > drivers/video/fbdev/arkfb.c:322:18: warning: unused function 'dac_read_r= eg'. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D2155 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong applied. Thanks, Helge > --- > drivers/video/fbdev/arkfb.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/drivers/video/fbdev/arkfb.c b/drivers/video/fbdev/arkfb.c > index a317d9fe1d67..5f8fec9e5fd4 100644 > --- a/drivers/video/fbdev/arkfb.c > +++ b/drivers/video/fbdev/arkfb.c > @@ -318,14 +318,6 @@ struct dac_info > void *data; > }; > > - > -static inline u8 dac_read_reg(struct dac_info *info, u8 reg) > -{ > - u8 code[2] =3D {reg, 0}; > - info->dac_read_regs(info->data, code, 1); > - return code[1]; > -} > - > static inline void dac_read_regs(struct dac_info *info, u8 *code, int = count) > { > info->dac_read_regs(info->data, code, count);