Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1410758imw; Tue, 5 Jul 2022 09:00:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1scHTTSAGiYDUXOQAySeA/8cF3hgtLWR7QoGR/TbeYI3mndoWI96rqbvIgPiNdQUMXl5Jj4 X-Received: by 2002:a05:6402:1941:b0:435:5972:7811 with SMTP id f1-20020a056402194100b0043559727811mr47285414edz.234.1657036841395; Tue, 05 Jul 2022 09:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657036841; cv=none; d=google.com; s=arc-20160816; b=I1MXAA3jqNFZ8RSsyVHfKtjUqIuh7J00asdjcyYM86EZcz/4HFsFL1J+spTE1SlgIJ 8/Tl8467b7uRxwJphONR4ptSoz3Iq0lIWgEO6XsA3Wl0KfSBgxnCc9Tt76dxRx/eYuy1 z7xg2CBxd5tCntD+YXFH/HgyAp8LJWkwX2aOnFmPbQvOutRIEN1FCmDElzg61BTSvwOR YgIFQroPItoXw1h99hkJTsPy/CbnDwJoJ2yHS4qu7PTQaEZq3CczghoiMgrb0jJFliMT gIqVJDp85AA+MBSe7S0O/i2T+j9svDJlxaak4f+vjmK6DLtWCUPIC7BJDk+Gvso1g5Ws Gswg== 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=fdWsuH5iWeZPfROujivZGH/Cy5bmhPrXtMLFLUwX49M=; b=pVxE5oSbirEpJ+mE8IioFmfAYjRkqUs6KzFNBm6TFdH8dRvLRszpdyVkq2ONm3YcFI X5FKwbAULmg6OQHR4ahZspGsEIj0rs6t1IRC2YEtcDAjP+po8hhivHUAvcbENIJo+yyg CjYo2CbF6NUyB9rQJYShir3GEJS5fxkRwIeEui3UgmCBFtvCBpnIP1Z/k5ddRmEiMZl8 3Gh1CjR5fwLSX5LqY/PVuKHVnDS8lE518b+d/Tp1k/uYG0gPZbPcpC0CxVg7Dh/oi4p4 75TJ6pAjo4tFEWfN0QFaBMiLqccxIjvDjpdbXKIii1hZtUfTHKaf30OweEa5aMdsxEXz PNMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PxFjmDvc; 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 u23-20020a1709060b1700b00722f74fff57si15236738ejg.313.2022.07.05.09.00.16; Tue, 05 Jul 2022 09:00:41 -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=PxFjmDvc; 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 S229995AbiGEPQX (ORCPT + 99 others); Tue, 5 Jul 2022 11:16:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiGEPQV (ORCPT ); Tue, 5 Jul 2022 11:16:21 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8879C165B5 for ; Tue, 5 Jul 2022 08:16:20 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id li14so285966ejb.2 for ; Tue, 05 Jul 2022 08:16:20 -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:content-transfer-encoding; bh=fdWsuH5iWeZPfROujivZGH/Cy5bmhPrXtMLFLUwX49M=; b=PxFjmDvc5PYKzenoLJAFdaUHY081Hi2HUvSiiBEZOQ28gnVnyWAnd34JfJWow6qdHR pEpuNXXGz8Q7EtExPHAZSMueQV16IbExfYmGJer90err9ileogEQne7e5MVpHHJZAa6R E20drhgKycenzCpyfcq/00tSbqqV1Jukhco/lX3x3x7ElS8NmzjeTvxCFBrWISZ4h5Y4 AmuVHwhImlotcTmOogt7VQITuIjDx9WViEwaCq0VFJz4GBjWLQ9W0sqW7GzC1xyxLX8g Ef6pliikCB+8Svqy7+0RwqyFIT6dIBOuRspmrBuj5Bcp/IXqpoRZPu6Kwg05ce9rizPR DcUA== 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:content-transfer-encoding; bh=fdWsuH5iWeZPfROujivZGH/Cy5bmhPrXtMLFLUwX49M=; b=VROhpbA30+x7h6RWSHHQ06gktZz81LyCYQBncnTeYLWK0Lxx1fHwIIV4Jzaga2Q++O dmn9Il5iQuGKBoHtj2FPJRWbC3ApxBgxHzU+DJwqzHU1TYUfU+1IbOXkOf+YL2BT9bY2 Y2R7tTOmmxXmC8M0RyCLmOc5fsl81z9njadRZEtgNq0lRlEaXOsX/8B0hd28+NNwe0iw hO/2hdpxnvzHC6G+0BVLmpZvzafG6JeQjVae/19D21r3yiJl1FhGC7NSfmUBqjtEdRsJ RzBHlWzVEqDnYJ8ITO0xaYtCZgXnRVVAKCLDBAMRb+Koo0uCf3tKBubCuIaw8vFUPsyd Y9wA== X-Gm-Message-State: AJIora8vC6xOlWVZ5FMa/KxYjRoEUSHNyGKfo1nadeL+qZXhNeuF7Ak3 mLHcR4kCETgCUjHf1WP2rSO0egkKmX2qi8aFPgU= X-Received: by 2002:a17:906:dc93:b0:726:a75b:f60f with SMTP id cs19-20020a170906dc9300b00726a75bf60fmr33930346ejc.564.1657034179094; Tue, 05 Jul 2022 08:16:19 -0700 (PDT) MIME-Version: 1.0 References: <20220630185005.908140-1-mairacanal@riseup.net> In-Reply-To: <20220630185005.908140-1-mairacanal@riseup.net> From: Alex Deucher Date: Tue, 5 Jul 2022 11:16:07 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Remove return value of Calculate256BBlockSizes To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , Christian Koenig , xinhui pan , David Airlie , Daniel Vetter , Maling list - DRI developers , amd-gfx list , LKML 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, Jun 30, 2022 at 2:50 PM Ma=C3=ADra Canal wr= ote: > > The function Calculate256BBlockSizes always returns true, regardless of > the parameters. As any file checks the return of the function, this > commit changes the return value to void. > > Signed-off-by: Ma=C3=ADra Canal > --- > drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c | 3 +-- > drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h | 2 +- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c b/driv= ers/gpu/drm/amd/display/dc/dml/display_mode_vba.c > index 2676710a5f2b..ed23c7c79d86 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c > @@ -957,7 +957,7 @@ static void recalculate_params( > } > } > > -bool Calculate256BBlockSizes( > +void Calculate256BBlockSizes( > enum source_format_class SourcePixelFormat, > enum dm_swizzle_mode SurfaceTiling, > unsigned int BytePerPixelY, > @@ -995,7 +995,6 @@ bool Calculate256BBlockSizes( > *BlockWidth256BytesY =3D 256 / BytePerPixelY / *BlockHeig= ht256BytesY; > *BlockWidth256BytesC =3D 256 / BytePerPixelC / *BlockHeig= ht256BytesC; > } > - return true; > } > > bool CalculateMinAndMaxPrefetchMode( > diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h b/driv= ers/gpu/drm/amd/display/dc/dml/display_mode_vba.h > index 10ff536ef2a4..25a9a606ab6f 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h > +++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h > @@ -169,7 +169,7 @@ bool get_is_phantom_pipe(struct display_mode_lib *mod= e_lib, > unsigned int pipe_idx); > void PixelClockAdjustmentForProgressiveToInterlaceUnit(struct display_mo= de_lib *mode_lib); > > -bool Calculate256BBlockSizes( > +void Calculate256BBlockSizes( > enum source_format_class SourcePixelFormat, > enum dm_swizzle_mode SurfaceTiling, > unsigned int BytePerPixelY, > -- > 2.36.1 >