Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2378201rdb; Thu, 21 Sep 2023 17:45:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpWZE09ufseUxy63A7KNt3H8pdGO+3SG2yc8eaSIlEC9Dx1l4DSpK57u+zORXb7Rh2CuNW X-Received: by 2002:a05:6358:429f:b0:139:b123:ae2 with SMTP id s31-20020a056358429f00b00139b1230ae2mr8666470rwc.22.1695343531040; Thu, 21 Sep 2023 17:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695343530; cv=none; d=google.com; s=arc-20160816; b=N4yPUYaNEfgWlS+LtKbUBYRsmY8vA8S9exkC8iVg6DPPBNEYU4zWP/m4S+oMwEdlIo QLF+P3BIIyd9wLvFlUnnhauHjHUPoo7rMcYvK6pGKCeEFj76wotrD7cMYNCClX/0g96q r3PuUljJuq7bxs8apZvgUd6gAehxKR9RMpePmtC7d5Oxv4JnUwQbY/Zn3bN8EkLv9RmF gyfkjU4WZR+8WapwOV6tFtXsWVS6Hp/ePYtzVaehdXEKjnJX1RilfKGNzF0+4XJ1rXUE IdX1okyWmxCw3hiIJI0v7JaXGNxApQBkC9od+2GntrqnqR+azIo7KeBxHPI84+Qh19+S 8EYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=g60xLXBCjkXv+O7ubr+i7HQPIBMGZtSBZFl73hcQhJw=; fh=EXSy16HkiosLCNOArVPENZNMlk6wzeM9RSy7MyN3otQ=; b=A3m6LEWo7tzLaVa7HeGLRwZ+N+foqonOS2kInC3hwB79bXgnrtU1N14jFDOCvS6mbZ iIyJkPhQngqi6AukZLvR9deK5f8eLO1zxXWeiHWB/padS49plyShQ1WY03yD/lvhAjJH Xt/u3VII+ZMXG2HR0UeUM0A0bI9sWoKVJDKwSeWaCm+xFdedxICw2IEuNtYXiRRcRtmc aUJZxK+XFvo4mpeXhSuTC535edcCkgBdL8DAlDslb/tOIV6Z1WP9AQpYnFE9liSmBNaZ tAsrIJw/ZNYhR++xrOhNOfunoobnXFD8qbzHPsIX8JYt6BY1GwoUMCGw9kUCAabR4Reb 0MnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YD+izcjP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k63-20020a636f42000000b0057851fb6dffsi2534835pgc.466.2023.09.21.17.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 17:45:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YD+izcjP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DCFF2831557D; Thu, 21 Sep 2023 14:03:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232292AbjIUVDH (ORCPT + 56 others); Thu, 21 Sep 2023 17:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232437AbjIUVCn (ORCPT ); Thu, 21 Sep 2023 17:02:43 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A25058460C for ; Thu, 21 Sep 2023 10:37:30 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EA16C3277E; Thu, 21 Sep 2023 09:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695288803; bh=FiyvDDyQXOk9mEoVrRM/ZvJn/EUsTPSIK411BiFrc0Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=YD+izcjPV92elhwxpEyPnheRz4LMTobpTbkhbgPcr3+cHmjGMpZwdXNu7WvedEyqW FK8d8Degn8Nx/io9BYLzxM4ZzkTB85UuzLUig+mcOQ5TeZ/JvA7BlNWKjYtRaEwDdV 7WzhkLVXHrIFYeeoKpu9bzblzK/smIfhaIZBml3oBDiTb6ausWw1nG4F6JMqLEjZ/K Xu/0qmPx62v3P47FyN9T0T7a18s60PpwzEE8Oljl3wbkp5rZgmkNKtSGjzcVXFembG rluYTVFhvr0pcC5kuTmh9R16Fw9EwytIe/GpKWkxMucVGDr2EnhMnHjxtvfVWCJGWI R9/TeuU0Dhw+g== From: Kalle Valo To: Dmitry Antipov Cc: Jeff Johnson , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org, ath10k@lists.infradead.org Subject: Re: [PATCH 1/6] [v3] wifi: ath10k: cleanup CE ring initialization References: <997f4b09-7087-4788-aa2a-ef835ce6ebb3@quicinc.com> <20230824055117.42309-1-dmantipov@yandex.ru> <874jjpashn.fsf@kernel.org> <75483209-4ac1-305f-83fb-9e9affc104fe@yandex.ru> Date: Thu, 21 Sep 2023 12:33:20 +0300 In-Reply-To: <75483209-4ac1-305f-83fb-9e9affc104fe@yandex.ru> (Dmitry Antipov's message of "Thu, 21 Sep 2023 11:58:13 +0300") Message-ID: <87sf77an1b.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:03:24 -0700 (PDT) Dmitry Antipov writes: >> If most/all of the functions return the same error value type as int >> it makes a lot easier to read the code. > > ...but still not sure that this is reasonable for any non-trivial piece > of the source code. What's the concrete benefit from having few functions which return void instead of 'return 0'? For me the benefit would have to be significant justifying the code churn and the time used. > OTOH if both you and Jeff are agreed on preserving existing ath1x style, > I will definitely take this decision into account and try to redesign > this series in attempt to fit the current design as much as possible. Please stop fixing the design (unless you are the driver maintainer or asked specifically by one) as that doesn't really benefit anyone, actually the opposite. Instead focus on fixing actual bugs. But if you have no means for testing your fixes then stick to compiler warnings and similar. For example, didn't I suggest you about fixing all sparse warnings in wireless code? I would be very happy to get such patches as we really would want to be sparse warning free. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches