Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp39289pxb; Tue, 12 Apr 2022 16:10:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsmzjwu6rHFwsFlsFpQ5VmtT4YtDb3jkNRAAATvbryJ+xBJU1vojU61RmqQySU6ZTDzHmq X-Received: by 2002:a05:6a00:124f:b0:4fb:37ad:16d3 with SMTP id u15-20020a056a00124f00b004fb37ad16d3mr6946186pfi.14.1649805010204; Tue, 12 Apr 2022 16:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649805010; cv=none; d=google.com; s=arc-20160816; b=F/sbp2hp4tYtFVZ5N8Rh0vBPINBtsrG3M1NV4/ORuxtRHePKs8bWiTvijLm2TgtQj9 WSwJUp83zY6W7X4Uri8IW7LXALsT9BGZEp0JRdXb8qmAQUYrFnPhCX8VeEf0awSFch3M OmvZqWQ0Jqet+D+z2d3SZ2toL7sQ8DC2KnJyWV3AvD25y5/ves09QP9O6EtFkXyLZAlV +YvhzNMzcdpqlA6j01X+c6ujtssPNKnyyE68+19Y0zpniux3JJal5/hI9F3zgrtLJCCW h8JNWZCKYs1KYLZ9zF+c/WIX97tE8W/crj1qYHpojY2tHZl7nGhmkBIZt/ouokSQEfqm yadw== 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=AkVeS3a8EOgJCI7taXEOSueT1F/9iu1WjMPXVz5t0OM=; b=y2EDZJ/Le+TnW8AOlYRf2K/SPWpZcdBTXTcHxOgj4hgim7QQch6q+0Zgan5U2D9hSk MeAcVAJ25eArzuYI6r1Qww/jxPTBKz3a6xWy8LNlrrfIToj7bCd0Eu2ff3YsO9M6NFmp I+vjJwVrtxOzODc2wykz+lLfHVFL5jgCvkx+mgvsDj6r3gRztqYWr1cKZYD674hfxjQ8 kiXFF60H0KyvFq1R+34jpr71q1rAp4PgPItDxOHpWFHZ76DxbJ08WQr8Pg3ANxytNS6S mukQrVInC9Yj3uqXAx/q9gzgMH7pwsCcYF9Orf/obPEipgWtTdMh7w93lm+G/AIk/z0R 2o3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DXQFxzUB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f8-20020a056a0022c800b004fa843103dbsi13831733pfj.193.2022.04.12.16.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DXQFxzUB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 888D1158799; Tue, 12 Apr 2022 14:52:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353272AbiDLLIQ (ORCPT + 99 others); Tue, 12 Apr 2022 07:08:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236023AbiDLLCL (ORCPT ); Tue, 12 Apr 2022 07:02:11 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C311B27E for ; Tue, 12 Apr 2022 02:53:47 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id u18so10994525eda.3 for ; Tue, 12 Apr 2022 02:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AkVeS3a8EOgJCI7taXEOSueT1F/9iu1WjMPXVz5t0OM=; b=DXQFxzUBZrSWjyf1SQB0KWaNd5EnJ1CjA7KgQkRSFKh1NG9tM9mlpfhduyc5qGFmn1 q8kOK+QdVXfAfuCkMku1nK9WbmGlR1+opEUKDQXMDPtur2fw55c2e//psWPPmjLc83ul WSFRL5RolZqBBasK6HBrOGkUsL7ETOzoVMBN+7NkkOHGSuy8c1n8zuDitpFiJZqEr+cw tkJYea3e6UA5eZYaW7W2a0Rm5qJawXkULzYfDkY6XZXSEA0T9E28uQGNw81F0r8/r3RY V47qqvxvw7kluf4gOxYqksJ/5mwOJUuXetdD8Z1CAdjIoObTRNooxkJG7veYCWm/qL4N zl5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AkVeS3a8EOgJCI7taXEOSueT1F/9iu1WjMPXVz5t0OM=; b=qtm6SWMcFGSsmy66rfYMSZw4L54vCHyeLugtu01uet26kBgKKd9HxppRdDFK6Yp50P Y8o0utsmT3Xu8fWEcbdMpgKDnO1Fsl/cPahWN0z7dvLrmFePyYUemMGmKk1IvR+6knE1 O6eXVnMY68NcA+F8gjsl3cw8OTRDwnNKriQJQKNi6Es84TAGaQPsNTZEdALzAq1b3ydV 3PsPW9pA60ECW3QZhVQ9k3AfWPKexpXxt9VGvmQBB+FmJTVb2QfSxpOAP54uTOhco2cb c3wrNG0ObayWJei7tPRIUAom0wbUsuLGlwV6pEdCSQxfloUPJFtRVFF32hyKZ1xwdDps 58tw== X-Gm-Message-State: AOAM530sDvb1PNjR9s2gRV6V0/Y0CMk98r1mDt1ixQGcmUlcrYt8+RXv ShbOGpAhb73XKertkiwqJ1k= X-Received: by 2002:a05:6402:198:b0:410:83e3:21d7 with SMTP id r24-20020a056402019800b0041083e321d7mr38115046edv.159.1649757226168; Tue, 12 Apr 2022 02:53:46 -0700 (PDT) Received: from leap.localnet (host-82-60-208-254.retail.telecomitalia.it. [82.60.208.254]) by smtp.gmail.com with ESMTPSA id w1-20020a1709064a0100b006e89334f5dfsm2338416eju.136.2022.04.12.02.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 02:53:44 -0700 (PDT) From: "Fabio M. De Francesco" To: Dan Carpenter Cc: Larry Finger , Phillip Potter , Greg Kroah-Hartman , Michael Straube , Vihas Makwana , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Pavel Skripkin Subject: Re: [PATCH v2 0/7] drop some unnecessary wrappers Date: Tue, 12 Apr 2022 11:53:42 +0200 Message-ID: <3484215.R56niFO833@leap> In-Reply-To: <20220412050630.GY3293@kadam> References: <20220411102136.14937-1-makvihas@gmail.com> <37499399.10thIPus4b@leap> <20220412050630.GY3293@kadam> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 marted=EC 12 aprile 2022 07:06:30 CEST Dan Carpenter wrote: > On Mon, Apr 11, 2022 at 10:34:44PM +0200, Fabio M. De Francesco wrote: > > On luned=EC 11 aprile 2022 12:21:29 CEST Vihas Makwana wrote: > > > Drop some unnecessary wrappers and update all the references > > > accordingly. > > > Tested on Comfast CF-WU810N RTL8188EUS wireless adapter. > > >=20 > > > v1 -> v2: > > > Drop the wrapper functions with underscores prefixed. > > >=20 > > > Vihas Makwana (7): > > > staging: r8188eu: drop unnecessary wrapper _rtw_free_cmd_priv > > > staging: r8188eu: drop unnecessary wrapper _rtw_init_cmd_priv > > > staging: r8188eu: drop unnecessary wrapper _rtw_init_evt_priv > > > staging: r8188eu: drop unnecessary wrapper _rtw_init_mlme_priv > > > staging: r8188eu: drop unnecessary wrapper _rtw_free_mlme_priv > > > staging: r8188eu: drop unnecessary wrapper _rtw_alloc_network > > > staging: r8188eu: drop unnecessary wrapper _rtw_dequeue_cmd > > >=20 > > > drivers/staging/r8188eu/core/rtw_cmd.c | 145 +++++++---------- > > > drivers/staging/r8188eu/core/rtw_mlme.c | 179 +++++++++----------= =2D- > > > drivers/staging/r8188eu/include/rtw_mlme.h | 4 +- > > > 3 files changed, 135 insertions(+), 193 deletions(-) > > >=20 > > > --=20 > > > 2.30.2 > > >=20 > > Formally, you are removing the wrapped functions (or helpers, if you=20 > > prefer) by moving their code into the wrappers. To say that you are=20 > > removing the wrappers is not correct. >=20 > I once had someone make me re-write a commit message four time just as a > kind of bullying and then at the end he was like, "You said NULL > dereference instead of NULL pointer dereference so I had to re-write the > commit message and I added some comment to the kernel git log explaining > how you suck." =20 > So these days I have made it a rule that if you're going > to complain about commit messages then you have to write your own for > people to cut and paste. Otherwise people are like, "You're too stupid > to read my mind. LOL. Do it again." I'm assuming you don't believe that I attempted some kind of bullying simil= ar to what you had to face when you sent the above-mentioned patch. Nevertheless, I was expecting some sort of reaction from you but I think=20 that you are misunderstanding what my intentions were. I didn't suggest a re-write of the commit messages. I just pointed out that= =20 those messages are formally inaccurate but that these kinds of small formal= =20 inaccuracies won't ever prevent Vihas' patches from being accepted as they = are. It's only that, IMO, if people start to take care of being formally correct= =20 in drivers/staging, even when they do simple changes, they train their minds to improve their abilities to communicate in the future when they eventually decide to submit much more complex patches in other subsystems. > But in this case the commit message is fine. The key things with a > commit message are: >=20 > 1) What's the motivation > 2) What's the effect for the user > 3) Are all the surprising aspects are explained. Do I have enough > information to review it quickly. >=20 > Removing wrappers is the motivation. No need to explain that further. > No effects for the user. > There were no surprising bits. >=20 > It's fine. I agree with you: "it's fine". I respect your opinion and your pragmatism: after all, here, everything is pretty clear, so why bother? However, writing accurate and formally correct commit messages takes the=20 same amount of time of writing inaccurate messages. So, why not do better=20 next time? Again, I don't suggest to do so now. Not for these patches, because it woul= d=20 only be a loss of precious time. Thanks, =46abio M. De Francesco=20 >=20 > regards, > dan carpenter >=20 >=20