Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp615598pxb; Fri, 8 Jan 2021 13:27:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcXnlf69nBMauZLDydoH+k0xk9Xb7ROl4yOz/Ji2rayimWSZWHCYDfdWHnSg2cEEgcuIpH X-Received: by 2002:aa7:d846:: with SMTP id f6mr6542600eds.55.1610141220212; Fri, 08 Jan 2021 13:27:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610141220; cv=none; d=google.com; s=arc-20160816; b=hgpRNNnhMR4ZIQRVbPXmrMC2xhkvHnKzCDAKZQVKaeLYX9yZKW7mAM/+eKwN16juK+ B3QNeXRaN/NQfvTEd6M919X/IA8ZPgxGmxuE+CJXu17tMDqXgDoGybyQBpJDMNI7zHxK knVCUBumu2bZvmyuGoDcqrWByR40/EOu3g2USOEqyUfsKhvgpMBs5jxUyICoXNxe6XyK 1x2iEnacF/CQeYEYBIartThq2ZNgPzVQozLm1XFabSeDK/ztJoPPIvtE19F0+kkm2/FG J1BqOz7wXaR0PW494wijIArVulmS3+jn2NnuF2BHZESu7j0+bqR4jZe8GR86Dptc1jDM o9LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=auD7mbSMX/XpHUok2f7h/lpQb4MboPYfCPmFvkXVnf0=; b=JjlJdxXcuFV3EKYnWtU+8S4EzlJHP9s1fANiUYTMa5RPc0t0RzodnfaCQb2sJC2GGl oa9L4wAG25QoHn+lmPD8ZubTgeQNVb1mEzl/wu4Bf9O5YgaPJTdjcNr3FCmlbrwptZGe xshEM5M1QyPrYXWRcwmPxWfqHnyXcAReLIuVLBoX1WMizp24yvyNiReMFA1M99FfbGim LsZfodWY5BZHjpXrUctrSSoMJ7ZBdFh/80szpzeEurRcIjLiBbwMnVkP9oJTTueP28G/ CDneXuUcAKGh+GUfPDKlvs9YO4yTNgEQvWnUIfZ1RiuXGOwuGOHr09vSCgAKKkyqPEIC zI5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e5eWhLc6; 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 w2si4177965edx.591.2021.01.08.13.26.36; Fri, 08 Jan 2021 13:27:00 -0800 (PST) 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=20161025 header.b=e5eWhLc6; 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 S1727714AbhAHVZa (ORCPT + 99 others); Fri, 8 Jan 2021 16:25:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbhAHVZa (ORCPT ); Fri, 8 Jan 2021 16:25:30 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCD40C061574 for ; Fri, 8 Jan 2021 13:24:49 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id q25so12900758oij.10 for ; Fri, 08 Jan 2021 13:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=auD7mbSMX/XpHUok2f7h/lpQb4MboPYfCPmFvkXVnf0=; b=e5eWhLc6AKzo+0/H5kiPOp8zABjRQimjDbdTgufmBkHLoYKpOZWtnS+/XZKIdwBBsM L1ebh1nosR7hviVAn5L47/g2R8UUnf0R5+PpNkERBfvD4EwD2+vjw2Ty5bUKMJ75viF8 NrXhPG+R7oo4epfnscKqKypjUGSdMHatpqmXa2N4GxP5urZWtsDEexrigFhOGZzd4FSk r2rr/rpPk8FLf2FSuXLfrLEA8yso6yxeTCMWUP99xX576i0E3DOgfHoCsItwaDb8RUUz K06kMlVXPYuNhuPRVcPRn/uJ2yEDKGuP5QQDywgC/sL/pRD4lUBK41KOwVOgD8TsbMfg ueYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=auD7mbSMX/XpHUok2f7h/lpQb4MboPYfCPmFvkXVnf0=; b=RPiAxutMHYnBkuv0/7LZoFY0Tj6WpNDpa5tvB3xXjlI0fBQ/dWgwnMSsPzsZBoh9RH 1aVAL9C7QZdLApaa91XbBvZvhp5AFRdR11GNT+4b9N2IJlm0pySlZkAjE9zn2/iTLZDs Tvjj/pVNeSkbMGEXh/Df4h1wcMGm+K4j0K7nT5pUerE1xC9Xj7Zsavz9gYJfmXTEi1No inoUxNMAN8HxmazcrmLf+RE0KWBNS8Z7xWdTDJTyxThNKrebj5hP47jwEaxuiopWupU8 8bHQarXZ/yq2KhsJ4UD5V2G0JqmDr6dPwZ9nC0nhVcPELO1AG5N8HKE7Ozxd/BBm5dNk BnSw== X-Gm-Message-State: AOAM531HF9EqeKLXPmP0F2V/ZDCIwtrsFwa0UGoFg8KTWO84psylwrdV clnPe+cvFBQYEy+LedaaOnki7TJ5ckCcKlymQaUzUAnp X-Received: by 2002:aca:6202:: with SMTP id w2mr3387318oib.5.1610141089341; Fri, 08 Jan 2021 13:24:49 -0800 (PST) MIME-Version: 1.0 References: <20210108201457.3078600-1-lee.jones@linaro.org> <20210108201457.3078600-38-lee.jones@linaro.org> In-Reply-To: <20210108201457.3078600-38-lee.jones@linaro.org> From: Alex Deucher Date: Fri, 8 Jan 2021 16:24:38 -0500 Message-ID: Subject: Re: [PATCH 37/40] drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions static To: Lee Jones Cc: Leo Li , LKML , amd-gfx list , David Airlie , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 8, 2021 at 3:16 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:342:6: warning= : no previous prototype for =E2=80=98dce_i2c_sw_engine_set_speed=E2=80=99 [= -Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:356:6: warning= : no previous prototype for =E2=80=98dce_i2c_sw_engine_acquire_engine=E2=80= =99 [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:400:6: warning= : no previous prototype for =E2=80=98dce_i2c_sw_engine_submit_channel_reque= st=E2=80=99 [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:443:6: warning= : no previous prototype for =E2=80=98dce_i2c_sw_engine_submit_payload=E2=80= =99 [-Wmissing-prototypes] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c b/drivers/gp= u/drm/amd/display/dc/dce/dce_i2c_sw.c > index 87d8428df6c46..6846afd83701b 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c > +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c > @@ -339,7 +339,7 @@ static bool start_sync_sw( > return false; > } > > -void dce_i2c_sw_engine_set_speed( > +static void dce_i2c_sw_engine_set_speed( > struct dce_i2c_sw *engine, > uint32_t speed) > { > @@ -353,7 +353,7 @@ void dce_i2c_sw_engine_set_speed( > engine->clock_delay =3D 12; > } > > -bool dce_i2c_sw_engine_acquire_engine( > +static bool dce_i2c_sw_engine_acquire_engine( > struct dce_i2c_sw *engine, > struct ddc *ddc) > { > @@ -397,7 +397,7 @@ bool dce_i2c_engine_acquire_sw( > > > > -void dce_i2c_sw_engine_submit_channel_request( > +static void dce_i2c_sw_engine_submit_channel_request( > struct dce_i2c_sw *engine, > struct i2c_request_transaction_data *req) > { > @@ -440,7 +440,8 @@ void dce_i2c_sw_engine_submit_channel_request( > I2C_CHANNEL_OPERATION_SUCCEEDED : > I2C_CHANNEL_OPERATION_FAILED; > } > -bool dce_i2c_sw_engine_submit_payload( > + > +static bool dce_i2c_sw_engine_submit_payload( > struct dce_i2c_sw *engine, > struct i2c_payload *payload, > bool middle_of_transaction) > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel