Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7737017rwn; Wed, 14 Sep 2022 03:48:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR4GPALH6l4c1s++XJQazUUbQUozS0PH7XKq8+8EMtWlTI3S1deMU4gAgLzEdvpCkeSTSvY3 X-Received: by 2002:a17:906:fe49:b0:73d:70c5:1a52 with SMTP id wz9-20020a170906fe4900b0073d70c51a52mr25556477ejb.469.1663152533725; Wed, 14 Sep 2022 03:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663152533; cv=none; d=google.com; s=arc-20160816; b=PAyNjernWoarltoaWjZ+WhaP1xKFoTHdqOJePOUCGRYKXgUSx8B2aiqDpbF9AZAguC AHRpXVv35KzcAOBERbDwLDPZwcooSdXrPdAt4EwnYTaxmuG9/YxKxTXBqu66lqdvhtWF 6f7KBuPOR+WqPdl9/vj0y+7S/euA3w+/751Fb9UqaN7Q6jA9cLu772IjfhlSjFd3U1W5 Wi0U47iNCcvD4X6ChCU5iQg5OwtX2v9u2AKtvKlyAsrCb+2Y4DVhg2BX19Z0ZHTbNqcC wLLxELemqP/7Be03R+fqLOo5XWEGkBJvO6DG+JQdlXezwu2arwvRuBSX8jjgzKKPYnLJ zfAA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9RMx7WFajCKo9wGxfXek5yynWzWaM2aGvyoffGQ3ykk=; b=YoU5EEi15pOIH7dgYEi1R8NwFQZrJxMZTM8rNHg9ftR0SMLVNo4BQwOxHIM3E2BSHu 9S5iwUeIa2GMC7sJIvJvVoYDl7slxiyTAzrUB5mE8cNhaAkBKqCbiYNE+16qK8+nhzRZ T5h8LpNTNKpin7mTrjTlg1SdbyHIRChrqBbvyxqovY7a7CT75kRbLNRNDB8+b4N8BTU3 4YTLh81V4lEJQpPgdeC5Pb1EqBaA3g+He+nvDyzroLsHN8AYLS0E8cF2313IrHp8SAt3 mDEKEAbegntbifBt62y+WGxsA0r7ckGkKta5BaVnadzKtkjn4hxO/dM9xipQV/7oA3zD mVIw== ARC-Authentication-Results: i=1; mx.google.com; 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=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du8-20020a17090772c800b0077fc66b581esi5229974ejc.688.2022.09.14.03.48.27; Wed, 14 Sep 2022 03:48:53 -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; 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229767AbiINKYD (ORCPT + 99 others); Wed, 14 Sep 2022 06:24:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbiINKX1 (ORCPT ); Wed, 14 Sep 2022 06:23:27 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 813737A749; Wed, 14 Sep 2022 03:23:24 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VPn4krt_1663150996; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPn4krt_1663150996) by smtp.aliyun-inc.com; Wed, 14 Sep 2022 18:23:21 +0800 From: Jiapeng Chong To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] video: fbdev: tridentfb: Remove the unused function shadowmode_off() Date: Wed, 14 Sep 2022 18:23:00 +0800 Message-Id: <20220914102301.87981-2-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220914102301.87981-1-jiapeng.chong@linux.alibaba.com> References: <20220914102301.87981-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 The function shadowmode_off() is defined in the tridentfb.c file, but not called elsewhere, so delete this unused function. drivers/video/fbdev/tridentfb.c:1131:20: warning: unused function 'shadowmode_off'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2154 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/video/fbdev/tridentfb.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/video/fbdev/tridentfb.c b/drivers/video/fbdev/tridentfb.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) { -- 2.20.1.7.g153144c