Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2767074rwb; Mon, 19 Sep 2022 09:37:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WD/praLjqS+6THkQfSBPaan9f+ygxCZp+qUN+NiTbehlFfoFC8+7plAATIhcemNUkr8aA X-Received: by 2002:a17:90a:fe6:b0:203:7c29:6e0d with SMTP id 93-20020a17090a0fe600b002037c296e0dmr10676334pjz.181.1663605457048; Mon, 19 Sep 2022 09:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663605457; cv=none; d=google.com; s=arc-20160816; b=b1jlDePNvPGpIeBe5drpUaQ9k/3WKnWkZba0fyuvb1I5shrx0aiVnL7nEqpeXi7pZd i5xARf94366sBwZqj3my5jFnoyo9b2Z76APBWz59rjvtdsQIokY1WgsWNwCSkaBgTE4k jnrfFNXenz5a3fygxxEzfrk4OHJL1cVdJqKJcNK7FT8kcVAqz2Dho7oDFexL5GfEXXEX pT4ZlKsMol1LpR2zWeAoT1W4aV7I1VnC9ZqeqPkUzwExxcdjD2HZZUqWs6b03izStlfo U8UywwxzG8OZsRnZGYx1t515X5A6xM/z3LoTDMBC0oW/Jin++zwa4mSZkUcvK9dVUvLO AbHQ== 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:date:subject:cc:to:from :dkim-signature; bh=3Dc/RlglN5rD6jeAjq6bz9fLtyemoPUuRw33vxFl6Yo=; b=cEDAExeiNoG+dA8X9CZIoeYFQqpxk875BV9SSDrKqlDu6HPChpfjXUBIOu3qfXWa9s trJeoSU01oSM7Etf8XfxVRECuAJfTY7PIvzctAOi7YVzaWtVP0iH/8+4DzBTx9KSuVpQ NkUxLi3Gls8NIvk1k+L3p5Vy0jggm+DVShEa0LDaxOPccjPc73TVqcQR6/+LUUz7KGkk Gh1DnARwzaAfu6r4P2mnsfSuuQROJKuhgya2waWgXv8GugLh8CMlcv3urQadJdci6KSM MmqpnKFuP3yFLqsZlIIVOkld63d4hh+Oi3ktRyJ1u40gCCPibTHrBsmgUjqGkW9ZoYoy zyvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="N/DqyCno"; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s9-20020a170902ea0900b00176e05275d1si33793246plg.423.2022.09.19.09.37.24; Mon, 19 Sep 2022 09:37: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=@bootlin.com header.s=gm1 header.b="N/DqyCno"; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbiISQQD (ORCPT + 99 others); Mon, 19 Sep 2022 12:16:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbiISQPw (ORCPT ); Mon, 19 Sep 2022 12:15:52 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54608286C6 for ; Mon, 19 Sep 2022 09:15:50 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id ACD16C000C; Mon, 19 Sep 2022 16:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1663604149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3Dc/RlglN5rD6jeAjq6bz9fLtyemoPUuRw33vxFl6Yo=; b=N/DqyCnoZ+xMZrFCE4iiOhh4jKP7f/F7t3X+VHB/ob54vs0YF6fmJTgeHlksp28mY/sMDf yrXBWs2PCajxTQJOdp1kZ1/9/uv8oeGFyWrTzfDDLgLrr+fM5Nb3fKEpDHRbKh44VFyk19 KcDrRVpVz7GveGNxE3m527KKKnsdlPFrsD/0FBcF3sqqi54bnBQflgQs+7EzB9aMVWSxQd gtyGzCs3FrfQMINODn8cJkZTxL/Edh+wC+jvP7RSoTKLlYSf4QcvW0NiXo5OduhT1iyZ3n ppe+s0ovLtsuJIvKj7H/oLF//DF/qglA1Vu2H5SksSGHqemUr4pm0QmZuYWVkg== From: Miquel Raynal To: Gaosheng Cui , miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, wangweiyang2@huawei.com Subject: Re: [PATCH -next] mtd: ftl: use container_of() rather than cast Date: Mon, 19 Sep 2022 18:15:46 +0200 Message-Id: <20220919161546.226481-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220816135910.268016-1-cuigaosheng1@huawei.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'bf3e6b8f837afdf01d31cdc86028660f3f342bbe' Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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, 2022-08-16 at 13:59:10 UTC, Gaosheng Cui wrote: > The container_of() is much more readable and also safer. > > Signed-off-by: Gaosheng Cui Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel