Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4968166rwl; Mon, 10 Apr 2023 21:13:37 -0700 (PDT) X-Google-Smtp-Source: AKy350bAXSjdUHDpj+bqOxAGYi2j0WgjwmaNHJJUp1VKZf/9FH7d9dFazBaBnNcOOYVx1c7HSwrB X-Received: by 2002:a17:903:41ce:b0:1a4:fe85:ab07 with SMTP id u14-20020a17090341ce00b001a4fe85ab07mr17766528ple.56.1681186417569; Mon, 10 Apr 2023 21:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681186417; cv=none; d=google.com; s=arc-20160816; b=p0p0zLyzI6rD6PtZ9ERy8JJ72L7YWXt9ZApi7FEfe3ZuF/rj3TIz6k30ysk5e7qDsp akgCERZJxQ4gU5la+BC+/x6Ul4DYqPQJZN4K3rvzeanvhsbc1sRPXy8jBXZ9879BaoPi TFlRUOZ5jt7oJvFRfVadg/d0knaEn/DdceWLBB1N4aSffhrSPSDgsJpJax1kFgX0ief3 V2nqaP26cbSbTCgZ9+/HUe4KqFEZSFe8HxSlIbjZJ/woSV5Fu0C8iZr51SbcBSd8653b W4ULY3u5TibDabJ2VBWF7d2eAqtgy9Iah6WJBKwyvXKkcimplrr8FMGbLla3MZiBLFzR 95DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=S9pQLq/+PNiiyTzyqcl32LBEeyR30O44UFmzgEM9ki8=; b=dGn431gxHiyBpNFzA9PpKM4d7Q3WNMfNXk4jKBf6cRChW0WHkZ8waLJV2pk62+YCMT lLgqJqsJGytuECOPUHuqyCdXc1FlCtkEmDzjCXMvHCLFw3tiLzmhPbibq8PByC2gRGr+ AqWSJR3GAHyQQCapI4sBEWAU620DBtYJnJyPP8lE8V+5n1FbLjoGNwwkpndeQfKxG8i5 H4QDGzq/dUqI0wni1k8TYrkpdKWVJ5dTMO4+wttqLIfNh2TkNYNqoH0xZ6o/w1iVpFRt lh0U2922EKaRzIZ/lS1PD3RqjPJccZkaeXGmJd30NYJt85Yyn591Kz3wA7R4mBc3gUlT rRtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=BInDaczb; 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 d23-20020a63f257000000b0050f817e8564si11728209pgk.86.2023.04.10.21.13.25; Mon, 10 Apr 2023 21:13:37 -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=@linux-foundation.org header.s=korg header.b=BInDaczb; 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 S229964AbjDKD7D (ORCPT + 99 others); Mon, 10 Apr 2023 23:59:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjDKD7B (ORCPT ); Mon, 10 Apr 2023 23:59:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1635998; Mon, 10 Apr 2023 20:59:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A77F761A70; Tue, 11 Apr 2023 03:59:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C03B7C433EF; Tue, 11 Apr 2023 03:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1681185540; bh=ysMBOb2Dvl1FfFehaRIlhqrwfBY5Os8ctxq9hZuc2vQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BInDaczbywhfbiGGix6YCGkT73PVOcZhQHfpOAuaEd4J0IGYaohvGY+JHeNIhas5I EdXKmeXJGS6vHjP6me/MoSRy2uJ5NqkIEjGJxNVBqNo6osnjbWhCAs+khJC5Tdd8/A p77yVj5wmTQiE/eN1GH/1zeKzbXQpCvcsvh0SNh8= Date: Mon, 10 Apr 2023 20:58:59 -0700 From: Andrew Morton To: Peng Zhang Cc: Matthew Wilcox , Liam.Howlett@oracle.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, David Binderman , stable@vger.kernel.org Subject: Re: [PATCH v2] maple_tree: Use correct variable type in sizeof Message-Id: <20230410205859.8dca31a8c0cd54484c60c07c@linux-foundation.org> In-Reply-To: References: <20230411023513.15227-1-zhangpeng.00@bytedance.com> <20230410202935.d1abf62f386eefb1efa36ce4@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Tue, 11 Apr 2023 11:49:56 +0800 Peng Zhang wrote: > 在 2023/4/11 11:42, Matthew Wilcox 写道: > > On Mon, Apr 10, 2023 at 08:29:35PM -0700, Andrew Morton wrote: > >> On Tue, 11 Apr 2023 10:35:13 +0800 Peng Zhang wrote: > >> > >>> The type of variable pointed to by pivs is unsigned long, but the type > >>> used in sizeof is a pointer type. Change it to unsigned long. > >> Thanks, but there's nothing in this changelog which explains why a > >> -stable backport is being proposed. When fixing a bug, please always > >> describe the user-visible effects of that bug. > > There is no user-visible effect of this bug as the assembly code > > generated will be identical. > > Therefore, if this has always been the case, cc stable > is also unnecessary. I removed the cc:stable, added This change has no runtime effect, as sizeof(ul) == sizeof(ul *). and staged the patch for next merge window, thanks.