Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3937790pxb; Tue, 7 Sep 2021 10:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI3a4r5TkDq3Av5IgHhIKMNOLjNfExC15kkpddXaR7QAV1Fr7O5a4TpETUeerXqUHoYXeF X-Received: by 2002:a17:906:8684:: with SMTP id g4mr19584128ejx.262.1631036742087; Tue, 07 Sep 2021 10:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631036742; cv=none; d=google.com; s=arc-20160816; b=hy4xpppNLm+GHO5QfA8Ex3aNqgNLJSNCwze4XFRcijzwftX7ale+2xhxbBHH8HlHYV b4+NicUvOKQB82pKAEmvIUMMUKIcCnuCeXlvMLhFptYg10iKmohEPQk+RdwwsOXUsIgn OtJOb6Vv7PvzHVxPUw3KTg67S/CrIxCfkfykutVTNljN03ulsf9EWzgBqEOXoOILclbk vn6i9drh1ypdz0ku51Qs7QBwqRSjG6UMYweXoOkUVzUws3tn9y5koKjMGUcGU56akZtH h4IBjQ2pEvIgGn2LKwjrTDyLVKclB5JGhTvhmr+T8OrFDqE2WernorGvOKqg1M1Ho2AL U4Fg== 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=kK/sEOfN/pZIuqO14/lsd4LIY43xYqn1JYhVweF1vGI=; b=HwuJLyj7dOvs4HHoQ2WnZp6+o5hdpHA177QB33uxZWd1fF/wt+TaB3M3BSvZaerWuV M5pAMfl8l0XBml0/KYFrqYgDkG+9mUm3o2BTEbS6TcVNcdxtSoZTWlUVXkKAmYmOywqM stq4Grjvm1LAI4+8p2RhXbOucV4iWJOl9WBWCPCUDEOVSu+D78laJUrmi/Z2MiLdRVSD kJSDBCO4RsWaDBOVNaTlA/C7dp4HyfBaxYu99INJWmw5ZSbI17jgyfAPTn8q7Nd5QZhY 0sK+dUM1nn2jXEyxbjq5cpHk/1QbPFhvzDbeiL5GHySqRw3bJx4gp0tcutUqLxIAX1em 7STA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Mqfrhoc6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si12478645edd.89.2021.09.07.10.45.17; Tue, 07 Sep 2021 10:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Mqfrhoc6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345598AbhIGRKP (ORCPT + 99 others); Tue, 7 Sep 2021 13:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345398AbhIGRKO (ORCPT ); Tue, 7 Sep 2021 13:10:14 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79ED6C061575 for ; Tue, 7 Sep 2021 10:09:07 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id bi4so13606192oib.9 for ; Tue, 07 Sep 2021 10:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kK/sEOfN/pZIuqO14/lsd4LIY43xYqn1JYhVweF1vGI=; b=Mqfrhoc6dDyOOKYKg8JmzfkKcP7bC2XDcIAejCqjWUuHwRw32QFPLrMh3AFntRPgNY sQpyvXh2xR7YXesIdHdWl7wByP72cRua98xOmS/suC6DwFsymUUPDE5Ont6H5yR15CYq aXKPiSwBsyc/aLhumurGupVHGy9Hpt0/8U2WsXbB2bUHx2ID3NHDQafzyYL5uEXLP1By EcjHQqazagwCMzgdV/pHNhrL9s7wd7Q12U4Kr1cfAYlfSJrXHrpoFQb4J71TsR4UYUqE /hsenOoFDa43Qe2TSjEXj0WgAPcTJzAfdwj7Fcm/lZH9seotoMFe0NJM9Z325Hq8RISN snrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kK/sEOfN/pZIuqO14/lsd4LIY43xYqn1JYhVweF1vGI=; b=fyJCZwJ6DwROlrdbL4kVyHHk0e27+rcVe+ECMnAN/Kh5BB8/0XU+htO0g6eWf74vwX hcYk8fmyQsZOVmCefj47YzRa52tA1vC0KE3gwiBXWeAreqEeN5fKnkBNXCG4e9AAtq7c LCtEBAoAAKMlgPIPiORNzKtpMqiglpPe6bwfiH406d1v3GAsBFG5q9kAO4YBiypntGuM uXs564HV2DaSBEeWh0j9NT0NHyMuJj+hqs+CoBmoWwnsABLBXXHX0qWFWBE6WDBQXYf3 LQHolrkw55bmHP0QobiVE7A8eu2xF7DkkK51mjBFzI/WwYafUW7a7LagFOrmcTgzvvCa sVGQ== X-Gm-Message-State: AOAM533045zjuuO5XbA5w2nar46ghbAj8Yw4DzfszmttknwQwfhCr9E5 DrTAV5FdeSfNl81+kwHT6VERG/J/nXA9wlhBVTx+IgMw X-Received: by 2002:a05:6808:483:: with SMTP id z3mr3634257oid.5.1631034546918; Tue, 07 Sep 2021 10:09:06 -0700 (PDT) MIME-Version: 1.0 References: <1630921347-122646-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1630921347-122646-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Tue, 7 Sep 2021 13:08:56 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: make configure_lttpr_mode_transparent and configure_lttpr_mode_non_transparent static To: Jiapeng Chong Cc: "Deucher, Alexander" , Christian Koenig , xinhui pan , Dave Airlie , Daniel Vetter , amd-gfx list , Maling list - DRI developers , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Mon, Sep 6, 2021 at 5:42 AM Jiapeng Chong wrote: > > From: chongjiapeng > > This symbols is not used outside of dc_link_dp.c, so marks it static. > > Fix the following sparse warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1766:16: > warning: symbol 'configure_lttpr_mode_non_transparent' was not declared. > Should it be static? > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1755:16: > warning: symbol 'configure_lttpr_mode_transparent' was not declared. > Should it be static? > > Reported-by: Abaci Robot > Signed-off-by: chongjiapeng > --- > drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > index a666401..4e2cf8f 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > @@ -1752,7 +1752,7 @@ uint8_t dp_convert_to_count(uint8_t lttpr_repeater_count) > return 0; // invalid value > } > > -enum dc_status configure_lttpr_mode_transparent(struct dc_link *link) > +static enum dc_status configure_lttpr_mode_transparent(struct dc_link *link) > { > uint8_t repeater_mode = DP_PHY_REPEATER_MODE_TRANSPARENT; > > @@ -1763,7 +1763,7 @@ enum dc_status configure_lttpr_mode_transparent(struct dc_link *link) > sizeof(repeater_mode)); > } > > -enum dc_status configure_lttpr_mode_non_transparent( > +static enum dc_status configure_lttpr_mode_non_transparent( > struct dc_link *link, > const struct link_training_settings *lt_settings) > { > -- > 1.8.3.1 >