Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1863181rwb; Fri, 19 Aug 2022 10:38:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR6DVYk3yKHBJriwus+EMSpAjAerXWTu3t3/ziTyT+uOra7qmodMABzDa2tJU8sMEABLFV8m X-Received: by 2002:a17:90b:4cc5:b0:1f5:395:6c71 with SMTP id nd5-20020a17090b4cc500b001f503956c71mr15420274pjb.132.1660930686192; Fri, 19 Aug 2022 10:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930686; cv=none; d=google.com; s=arc-20160816; b=skaWBmTpwRrS+BR/O8F9Z1b7oVtrx2F7DRULMLyHt0LV63WPhCbCo5YI9/j68OLosp tbd7Dt1B/HDWyk1XTY5A5dBM/6dSvnAovHkcL0tcre51TDahCYgJT/fZsZFMI9b7XZz3 CPZaBNlfW54QIOsYpMTPKDnIW1xRQ9h8HpdWRI4xL50TDNJPjfnXZn3eXuFKNMRmowHo d6WYN0voJwMeRBsOa1wR707V15qOrK1ex7Vnhx3R48M+9eSRVhv2AUK0c1cmdqXcPf/j A22dZN51hRgRRful1LC/V6A8vS0poTQhXGoXgjlZM2tQm5+QAbLA0mh0xONny2TfqJ8O Qa8w== 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=v74dd6HYD0i7hENs14lzGrojrLKHvAvTubOc2U5IsPs=; b=i8vvGizR79KTFZVQ0qmMj7o+MeuZk6v4jLhdo0gwMmrPVY2IQ1u7PAYjZtL8aJ+GIQ VRf/PKVo/A5p4IDHvkgHPme4Tg6kj/jXgIOPe7YD+HJbVfvwbhfZeN67uZAvEF+HNLXA TnWxivjDwICbaBU6m9cOe2CG/Nva/HeqWox8U8J1bqwFKgcFS8HY4dqgfDlI0lUcsnAT 5WL+F72cL8am76yu0YN6UNk4UgZ1pYhYHG+Au6PW8ImbrEr0vOxXz0jKSzH2lAJ5FqMA CYLDeSkEm83wQUs16Bm6xS7faLH67chnmNMQBOSMkYuAcLUbhmo99MVTjRZBY93sfQ6N ffJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UJPFKMOL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a170902d50100b00158bfb59d03si1911891plg.382.2022.08.19.10.37.55; Fri, 19 Aug 2022 10:38:06 -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=@gmail.com header.s=20210112 header.b=UJPFKMOL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351006AbiHSQCy (ORCPT + 99 others); Fri, 19 Aug 2022 12:02:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350940AbiHSQAA (ORCPT ); Fri, 19 Aug 2022 12:00:00 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B46EB108FB0 for ; Fri, 19 Aug 2022 08:52:16 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-11cb3c811d9so3995856fac.1 for ; Fri, 19 Aug 2022 08:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=v74dd6HYD0i7hENs14lzGrojrLKHvAvTubOc2U5IsPs=; b=UJPFKMOL8xqH7+706gXdMjNwiOmwm0OztJOlHe+F6McBtwkJ7gGGHN8/BFGT3t4Vvd 8u1qK3fjGxAmeyIXDE3lj4eC+MqY12P1OAbPgM/M4tWBy0nDlESQgpsZfiMzDPL/Q5fk HXCPxiIesYJNUn+LBKujfhwZsiQQYs3DqciNC85MyU/B2Dp/UND+hBwfqYnE5CXfXEG7 6UDn/27+5DEqKozrfhkaHeqOl7eB3DbjQY2ysUVvf7LsHJ9kUO68fbnh3KwwJWOH6zlu tEYqXNSc8RhmL5MKuo36N8EJbM/D1A9uXaJyqk6fFRGgQVJmcyDDxsTmog7gTD/Dci27 meVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=v74dd6HYD0i7hENs14lzGrojrLKHvAvTubOc2U5IsPs=; b=1+Xg5mRSmdI9k78Zu4Sm1W/eZOHyBHdQN75L/U4Mx0Smzg5DaOJNuJglX+ZjAOlXbq wDOzTLhxfmc4zk2EUiqi7pIuqF/h4iOBn1NyG/SpbGEfP8kyAK58F0DRXXSaEv1UTMU2 pR9olQcLkh5a5EIU0RiK+SgmlYKyQenMmLBDFoohLZH097IFuugcV7jNE69YoEbBOhkt h9vbDFwekmgL+jNrQIfwsb/Y5p2EAgYfaH5TFme26D+ftuicJqUWVURfG/p4qiywoXmJ eEaeJNfkoP/9Wubg2WVI4kNpPoeNFAAaDm6DzdW3iDAmI7Zz95f02vHaxFUl7WMyJchh YuMg== X-Gm-Message-State: ACgBeo0E09wpara/kh9mIGOgyYBQf7ZoRXPAjipJGRCGihl/WhlW4MSl Tc6Jn4nJnpVfiuDuR22zTpQe3zrO/YSxGZJdw/g= X-Received: by 2002:a05:6870:3398:b0:113:7f43:d0e9 with SMTP id w24-20020a056870339800b001137f43d0e9mr4091303oae.33.1660924332966; Fri, 19 Aug 2022 08:52:12 -0700 (PDT) MIME-Version: 1.0 References: <20220818132730.399334-1-mairacanal@riseup.net> In-Reply-To: <20220818132730.399334-1-mairacanal@riseup.net> From: Alex Deucher Date: Fri, 19 Aug 2022 11:52:01 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Include missing header To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , christian.koenig@amd.com, Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , kernel test robot , Magali Lemes , tales.aparecida@gmail.com, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, mwen@igalia.com, dri-devel@lists.freedesktop.org, isabbasso@riseup.net, andrealmeid@riseup.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Applied. Thanks! Alex On Thu, Aug 18, 2022 at 9:28 AM Ma=C3=ADra Canal wr= ote: > > The file amdgpu_dm_plane.c missed the header amdgpu_dm_plane.h, which > resulted on the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1046:5: > warning: no previous prototype for 'fill_dc_scaling_info' > [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1222:6: > warning: no previous prototype for 'handle_cursor_update' > [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:152:6: > warning: no previous prototype for 'modifier_has_dcc' > [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1576:5: > warning: no previous prototype for 'amdgpu_dm_plane_init' > [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:157:10: > warning: no previous prototype for 'modifier_gfx9_swizzle_mode' > [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:752:5: > warning: no previous prototype for 'fill_plane_buffer_attributes' > [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:83:31: > warning: no previous prototype for 'amd_get_format_info' > [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:88:6: > warning: no previous prototype for 'fill_blending_from_plane_state' > [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:992:5: > warning: no previous prototype for 'dm_plane_helper_check_state' > [-Wmissing-prototypes] > > Therefore, include the missing header on the file and turn global functio= ns > that are not used outside of the file into static functions. > > Fixes: 5d945cbcd4b1 ("drm/amd/display: Create a file dedicated to planes"= ) > Reported-by: kernel test robot > Signed-off-by: Ma=C3=ADra Canal > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 5 +++-- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.h | 8 -------- > 2 files changed, 3 insertions(+), 10 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c b/dr= ivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c > index b841b8b0a9d8..e022be4df290 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c > @@ -34,6 +34,7 @@ > #include "dal_asic_id.h" > #include "amdgpu_display.h" > #include "amdgpu_dm_trace.h" > +#include "amdgpu_dm_plane.h" > #include "gc/gc_11_0_0_offset.h" > #include "gc/gc_11_0_0_sh_mask.h" > > @@ -149,12 +150,12 @@ static void add_modifier(uint64_t **mods, uint64_t = *size, uint64_t *cap, uint64_ > *size +=3D 1; > } > > -bool modifier_has_dcc(uint64_t modifier) > +static bool modifier_has_dcc(uint64_t modifier) > { > return IS_AMD_FMT_MOD(modifier) && AMD_FMT_MOD_GET(DCC, modifier)= ; > } > > -unsigned modifier_gfx9_swizzle_mode(uint64_t modifier) > +static unsigned modifier_gfx9_swizzle_mode(uint64_t modifier) > { > if (modifier =3D=3D DRM_FORMAT_MOD_LINEAR) > return 0; > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.h b/dr= ivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.h > index 95168c2cfa6f..286981a2dd40 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.h > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.h > @@ -36,17 +36,9 @@ int fill_dc_scaling_info(struct amdgpu_device *adev, > const struct drm_plane_state *state, > struct dc_scaling_info *scaling_info); > > -void get_min_max_dc_plane_scaling(struct drm_device *dev, > - struct drm_framebuffer *fb, > - int *min_downscale, int *max_upscale); > - > int dm_plane_helper_check_state(struct drm_plane_state *state, > struct drm_crtc_state *new_crtc_state); > > -bool modifier_has_dcc(uint64_t modifier); > - > -unsigned int modifier_gfx9_swizzle_mode(uint64_t modifier); > - > int fill_plane_buffer_attributes(struct amdgpu_device *adev, > const struct amdgpu_framebuffer *afb, > const enum surface_pixel_format format, > -- > 2.37.2 >