Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp287689rwl; Thu, 3 Nov 2022 23:45:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM50EKZ1TxDx1LU0wWvId0PkChtnBx1LSNQuDtezGXpVgT76I3tACQUSlX3elefNSDP5W0ZC X-Received: by 2002:a17:906:9f1b:b0:7ad:c66e:ad7d with SMTP id fy27-20020a1709069f1b00b007adc66ead7dmr26661058ejc.432.1667544358201; Thu, 03 Nov 2022 23:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667544358; cv=none; d=google.com; s=arc-20160816; b=OyPwkeEp0LDyGfsDcAN+B2cZAhdJjn2M47ohdtpkR00l1uHVTU3AxlA2EPCcDuJMZk AkoPLPVbJ3F8xXHgduL7YV+hPTG9e35wFwmd/+HvCqz+h9ZCFn2wDu45bACIDahz4VY3 M+9qsiDhv6TwufyjGB8GEVZExyLldV3+mQhL3Htl98jmn0XtmVLoiSoei6/v7TrfBuoG xya/lURAqT2MZX+rtgNKLned11UW4cSWQLcXbV9O+wWCRUgSV0g5nu9+3TgSPGALrANs 4SYlavPoykryJ7DKHbRMYHA11OLS9WceI1dhJ8vCuIebCipMUxCav0HBEj0T5KePXxIn kTcw== 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; bh=S8BrrLTP+SD9obddz1rLp1c9lGUPxOhVxZ3mFHXQb/E=; b=1CJ6Rnnz/yb3VekHlhmu8qNv2XhCrxFUHDeuWnYSQgC4BV+fjKTA41q54VnLmLLlO1 /UwTJ2G1qcpyiWJ+TjnmeOkdMtAEoPPmh/St+hM4XHQR20RoeFJVEhpu2UpoUFw6cfDE OL6VwjF19HCGOK5BpULT6Rq0eS7CfinnmTCbamq1q1KIjGSrjI8Rt5DagpS+SNygOADh NN0cWtT6X/AjaW6QF7UQAV9kUB+MPwHrwOADJl2LSpFp6/TLZ9SrCL8RnwITzY0vWwUM tjAQ0pzj+b0MnTkpDUuUS83NEjrsqR4jGgGF0+iwLyTBQuBhrGObrCmw/zW5/lB3heXH qArg== 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 hz2-20020a1709072ce200b007ae2b7df929si2652261ejc.72.2022.11.03.23.45.32; Thu, 03 Nov 2022 23:45:58 -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 S230465AbiKDGhK (ORCPT + 95 others); Fri, 4 Nov 2022 02:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbiKDGhH (ORCPT ); Fri, 4 Nov 2022 02:37:07 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1B4A21E18 for ; Thu, 3 Nov 2022 23:37:05 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VTvoKDj_1667543814; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VTvoKDj_1667543814) by smtp.aliyun-inc.com; Fri, 04 Nov 2022 14:37:03 +0800 From: Jiapeng Chong To: andrzej.hajda@intel.com Cc: neil.armstrong@linaro.org, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/bridge: sii9234: Remove the unused function sii9234_mode_valid() Date: Fri, 4 Nov 2022 14:36:52 +0800 Message-Id: <20221104063652.82789-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c 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,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 sii9234_mode_valid() is defined in the sii9234.c file, but not called elsewhere, so remove this unused function. drivers/gpu/drm/bridge/sii9234.c:870:31: warning: unused function 'bridge_to_sii9234'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2735 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/bridge/sii9234.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/sii9234.c b/drivers/gpu/drm/bridge/sii9234.c index 5b3061d4b5c3..62b6bc8ca7af 100644 --- a/drivers/gpu/drm/bridge/sii9234.c +++ b/drivers/gpu/drm/bridge/sii9234.c @@ -867,11 +867,6 @@ static int sii9234_init_resources(struct sii9234 *ctx, return 0; } -static inline struct sii9234 *bridge_to_sii9234(struct drm_bridge *bridge) -{ - return container_of(bridge, struct sii9234, bridge); -} - static enum drm_mode_status sii9234_mode_valid(struct drm_bridge *bridge, const struct drm_display_info *info, const struct drm_display_mode *mode) -- 2.20.1.7.g153144c