Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1352994rwp; Thu, 13 Jul 2023 09:33:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlHg9WxiUfp4MU2ytB4UdhWiREF73+lW+L58W/M/jGkObajQjn+ObuZ+S5Wy0VkFbaUo2L5W X-Received: by 2002:a17:903:2284:b0:1b8:ae12:5628 with SMTP id b4-20020a170903228400b001b8ae125628mr258555plh.2.1689266004579; Thu, 13 Jul 2023 09:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689266004; cv=none; d=google.com; s=arc-20160816; b=VH4m15wdigeEYB7S+MaLhhydVGyGiY0mM9T7/qfKJp/VCTrBhMWn62D0Ifg+/7F9wn 4Wmg3Y3KbbSAGvYoTk3nurbnjRY2ccSLfM+W8dHQepTw0e5TABs0/y/h4MzxZE+M2rZM ZhCUaOsymO/bdGZbRTqpJ4tbnEP5stwlouKXvdQajUyj46Xjk3w400e+i7zrlzSFwgUX YJ76x/iv/Ymu0ZV+E7vA+QAsQ11SR6xOOMHk4UU8BPULuxik7x8atNjYF7EHdbT3sK5w yqDJQocEyr0M9jP4ZRYSu5XZHkIv/ja6kculiB4n37ZX+QlljIX5hTpCLcaR6eHoz6sn gshQ== 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=FGfECluQ+8FqgloN5y7njhMRYgbNQmkghpgv24LmuxM=; fh=KdGiNPpA0p1boFRXphUEze3mAEK3qtK5xygJ2oc0qI8=; b=0+VtyTh+SnPX2ob4F807U9uyFViyCIAW/D0tXWrDIeIlz0rs2LyDU2lHU3EpAjN8Q3 /kNIExqZwPzA6fXQuUlteoI0z7N7ET1bkRsRdz6VMu9RNalw/m0ejcVdWC8lgvEUzHcG PauxGbP1I+Nv9b+HwkVnIPdXpYcxVWErz0rW9a7Bb+Y9BsImn01sI8iq8DNhbP5YtYNk XD0OIBs2jFqwoiugXFy/btLV9O0GIW4MPFNBM7jqdphNsv/FJiqYyzV1nZMro05Nr/hE cSXdTmVIrtRDOgDyhG+evm+2SVmByQZLZsYUiXT2zRAPo/2hKTtRKhz5Olox6DDsCwZ5 F/pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="0XY4/FQJ"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y127-20020a636485000000b0054481da6ee5si1494555pgb.418.2023.07.13.09.33.11; Thu, 13 Jul 2023 09:33:24 -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=@infradead.org header.s=bombadil.20210309 header.b="0XY4/FQJ"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235129AbjGMQCu (ORCPT + 99 others); Thu, 13 Jul 2023 12:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233618AbjGMQCq (ORCPT ); Thu, 13 Jul 2023 12:02:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F44226B2; Thu, 13 Jul 2023 09:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=FGfECluQ+8FqgloN5y7njhMRYgbNQmkghpgv24LmuxM=; b=0XY4/FQJa9khQp7bFpbGplPtrB 5SpA/Xwz1+y5xMC8TkQ/RIwD1YWvtpubNsS1DOufMRk8U8ZOw4QBT/2OcdaSsugIN7fvQtpI7FoTv cytb12hmpQ++kNkMjOGEjV3X0J/VuBhB9uSnfg9JjtfUZNml3TMudThtLyoBgiurIyPLTXfpsW1zN ZtXFfJPqxyrJBHJb3985aNxuQmUFSYt3wjhQoX2i+JeMJunamtLIY8iXJ5jgN3F/OMabSTImubkKK MN74NscjU6mryhy24nJ4dBieOuA4YvnVsMsArDKWNb60xY8A4s7oL4npScU177xtucZj0Dk4Lyl65 o8/EadpQ==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qJym9-003r1C-08; Thu, 13 Jul 2023 16:02:41 +0000 Message-ID: <801dbd65-ee7f-526d-6cd8-27cb0291c4ba@infradead.org> Date: Thu, 13 Jul 2023 09:02:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 18/18] fbdev: Document that framebuffer_alloc() returns zero'ed data Content-Language: en-US To: Miguel Ojeda , Thomas Zimmermann Cc: deller@gmx.de, javierm@redhat.com, linux-sh@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-geode@lists.infradead.org, linux-nvidia@lists.surfsouth.com, linux-hyperv@vger.kernel.org, linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, Miguel Ojeda References: <20230713130338.31086-1-tzimmermann@suse.de> <20230713130338.31086-19-tzimmermann@suse.de> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 7/13/23 06:21, Miguel Ojeda wrote: > On Thu, Jul 13, 2023 at 3:03 PM Thomas Zimmermann wrote: >> >> Most fbdev drivers depend on framebuffer_alloc() to initialize the >> allocated memory to 0. Document this guarantee. >> >> Suggested-by: Miguel Ojeda >> Signed-off-by: Thomas Zimmermann >> Cc: Helge Deller > > Thanks for sending this! Maybe this would be best earlier in the > series, so that later patches make more sense (since they use the > guarantee), but it is not a big deal. > >> + * aligned to sizeof(long). Both, the instance of struct fb_info and >> + * the driver private data, are cleared to zero. > > I think both commas may be best omitted (but I am not a native speaker). Yes, it would be better to omit them. > Reviewed-by: Miguel Ojeda > > Cheers, > Miguel -- ~Randy