Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3309442rwb; Sun, 25 Sep 2022 04:22:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lUSzBAMe+RSpHNNq2W/iBvWt3a8j47pSVE49TgjqTBD9SV+jZYRUjtQXGfEx6PezXCw13 X-Received: by 2002:a17:907:7609:b0:770:8665:dfd4 with SMTP id jx9-20020a170907760900b007708665dfd4mr13375453ejc.494.1664104977221; Sun, 25 Sep 2022 04:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664104977; cv=none; d=google.com; s=arc-20160816; b=uKfgjBUMqd1pH8yLRKtYk8gtpm/at4KDYNLygg1W2JFU6CF0AWB3pnsBDG6oF2BlKM Pi0/MEsLQ4S0S1TUT+DAXAZ3u6YdR+3/XH3EDDO93DmBYJIkk0Q9M4pXQ++aJrxriKUr Jh/r1/0+zXulZlpTSpaYstJWearmOIBoOmQy+VqSgxAgqqkrcifwb2pQTYpkeZRPkECp CyvXrqOajEYDLAvETjFRYV+jpkud8CQ/6g3FIKaD7synv8as94aSGvZfQYZhhxSIMYKa /xWXFdyyDERt/787WVQ2G6Ltd3llPkinQJdj6bo/tv0CjuoQyFPT5Nt4O6782v5ZRnsE +2mw== 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=uDXlOcCnqWVWUgzJw189Cg843aHhc9oUfCIALU3BIZk=; b=VdD/GRVjQ+um+a3fA1TH1NbVik4tYNTQTxH20R7GwLQLqaZPCqDszChKd30lCeu4Dj Kfxssra9NF2lXeFIBLQT5nG1B2i+EnatWzssBIBXIR9Dw/1XJ+DFnHvI6B5Bl23Z7d3J W54YIhhWftYsid0ASeJgugYeq2YATPHc5zMqOSik22fz4RvYaDKsyvLccpsK3XNNR8N3 Rira1CTW/HQqbSX+kfJwD+O8boF5IXCtyivD1bUXJALL6YHLW0NxVlx3F4RHEXuOytYD C5HTtkB/wiMWBXR64dhJ9tUxah/M8PPMCyxrou/XZDA5MBuMc8ztHldO5T0F5dLGD5xE /HmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=j77OAg1I; 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 e11-20020a17090658cb00b0078200c8acfesi7746280ejs.46.2022.09.25.04.22.31; Sun, 25 Sep 2022 04:22:57 -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=j77OAg1I; 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 S232494AbiIYLLh (ORCPT + 99 others); Sun, 25 Sep 2022 07:11:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231819AbiIYLLJ (ORCPT ); Sun, 25 Sep 2022 07:11:09 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EEEABCA; Sun, 25 Sep 2022 04:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664104248; bh=q3tgaxmLLwHySr5xYd0o9DohrAeTmn9jyFFga8/esfA=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=j77OAg1IG0TQAu2ML8ZEtQWAbjEUaJxGoPfJo9xGYELQzHQaZs1tbaVHybcylGcUW o/FbH4sr2WD9bBEc9/rdJH4xR/kYKjbSL0qfg+jGh+yL7hK6zyAURTntwNO8LA8Qa2 D8wnRnvXuYP7lSyLV4sjrKzEt9+pUtF1zGScgEmc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.188.118]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MUXpQ-1olFEm07kW-00QU3k; Sun, 25 Sep 2022 13:10:48 +0200 Message-ID: <3cf0085e-3927-9049-8b92-f84b7496d59c@gmx.de> Date: Sun, 25 Sep 2022 13:10:47 +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: tridentfb: Remove the unused function shadowmode_off() 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-2-jiapeng.chong@linux.alibaba.com> From: Helge Deller In-Reply-To: <20220914102301.87981-2-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:RLtbfVmjosx0ENfGiiN4wJvkrUuzWdv/CwRX/7mKg1jgJ8qod8+ PmO+KC2o4lFNjWypMgIELNqyM8ELcw1NCOxzsPjSME3YycJ+UJU7BRsRPlrv/+eBXuowE1q ZhKHcJ5J2MOjZuYFbZkn4ywtpAH7sn/plMSChb03CVHNLGWpSN9+drATUY649HteJWgaQfV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sd8FdGLothhP1DHVWfatpMGSFMN/FpI2LvfoIIsQGneK43buTHiY UZaC9b0qqGgWG5s49/7HBVzPb4EmM7YQXhxsckUy2niaiIElZKHFNt4MuTFWvq1Z+WNaHV1dc Dp3NqKDr17mgCtrofhCaVya5JqMdM6pz1gU0rEyqkbD1GUdlsEla7dSBXAni3vwkH3eOmT9jg 4JqBGmutQP9/j/gLzRFL6EnriJ 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 shadowmode_off() is defined in the tridentfb.c file, but no= t > called elsewhere, so delete this unused function. > > drivers/video/fbdev/tridentfb.c:1131:20: warning: unused function 'shado= wmode_off'. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D2154 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong applied. Thanks, Helge > --- > drivers/video/fbdev/tridentfb.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/video/fbdev/tridentfb.c b/drivers/video/fbdev/tride= ntfb.c > index f9c3b1d38fc2..2154dd5e37bd 100644 > --- a/drivers/video/fbdev/tridentfb.c > +++ b/drivers/video/fbdev/tridentfb.c > @@ -1128,11 +1128,6 @@ static inline void shadowmode_on(struct tridentfb= _par *par) > write3CE(par, CyberControl, read3CE(par, CyberControl) | 0x81); > } > > -static inline void shadowmode_off(struct tridentfb_par *par) > -{ > - write3CE(par, CyberControl, read3CE(par, CyberControl) & 0x7E); > -} > - > /* Set the hardware to the requested video mode */ > static int tridentfb_set_par(struct fb_info *info) > {