Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3336316rwb; Sun, 25 Sep 2022 04:55:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7hzxsYDX6xTY9cxQkgnOc1BKwgXH5sm6cC5+dJy7yZauacrQPY4XwMifJdkGhRVLBZEsJE X-Received: by 2002:a17:907:1de0:b0:770:8670:6a6a with SMTP id og32-20020a1709071de000b0077086706a6amr14455314ejc.588.1664106927965; Sun, 25 Sep 2022 04:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664106927; cv=none; d=google.com; s=arc-20160816; b=O1QY0USSeAV+6iQbGNAuFVBHJBnTQjiHb12H9O/EitK5FyjV59JsoflOZjBVZBDBuI xMFCGYn5G8A6nJJ/VLu9jjN2bPAbYb2pdffAwWMILrcHdWAQwcQCZqFRVEFuaXEbvSaQ 7F8uOMouLOM1rw45v3JocGaxPYCMlPGXCczvAOr6QYmHYsB1zCii8aqvAbmruNlZtDjW wDIsf0zCsBPRRPnUntCF+67yZT9ZLNErGKeGCJs4BKtzK81wrQCWyhkN8/xtpbbOrHll jNa/m+7OVqCzBUI/TP77sia4eiJRHleKgOZGCGurL6zWgHaA2WfYHcQZNn/Rm0sU8dHj fKeA== 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=xi1wYKxUFpnfpNWfWy/kb15I9oOW1TKKQVN769eh23w=; b=diPUF2aUc8+LKz4N62Mg6FW84jM6D4qA2S9SRU8om9Ukf3R1S3qqhPbOX3ClfYM8mw 37Sp2DYqtes8QPOF96c3OZKrkuiPokB2i0TyYWfIm42boGmnTgqy2RgB3jnvo5CF5OqM jvBo5tve/VKtcrHRi6XI/CkFh+Hk8dS0trnWXcQQqvureTAOaLCtMtlPhZqww9ThqT5o Pq/wisH5hTovyxcJAjW+Cp8bz/vF10jzQYaO9O0nqVFCmGgbj0l7ivFLoOEZbKwm4Z8n A27JeyI3SujyOBHoPZGD4aG1mcDjRNDugWchfAysh/CrSNr6dIWiIk/T2HC1vZow68I2 PHEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="Q4/Voogb"; 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 hr8-20020a1709073f8800b00781d411a64dsi12033596ejc.427.2022.09.25.04.54.53; Sun, 25 Sep 2022 04:55:27 -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="Q4/Voogb"; 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 S230504AbiIYLLl (ORCPT + 99 others); Sun, 25 Sep 2022 07:11:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232427AbiIYLLc (ORCPT ); Sun, 25 Sep 2022 07:11:32 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A367965E9; Sun, 25 Sep 2022 04:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664104283; bh=YfYGXKfrN/hquVgSeUYxv58IyRMBmaklCAIiUhWqJ1M=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Q4/VoogbKK/ISaRZGbiFojBjEZDNjlSKiGBPPC152HW/EEOZEgAKLocUE30zJHJZf 187r+qpxJRz3TcYWHH4CyxbJF4vdwH6UYq4CL7rhVbnCvLhnYlUjzWKJFt1t+zheOq aG5aMhyowDObzC4CbaBVmdiCh3yh7GHZyBTlXuks= 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 1Mr9Bu-1p08iL0jKg-00oBx1; Sun, 25 Sep 2022 13:11:23 +0200 Message-ID: Date: Sun, 25 Sep 2022 13:11:22 +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: controlfb: Remove the unused function VAR_MATCH() 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> From: Helge Deller In-Reply-To: <20220914102301.87981-1-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:UtXBP5Rqmu9ji5upE9dmWxqntnv3O0B/sajoMVPYMJvb/x3FO7W qtdDFG/9qA/96vMXDY2wGcBJWddykFNszm1UFEoOWqNsOOFP7G4kcPp7iGoMvXYLZTlFZA8 NXJPLu2HGNz2Z4z6984XBi5d4JGrhUtZqYU1+EsKLUkYwn+hwyopIWre0mlu6bAtcRe9XcD Qr628T7/Fo+tYNklQxXqA== X-UI-Out-Filterresults: notjunk:1;V03:K0:x7DJNZCzVwA=:pqV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qLAeGVaAKZc4HzLtCtlhUqx1PB8517GJi9diiaMy +T+kdEf5ubXlZI7AI0N8Qte8PUPCwtiy6ETdqectEyb474qMP8xD2aWV8HnayNVV6jEDjqL3T 6Q31vl6h1kIgJGvuaLu0JlqXOr 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:22, Jiapeng Chong wrote: > The function VAR_MATCH is defined in the controlfb.c file, but not > called elsewhere, so delete this unused function. > > drivers/video/fbdev/controlfb.c:111:19: warning: unused function 'VAR_MA= TCH'. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D2153 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong applied. Thanks, Helge > --- > drivers/video/fbdev/controlfb.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/video/fbdev/controlfb.c b/drivers/video/fbdev/contr= olfb.c > index aba46118b208..6bbcd9fc864e 100644 > --- a/drivers/video/fbdev/controlfb.c > +++ b/drivers/video/fbdev/controlfb.c > @@ -108,13 +108,6 @@ static inline int PAR_EQUAL(struct fb_par_control *= x, struct fb_par_control *y) > return (!DIRTY(cmode) && !DIRTY(xres) && !DIRTY(yres) > && !DIRTY(vxres) && !DIRTY(vyres)); > } > -static inline int VAR_MATCH(struct fb_var_screeninfo *x, struct fb_var_= screeninfo *y) > -{ > - return (!DIRTY(bits_per_pixel) && !DIRTY(xres) > - && !DIRTY(yres) && !DIRTY(xres_virtual) > - && !DIRTY(yres_virtual) > - && !DIRTY_CMAP(red) && !DIRTY_CMAP(green) && !DIRTY_CMAP(blue)); > -} > > struct fb_info_control { > struct fb_info info;