Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2766552ioo; Tue, 24 May 2022 05:38:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxInG6YptitAvnf2l5f5Ol+X6BMiGmkx9gnmF2jffvLOmiL/OzHF0rSAofOQmT939gFA5Sn X-Received: by 2002:a65:4685:0:b0:3da:eb4e:61ed with SMTP id h5-20020a654685000000b003daeb4e61edmr23701110pgr.591.1653395938877; Tue, 24 May 2022 05:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653395938; cv=none; d=google.com; s=arc-20160816; b=PA3nhYH/OSdvWfs6PIRcbREX+F6TUqNLaOAhcUqi8Us6hFxaga1n/hoV8eQiMvrs0e OikoD6iMgCyOCMx4kV3qvtouZNc2vpV4DjuUHy3bNJM5bIye44ZnzDYmNOfLqZEVISqH BqxKz0zzCkNEKSBwwuAULQvzEShjKwOP0joDmc45xy7uePfjKzJSBTsbYkpEhy9xlPds Rb0uIATKDDHCQJ+0XjS1ieImtSRukslMQ8p/CLjYsea/X5C4T2CpuXCBqzVf24h3nQiE El7j1rIGwGZszO9mIcylYkfG8eCnM5Dxf4BgiVcrUlCHXP0XA8nwynMzXtZUEy6rUgC7 nOYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WAxME2jCqnYq3zOI/E/rWkFD9vU/aHCVb7JhmBT2ysw=; b=lqpXB0rXpuq+7EjkRorVjiTwow007LHtAZG1G72qs0fuHSC8wmAiR84MJ3GhKLLQys 9JEEuFEdnwiR+LwxkFXfEIzZQx8TB1zQ2yiOrJaaFysxYsv46mN+bcoJZRL/x40q41gJ yYHKYDd/zFX3lKjYb9FapO6bZIGaSx0a9o7xCtQ1VcxjL1JKfnc7gIwUvx6QPBhXmRNq nZa/pFdgNqd4HSyyhi7UeKaFUUBlAbBNmnYXOa+pxMchbPxCnschJZAH0KiXkLWwyYlV Err3RRRS65q/bME8tWBpjO7ep6RvZ85Ob64PGw9jmubKF7qg7gnBU2ezs6OIOpPfKsCN j08A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YuGTtIFc; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16-20020a17090a0e9000b001d952d60f67si2702651pjx.45.2022.05.24.05.38.45; Tue, 24 May 2022 05:38:58 -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=@kernel.org header.s=k20201202 header.b=YuGTtIFc; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237200AbiEXMLt (ORCPT + 99 others); Tue, 24 May 2022 08:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbiEXMLr (ORCPT ); Tue, 24 May 2022 08:11:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 978BF3BBE9; Tue, 24 May 2022 05:11:46 -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 32F126153C; Tue, 24 May 2022 12:11:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EC7CC34115; Tue, 24 May 2022 12:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653394305; bh=WAxME2jCqnYq3zOI/E/rWkFD9vU/aHCVb7JhmBT2ysw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YuGTtIFcMl/M2mNRzQsW3c95pU2bnO87GRa0mpvwQXShnVBnHT4PyToI6EEbHsLtB 1fd5jNBVYxYvjFgkARs8v1vMdQk5qFfoR3r3bc3LEJcG1dHwbl6kZhhJ/LWl7RcxR7 jgf6LtM5vcIlLpNu6msGi4/M0AColxzN51jgAJaXw+mqMXwHOUFSHMz1gThkj90Uh8 BNobRS/FHuYMLFAzigLzcIjyd5TyZy3ncOM/8t3ej6wto9kyWet1LyK/Unq4P56jhn 0nXbS0uvJS4yHG/dmTKuwxM/lxgjsFI7YnD75oPPohOukEY69KvO5Z2bXEMYkZjt/Q 6zgYWVvsrKBiw== Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-e93bbb54f9so21923324fac.12; Tue, 24 May 2022 05:11:45 -0700 (PDT) X-Gm-Message-State: AOAM533gucPHWLhZGqmtNl298VeHuGPe9wnLgPaqTbc5r3t2Wn9bkdyH UBBBHrXAEhRXjV6NyNEgt8Jy6tcbTGHFooa+JZY= X-Received: by 2002:a05:6870:eaa5:b0:da:b3f:2b45 with SMTP id s37-20020a056870eaa500b000da0b3f2b45mr2447846oap.228.1653394304682; Tue, 24 May 2022 05:11:44 -0700 (PDT) MIME-Version: 1.0 References: <1653360644-28872-1-git-send-email-baihaowen@meizu.com> In-Reply-To: From: Ard Biesheuvel Date: Tue, 24 May 2022 14:11:33 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: take size of pointed value, not pointer To: Huacai Chen Cc: Haowen Bai , linux-efi , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, 24 May 2022 at 13:41, Huacai Chen wrote: > > Hi, Haowen, > > On Tue, May 24, 2022 at 12:03 PM Huacai Chen wrote: > > > > On Tue, May 24, 2022 at 11:06 AM Huacai Chen wrote: > > > > > > Hi, Haowen, > > > > > > On Tue, May 24, 2022 at 10:52 AM Haowen Bai wrote: > > > > > > > > Sizeof a pointer-typed expression returns the size of the pointer, not > > > > that of the pointed data. > > > Your patch is correct, but the original patch hasn't been upstream, I don't > > > know how to handle it. > > I've squash your patch to the original one and add a Co-developed-by:, > > not sure it is the best solution. Thanks. > I was suggested that a "Suggested-by" is suitable. > https://lore.kernel.org/lkml/CAAhV-H6k=xC-fDYnwsqSeoj7QPPn8RAcR+waQMa8yTs5J-XOSg@mail.gmail.com/T/#t > Finding and fixing mistakes is the normal review process, and not every addressed comment needs to be reflected in the tags, even if the contributor sent it as a separate patch. Adding 'Suggested-by' to the entire patch falsely implies that the author of the bugfix suggested the entire work, which is not desirable either. In this case, the bugfix is a well-known anti-pattern which is not specific to the introduced code. I don't think this warrants a tag tbh.