Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1134459rwp; Thu, 13 Jul 2023 06:42:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlF4ymcYK9c+ZG7wZ4QKqc5Bm2orY5J1fCKZNji8ck8JD7kpFFIHj7DgjGcJfuFDa7CYiU8B X-Received: by 2002:a17:906:749b:b0:993:d8c0:f0f6 with SMTP id e27-20020a170906749b00b00993d8c0f0f6mr2834508ejl.1.1689255723043; Thu, 13 Jul 2023 06:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689255723; cv=none; d=google.com; s=arc-20160816; b=gPHkONj4mYEUb749A9MnE4tuNOvXG64YFIDvolA1aki40l7Nn2xSBTBGB40VBsJAzT voiGxtE2WvdhM2A1C2Waujnn2eq0OQtvPHrYe2vFKNQQX7EXtuw3YDjUO8sHwvlo/sK5 5NK4O+y8UtVrVqdnB9CTfZDXZ1JkDxqSRdcG5FyGQssR3AZDY9lTVAwmLCKPP9nkxsKv 1urF1q1ziOOzZqZrugKLKd+bcGGTYDx0k/rvoBPmwLmm6iYj1RtNEqgTiRYPYKLE/H8L ZRSziMhuS3aIqm6Y72qTflfBCj1BEjfFysg1qtiUS4Fd9FhgWqptl1KGlqRHf5i6/Dcr coVQ== 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=nMl5dn5Xz12gXOMX3oC+kNdFlWhzCPfH45LFdGwDg+c=; fh=ENnnD/BSGxkog6V8Wr1yczJ0pDGZQbBG5f7R8MqSCCM=; b=0v04Gfn3/a9mjlpfTIPVmQJLPik25wZ53CVyuEnF0Kr+tahxLAnLnJVVJMbECHBA/G J3mNaF8CQp6ZDsX1GMtIyX1EW0Ig7J6aV68zBmICwE8rozgggWpkVkhc2lEfBrGLGtad IfBsaHFgO/RJJsEkt04YuK8gJKuBKesiqZr5ml5GBlgB3tSQ9p7wBnzaNk9a2WrGYvR8 3LN5fyO3BE5+XnkUf/rJkCYMxeelhslL+NhigVh3b7qdOcWJN31t/UC9cN7pZo1UoLR0 FDHMhnB+1SRZtKfW3Ja7PlCrknlez/9X4PaPxt6casFeVpYFf3DkiLG2DRBybUBuDix+ KO7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=eshePJRx; 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 m19-20020a170906849300b0099332c48e49si7231462ejx.133.2023.07.13.06.41.38; Thu, 13 Jul 2023 06:42:03 -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=20221208 header.b=eshePJRx; 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 S235236AbjGMNXq (ORCPT + 99 others); Thu, 13 Jul 2023 09:23:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235287AbjGMNW7 (ORCPT ); Thu, 13 Jul 2023 09:22:59 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BD1835A4; Thu, 13 Jul 2023 06:21:55 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3a3373211a1so599566b6e.0; Thu, 13 Jul 2023 06:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689254505; x=1691846505; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nMl5dn5Xz12gXOMX3oC+kNdFlWhzCPfH45LFdGwDg+c=; b=eshePJRxBGfoEbxv/HATy/LbMrzsCDpyAiPdPWKP2+7M1zJL3N5KwDGRakUw3RzP4p q0Cnwz0fdaQ+HyxVhl+a/PdVIYgV40UvVYeo6oku2ew3IT0bTt6UYAHjOIS6Vb6t9Mla Zj8EL/FlPFPvHB5g71aE7gFP3zFqlG9d7Fbu8m/nhV/T9INJD8alH0sgU2iXPleyzim5 lINS3JcD7J0TOIOFW4pf/x8/SEpIIASy3dTyyqXfKshxdSJS0TlF/u7bPTHA+oWf2AYl SPCY6gZL7ykEOqi+bfIKlTKf4FRPiV/L6IcHOgev/4QAZK/gwKYWQ5RBFTfBsMThGpXg EmsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689254505; x=1691846505; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nMl5dn5Xz12gXOMX3oC+kNdFlWhzCPfH45LFdGwDg+c=; b=j83XsvWDS/59ZRtQNCcRAswIv16C/Ap9bYQ7j7wfNDDqZJGj+9X6PN0myKyTn4wU/i y8lUrBbzN0IGkqFJIGn14itdBwejbJyGcz7lXonJZl1nmaadHFNEFCxwjdSooeEFarSt I0VBTBUo3tKSKckSLv4oAgiPmUDwXMDtg0SWsjnciMEDu6D9tSVCAaimjZYd8ygMiWVn MECXv/JlFjPyRMpIHomXKdSTxE+LEqSJsjSoGQhSW5+qEP9eCn97FpERdTAePvRLc7eQ AIBcHvlK4CXCfHch8yENA+eInOM8R3OhlYuomglfXxtPR4OnRIBf1XICkzYjiANUcfZq lfrQ== X-Gm-Message-State: ABy/qLYY6JcJ8DGyhX42Jaab91F5v99cEz0v9EICy2Nf3tor+kPCGGR2 URdZJuZIpI2Xxk5dU5zAEHUPOtkhGiETLimmigA= X-Received: by 2002:a05:6358:428e:b0:135:5934:2bba with SMTP id s14-20020a056358428e00b0013559342bbamr2356344rwc.8.1689254505432; Thu, 13 Jul 2023 06:21:45 -0700 (PDT) MIME-Version: 1.0 References: <20230713130338.31086-1-tzimmermann@suse.de> <20230713130338.31086-19-tzimmermann@suse.de> In-Reply-To: <20230713130338.31086-19-tzimmermann@suse.de> From: Miguel Ojeda Date: Thu, 13 Jul 2023 15:21:34 +0200 Message-ID: Subject: Re: [PATCH v2 18/18] fbdev: Document that framebuffer_alloc() returns zero'ed data To: 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 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_BLOCKED,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 Thu, Jul 13, 2023 at 3:03=E2=80=AFPM 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). Reviewed-by: Miguel Ojeda Cheers, Miguel