Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3508393rwb; Tue, 8 Nov 2022 05:29:10 -0800 (PST) X-Google-Smtp-Source: AMsMyM6DSRilEh9q8YhnBKQVZbaKqwlEkGotkgwi24cp8esRjEM4b9fhsZivpb6wmjRx22zWzKZ/ X-Received: by 2002:a17:907:a02:b0:7ac:9a51:3403 with SMTP id bb2-20020a1709070a0200b007ac9a513403mr53940190ejc.220.1667914150317; Tue, 08 Nov 2022 05:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667914150; cv=none; d=google.com; s=arc-20160816; b=xo7VVaYQ6VIPvCEespSsO/TrDTYWFijvUd8crX85IukSbPPm7LxmBOk2mJ9jcZ0YAd 2kPEFxPYAXsj24+dEnHez/wCygJo/6Y7wYxcYridw/mSTvLmurD86yLs2x1wfwV2GyTU 36KZFelP/lkgRbee8ZMlU1s+9PTJTsVZQOt8iSDNzlVhjvO3lSMCgOrwMrLT4fgOWwdK xSP0FXribGygtu7Mxox3Gf3dB5bPQ1dKiV6FuByXDX3my7ScLXOe9jIT4RMBMOqwTIsu 7fDeUpW0le/emDhaLjFc57G4MjOC+fphCLU3K+eLOZr/1tswriML76oh1qIF7C19bYvH ib8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sojKUSuREfykk+D9JSHzONYCemfTYMKELjFcEAjqmzM=; b=tNmHyWsrjLfNl5+LWNpaT+FPgSm9X40uvq/9YP+qcZVSm99NkDyUGSwvv1kdtlOIqO jT8iSmyzWCD5GLroJwGtvPWm3j3Ebkmnfs4ocAq06dCuiBXcGRGkICRrSxDdz7+y5jTg MmitPuZJ2PywmAT2SaH/wo7jeO07URa0zisPIhgLo3ZNerbi684uKnS2AqKs7MtdLe+m g/bHxKzxWMTC6niSyjWH3JWSxMa42apKXvs+8qt2SDwG0lcgcUVG5cITLiv8F79W7qIo KyKC6mtc1WKEw8RmWZ082KP6ia1PmzB1iqFGcQnT890idaOo+1ol55yS46e1NBppU4rp 7SJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=Ij1vlYWV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a056402195400b00461c9edc3a5si12491183edz.77.2022.11.08.05.28.49; Tue, 08 Nov 2022 05:29:10 -0800 (PST) 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=@raspberrypi.com header.s=google header.b=Ij1vlYWV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234233AbiKHMlW (ORCPT + 89 others); Tue, 8 Nov 2022 07:41:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234193AbiKHMlS (ORCPT ); Tue, 8 Nov 2022 07:41:18 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D39AD50F36 for ; Tue, 8 Nov 2022 04:41:16 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id z18so22250679edb.9 for ; Tue, 08 Nov 2022 04:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sojKUSuREfykk+D9JSHzONYCemfTYMKELjFcEAjqmzM=; b=Ij1vlYWVBhi07yZxug2R/KBT6Xnn6j654mq1kNgaxwRQZPUFYN8hPagGk8bQvML0yx AQh+vN+RefHi34G29jho/RLWpHhTtqwAc0s4G+flwSdidGe3FylEQyXxqvcNFaeCXy7/ 5PvTNjWXfkWSJYfXmTNSOdDiW5J+sfrlbkwsIf7qG+9XJNkB/RK+biq06fw1kO2sLUFN HBPGIhsFt24gr5uZg1wgOAKBc4caltkMdBGQQuASjYYr5czSYhj6L1Y6vR8GaKBCwNtD JxWdn0zNR74QhMaRP1t0GkEroAxGvWCJ2+SSL8VLTalIRrXsfFToNXdq7dhPhh3jsiz3 9NMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sojKUSuREfykk+D9JSHzONYCemfTYMKELjFcEAjqmzM=; b=PP7GaKXay0dPjL99m9c2UCpBRSMc0tKeHtzoUKVbMKlTtp4r/mM6UBf4JfNAccMK+f Y6mz/jBi3GHa9MoHTXV1Fz7r4QHErKKv+V9zrygGnDtOBsz5hf/tRFncf937fhaxjCuw 1PM9nacHnSp6xLdX6Prk48ELlqxeEl3fqrvCNHTTxEzl/Af15A6HlH6ldFV5FGcaCloo STALOfnkg/17LYYfxHCTnn/w2iIMon1jd+lNaVPDm7Z6zTNlE39Pq8KKxBhuXemRWy0q 8AIa94kebPqT3Q+VvR+JITMxb1ruTeIU7yIdtJ0d7Z10YJAxMwcrR7QH7TEmuPm9iZry OwIA== X-Gm-Message-State: ACrzQf08iCjrGxKJVtdeCx5qBJyLHfldD2O+JeSWO7QYLsU0iY3AOe3Y N+KpOP4k0d+XD0WOSk5edOYdQxc8tDewZbiTE6Of9Q== X-Received: by 2002:a05:6402:c07:b0:461:87ab:78aa with SMTP id co7-20020a0564020c0700b0046187ab78aamr56337494edb.258.1667911275482; Tue, 08 Nov 2022 04:41:15 -0800 (PST) MIME-Version: 1.0 References: <20221104063652.82789-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20221104063652.82789-1-jiapeng.chong@linux.alibaba.com> From: Dave Stevenson Date: Tue, 8 Nov 2022 12:40:59 +0000 Message-ID: Subject: Re: [PATCH] drm/bridge: sii9234: Remove the unused function sii9234_mode_valid() To: Jiapeng Chong Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, jonas@kwiboo.se, robert.foss@linaro.org, dri-devel@lists.freedesktop.org, Abaci Robot , linux-kernel@vger.kernel.org, jernej.skrabec@gmail.com, Laurent.pinchart@ideasonboard.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Fri, 4 Nov 2022 at 06:37, Jiapeng Chong wrote: > > The function sii9234_mode_valid() is defined in the sii9234.c file, but > not called elsewhere, so remove this unused function. Did you mean bridge_to_sii9234() rather than sii9234_mode_valid() here? sii9234_mode_valid() is referenced in sii9234_bridge_funcs, and it's bridge_to_sii9234 that you've actually removed. Dave > 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 >