Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1581312rwd; Tue, 16 May 2023 20:53:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ658NmfrcDkOJiDp8pU2jbrOuPseBR37zTO5ekADmq9v2LjJ7zGog09KnQrLsefz8cpizhv X-Received: by 2002:a05:6a20:12cd:b0:106:70af:a5b9 with SMTP id v13-20020a056a2012cd00b0010670afa5b9mr9448734pzg.31.1684295596162; Tue, 16 May 2023 20:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684295596; cv=none; d=google.com; s=arc-20160816; b=rmjAexnXU18+Zf0Z88rTUPo3neTX5OrnPNw1p+Wd1kF5rif57qbq2FiUCqgUr/MVrG YwpEhDsjj8LFg46xBf1dJpuuQA2mII34mDFQZBD9KezAaTYMRpjsgDrGUCgg3+uq9FJR ZJLuAgYTtd8AyRAB4sgtGT9UVtcMcVmyZX69jYE6dflZaP+YAv5Pohdns3I4vDO5xxVp L6YMOW2pqR2dkTroF5loHSz+njmd9PFHhPRxQrVyzI+iDOd9uCGy4gHJLL+xTYz6SffI 0l+iOENqbO671a1rD6BPq89GO2AkblhbWGWfQSGD481eOzBeYyj2MPiInW0dJUmWIL9d j5Xg== 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=8nK6rdH3Kqtv9CwSplTZJv59nzOzj45tE4M/r/IuJe4=; b=TOCYW+LMa10VrSwTk+OfgX65m7QmJOobV+I+nKKDKIUY4v7gEyTbeqCA9YJHqRxizn Ax2MPbna9KhjFzqbRTx5cXpzVuZFZzcAqTIO6pqF9DC4ALNgDaMD3JfJ889Nrf+HdcTV 3cAjr+c0rtR9eKayp4issbAmxS6tCGPGhCIH2DcflL/rrvaTc9bW8wSvWnQfXrH+BKFm Is/E9/FooWguq6gdxUlszB2hXOOkZtWjhZ2Wd/5hw3xGCzMg6RhLEpd8o8fU6I6oHIB7 8jivbc+WRM2Rpgis7E/ngdpi9dh0dnnMOZAWJw/0S0/02UajHyi4nFNorVhrWnSDHO3O bkFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="GLmOJd/I"; 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 v17-20020a63b951000000b00530b1e7099dsi10249845pgo.84.2023.05.16.20.53.02; Tue, 16 May 2023 20:53:16 -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="GLmOJd/I"; 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 S231911AbjEQDVk (ORCPT + 99 others); Tue, 16 May 2023 23:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231838AbjEQDVV (ORCPT ); Tue, 16 May 2023 23:21:21 -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 B4749420A; Tue, 16 May 2023 20:21: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 6454563B86; Wed, 17 May 2023 03:21:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59E22C433EF; Wed, 17 May 2023 03:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684293660; bh=b8ppDmEIaTnXIk/SW60spPG5VJdPpOY7pKL70uyLalg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GLmOJd/IhPXHU/VrBXs/eQuyxrt7RhgP4ss9zIJnezsMFH2Mpi85XpiydHpdPpcjA S2R2yNz8hwvkptdI4EHISBf5RnFSlsjL2/bjOLGeOMjjqWJM2xN8NOKg/xDSEJuPJZ RI/qtKWLZhfrjX2gZl2fvnqkBTddlOhuJrV4pm9AO53QwWG94yMf1GN7lNB5UfESZT v5Nh1HON40Tfdms7mzJokGItxLPLtTVgKPxf8rinOQt1kvf6dbfI26/dMr8CeS7FQo fNmU6J5TQKyISi0adkUfBMzX07LdhBXlg5wBIh6ZdXiN4iQUdGIoRIRIFv8+9Ezx7v QCHOszeuT5DJQ== Date: Tue, 16 May 2023 20:20:59 -0700 From: Jakub Kicinski To: Simon Horman Cc: Dan Carpenter , wuych , dchickles@marvell.com, sburla@marvell.com, fmanlunas@marvell.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net-next] net: liquidio: lio_core: Remove unnecessary (void*) conversions Message-ID: <20230516202059.09aab4d0@kernel.org> In-Reply-To: References: <20230515084906.61491-1-yunchuan@nfschina.com> <61522ef5-7c7a-4bee-bcf6-6905a3290e76@kili.mountain> <2c8a5e3f-965e-422a-b347-741bcc7d33ce@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Mon, 15 May 2023 22:19:31 +0200 Simon Horman wrote: > On Mon, May 15, 2023 at 05:56:21PM +0300, Dan Carpenter wrote: > > On Mon, May 15, 2023 at 12:28:19PM +0300, Dan Carpenter wrote: > > > Networking code needs to be in Reverse Christmas Tree order. Longest > > > lines first. This code wasn't really in Reverse Christmas Tree order > > > to begine with but now it's more obvious. > > > > Oh, duh. This obviously can't be reversed because it depends on the > > first declaration. Sorry for the noise. > > FWIIW, I think the preferred approach for such cases is to > separate the declaration and initialisation. Something like: > > struct octeon_device *oct = droq->oct_dev; > struct octeon_device_priv *oct_priv; > > oct_priv = oct->priv; I don't think these changes are worth bothering with at all, TBH.