Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp290966iog; Thu, 30 Jun 2022 00:27:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ujGMBqsrK7rv69LoXUKnlqe10onEgjtQA8nn5epfcC3cpEYIpjzCkO3ldkfrfV41Z4D9Fh X-Received: by 2002:a17:906:5343:b0:722:ea54:fe67 with SMTP id j3-20020a170906534300b00722ea54fe67mr7307518ejo.181.1656574075176; Thu, 30 Jun 2022 00:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656574075; cv=none; d=google.com; s=arc-20160816; b=xQ2n5cFWrzTNOGvls1UJeb6HAnYf6AQL02rKVkXq+hGINGuXwnJZH45r0ubLBPvdX0 92ZZ5MoZxJMsqI1jd4TJY7hfqWKerIr5JJ0GbP6CusAjO+awzBine7UW0OtDZdsmqoB3 YWxqejso4n0JzwWds6pDpWhxQJ+gzWZzIQShmIxC56Cv8k7p6SSzKAKvzPyJB59P7F72 wF+/sFU0MSq3Jys249e+TYHAxSKSuHQXqjvFzKa0AeRyuF5FO0+giB0zKsg8ZKQL8t8p VrmOGm+sHdhxjfRIAhKHsVG5F0M5tzQGvwddGrbZsL9hvG74ZsQ3iwa6KA9WoxKGQZmF 1VCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3M/fIjAYBJaxCPzA4I8FVKM/shxs7I1iNJw3mAwczTc=; b=z902MbnCn5gsPLPRXbUakiIpiHUu1/JWr4zuvPwk3gVBaef1wGhIya2SXnYdvBC5sg XjfA4fjjORzI6h3eLRdTenm4vfjLFuJQmXpNLfW6JVno0QLcjxv7meJZ5yfqdgFqyF8w MYPg8W6xtPqth+QxPsG+wrzOjFz7EYI+CXPXA0NEnl96vkreOaSNH04UlCdvTpM9/AF+ 2Rar7BulSH3MQvNx6FnDJF9P/zHIUF2zmRopTERONTEQk1n/Xjbq0f+BYDQrw545sfem ZWvtlJ0dtl4rMzQsHQWC+BXKjoVYSdU1i3kXLWJLrr+VoPvTfyuPLl2Acm0y++CZWh3i jYEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=BPRpkDGL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn19-20020a1709070d1300b00718d0985a97si18337837ejc.666.2022.06.30.00.27.29; Thu, 30 Jun 2022 00:27:55 -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=@gmx.net header.s=badeba3b8450 header.b=BPRpkDGL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232342AbiF3Gwa (ORCPT + 99 others); Thu, 30 Jun 2022 02:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232840AbiF3Gw0 (ORCPT ); Thu, 30 Jun 2022 02:52:26 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B2CA31383; Wed, 29 Jun 2022 23:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656571934; bh=ZU0HKrj/U8Ky903QI1buKExZhrj7mMmS2iFC6fGomSA=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=BPRpkDGLZ8JerUWKg3YxeyOz1mG3U3AJFEKMR1oVNymBxcF5WPPggtAgI2W+v18v4 7iPmwMo4DjgJtwVKPRxMdHVtEfPBkCkvdTcfbYzHaUUkz0VPL0Fu6h5cMzQJdaap5N FfaVUzip5JFnTAJOKmME+SKDLMy22Jem9PjZA/qU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.136.11]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MTABZ-1oCXsv2XjL-00UXU7; Thu, 30 Jun 2022 08:52:14 +0200 Message-ID: <9eeb98b1-b53b-f90a-7610-5d40509d8204@gmx.de> Date: Thu, 30 Jun 2022 08:51:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] fbdev: fbmem: Fix logo center image dx issue Content-Language: en-US To: Guiling Deng , daniel@ffwll.ch Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220628163641.4167-1-greens9@163.com> From: Helge Deller In-Reply-To: <20220628163641.4167-1-greens9@163.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:StuGJg+gOrxZU2TSBaJ8FvbtcixzBEVjwjRW/XpF+r7xjRTqsbA L1foNai+z+dE3b12FpLtKY8bsEAjKmLkj0YHIk9W0if8S/kByI417rYFOfuNCk/SJSeTl18 Mu28R8moWuoohDBYds+JRUtU0dSaJDo7XN76BXyZnxMZOFhIQ8mb8f1ky18H3V3kE7g6QNR ZRJGSA7N3Ab8VjJSu3jyQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:nvc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HGCEdLTrI3t0Ytqbkldm/Skj4B6arn4g0vcdrB9uDvFw FW86Hv1VrLEq/5dJzQUGTFGRtrMboCRsWEk2VE479ILHkoMPDYHToRhlQ== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 On 6/28/22 18:36, Guiling Deng wrote: > Image.dx gets wrong value because of missing '()'. > > If xres =3D=3D logo->width and n =3D=3D 1, image.dx =3D -16. > > Signed-off-by: Guiling Deng Nice catch! applied to the fbdev tree. Thanks, Helge > --- > drivers/video/fbdev/core/fbmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core= /fbmem.c > index c4a18322dee9..1fd2bdb11266 100644 > --- a/drivers/video/fbdev/core/fbmem.c > +++ b/drivers/video/fbdev/core/fbmem.c > @@ -511,7 +511,7 @@ static int fb_show_logo_line(struct fb_info *info, i= nt rotate, > > while (n && (n * (logo->width + 8) - 8 > xres)) > --n; > - image.dx =3D (xres - n * (logo->width + 8) - 8) / 2; > + image.dx =3D (xres - (n * (logo->width + 8) - 8)) / 2; > image.dy =3D y ?: (yres - logo->height) / 2; > } else { > image.dx =3D 0;