Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2499509pxp; Fri, 18 Mar 2022 11:47:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzThhEtsYJ5cd/+G81y5fikxT5F5U9VfqVPZKK2/WfCge2ZzjQYo77/ntUkFZJIV1sf5TAT X-Received: by 2002:a17:902:6b8b:b0:14d:66c4:f704 with SMTP id p11-20020a1709026b8b00b0014d66c4f704mr848786plk.53.1647629230077; Fri, 18 Mar 2022 11:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647629230; cv=none; d=google.com; s=arc-20160816; b=tO+7AtymF2kz9B2wmVV7IH+fOriUwNYw8f18IsdnoMJQj/yLNxFNPUWKCyLcQoj7ZY Vrf1VAuLObLA4ZELrbK8huSn0Nj/5kuH3Xxx4LtL8GNI/mW1NermQ81HzHcxgvee/xrP 5XGdnXDShuhgzuJF0bSd0kP2dUbaAPLogQ6GsjBmxPp57zx1SVTZsObbm3sVLDxuy/2t 8v8QXXADGNpkCDDQu32RLBV0UBo0UfAIODnh6eOyAb3Z5fv2vTzecSXRxRCUXDnLb9Q+ Bb5PVLN7sIm7eqTNG6j3yPU8FeB8ssDNG/devASr+8THr5+7aTZYQ/gTM9OrL0A/iEgH nJ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=c/SLKY7ZxUjaAoipnpYWbqblG9I5JDlf0FrhgrnetqU=; b=TkQS8LDKtYnLlT88uYbzggxcgdbqD1Xnskg+m43tJvlskDhAwER0dQ+1MEXEU3U4A7 wd/OkUSuHcAAk+RRxkSncyrCaDaQiQyhzQP91gQRe0phcMkB1PEwdP9MdAC+L3PalTgl I3RhDtKaS30zFXn/lv0nZihz/BpkMvhyK9VkqT4ldclAj6ZUMBlHmd3rsrfCylRiRVNP TxrYHJIXYEtdCCMWVpCO4QaATqdPnK5X6brGkCa8acc3aaRpEIM42xJApnqPKzUH86L3 UvwEsNkWm5lEYy0up9MPlur1nZm7Py61S+nMrFxvmrvqrCnnqujuTbr/eOxR5h7xg9lE Gi5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AUl4eWnx; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020aa7804f000000b004fa3a8e00c5si12368pfm.380.2022.03.18.11.46.31; Fri, 18 Mar 2022 11:47:10 -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=@linuxfoundation.org header.s=korg header.b=AUl4eWnx; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235301AbiCRL30 (ORCPT + 99 others); Fri, 18 Mar 2022 07:29:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbiCRL3Z (ORCPT ); Fri, 18 Mar 2022 07:29:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 112B312925D for ; Fri, 18 Mar 2022 04:28:07 -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 A001161735 for ; Fri, 18 Mar 2022 11:28:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D2D8C340E8; Fri, 18 Mar 2022 11:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647602886; bh=XLQdldPHGNEHIsD6t21nuOci19JYv52oxjj5ejLailY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AUl4eWnxAjZyFOZZQFeg+pe4ZX1NO98jHQGDXaPAKwUzDX9kKfj8efmQeuE1CqVRz OZTs+nliTyrlSXQPAwgI1i71ZOjVBXGu31afm7Mltc7AbaKgv2uNHhfH3cgk18QobM Wd5ZuiWnArMRVMl8LQib6pK8o3sS2qIin4MuTptw= Date: Fri, 18 Mar 2022 12:28:02 +0100 From: Greg KH To: Sathish Kumar Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] staging: rtl8712: Fix CamelCase warnings Message-ID: References: <20220318101440.13887-1-skumark1902@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220318101440.13887-1-skumark1902@gmail.com> X-Spam-Status: No, score=-8.6 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 Fri, Mar 18, 2022 at 03:44:40PM +0530, Sathish Kumar wrote: > This patch fixes the checkpatch.pl warnings like: > CHECK: Avoid CamelCase: > + u8 blnEnableRxFF0Filter; > > Signed-off-by: Sathish Kumar > --- > Changes in v2: > - Remove the "bln" prefix > --- > drivers/staging/rtl8712/drv_types.h | 2 +- > drivers/staging/rtl8712/rtl871x_cmd.c | 2 +- > drivers/staging/rtl8712/xmit_linux.c | 4 ++-- > 3 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/rtl8712/drv_types.h b/drivers/staging/rtl8712/drv_types.h > index a44d04effc8b..4de3aad08242 100644 > --- a/drivers/staging/rtl8712/drv_types.h > +++ b/drivers/staging/rtl8712/drv_types.h > @@ -157,7 +157,7 @@ struct _adapter { > struct iw_statistics iwstats; > int pid; /*process id from UI*/ > struct work_struct wk_filter_rx_ff0; > - u8 blnEnableRxFF0Filter; > + u8 enable_rx_ff0_filter; Shouldn't this be a boolean? > spinlock_t lock_rx_ff0_filter; > const struct firmware *fw; > struct usb_interface *pusb_intf; > diff --git a/drivers/staging/rtl8712/rtl871x_cmd.c b/drivers/staging/rtl8712/rtl871x_cmd.c > index acda930722b2..69d3c55ee9e5 100644 > --- a/drivers/staging/rtl8712/rtl871x_cmd.c > +++ b/drivers/staging/rtl8712/rtl871x_cmd.c > @@ -202,7 +202,7 @@ u8 r8712_sitesurvey_cmd(struct _adapter *padapter, > mod_timer(&pmlmepriv->scan_to_timer, > jiffies + msecs_to_jiffies(SCANNING_TIMEOUT)); > padapter->ledpriv.LedControlHandler(padapter, LED_CTL_SITE_SURVEY); > - padapter->blnEnableRxFF0Filter = 0; > + padapter->enable_rx_ff0_filter = 0; > return _SUCCESS; > } > > diff --git a/drivers/staging/rtl8712/xmit_linux.c b/drivers/staging/rtl8712/xmit_linux.c > index 90d34cf9d2ff..d58ae5b387d4 100644 > --- a/drivers/staging/rtl8712/xmit_linux.c > +++ b/drivers/staging/rtl8712/xmit_linux.c > @@ -102,11 +102,11 @@ void r8712_SetFilter(struct work_struct *work) > r8712_write8(adapter, 0x117, newvalue); > > spin_lock_irqsave(&adapter->lock_rx_ff0_filter, irqL); > - adapter->blnEnableRxFF0Filter = 1; > + adapter->enable_rx_ff0_filter = 1; > spin_unlock_irqrestore(&adapter->lock_rx_ff0_filter, irqL); > do { > msleep(100); > - } while (adapter->blnEnableRxFF0Filter == 1); > + } while (adapter->enable_rx_ff0_filter == 1); Ah, that's funny. It's amazing it works at all and that the compiler doesn't optimize this away. This isn't a good pattern to use in kernel code. I know it's not caused by your change here, but perhaps you might want to fix this up to work properly? thanks, greg k-h