Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2306593pxp; Mon, 21 Mar 2022 16:28:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3VagPYA48uJDv7P16v0ocGOlUNpQ1MmfMviyZonNkONwkLMxw7AoeHON2wvEvmnevXXGP X-Received: by 2002:a17:90b:4f8d:b0:1c6:408b:6b0d with SMTP id qe13-20020a17090b4f8d00b001c6408b6b0dmr1645146pjb.90.1647905303044; Mon, 21 Mar 2022 16:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647905303; cv=none; d=google.com; s=arc-20160816; b=a+JMiAyLiQPLcKbzgVUaAg0KOcDjSzltPo7N2lUrVs9GEV+sVhPpcpUl3DF4uSshSq y2JtxKYfNdli/1XpBRsMde8ThD3b6pNFXbbvLRoKL63EpBnH9EHXZYAlzVkuMKHLjJpm lCf9+xw5qlm1mOiszg3ZRC9CCDVase3MnX/FCM+OHOxQWumEaqrXITvoTwjQIqmvM/wZ 3iEAT85TWOINfOxCdMa6k1gJsnTLhW38GiyFG69E5qrYBmR3BLniHjL2J9/0hmo+Uqmt zG+sb6NeXKts6jsijq9kaqYFzV9fSCHpG73C8FRwNzkX6BEbQjv5MuuKf/X0Z+riT0O+ w+sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mQVeuWDN9J1yJyMFSCKrDaWCEtSDGr5BIpmWKndqjqU=; b=Sr0zeEhXAvOS6IPMshh3FlPA9wypkdPlj8mh/nm1dbMxno66LI99Dw0yCTp0wHabKG ncfyzEtq71sQSgUmZyQhVUsUssLuryyLR3jtQBcxiAQhHyzTzX8vd1OYEsZwem+1fkpT ecvlZ05wtiSKchsYpB8YCtdUnFYQzL5om3SzSwSf+8xtTYS+qdK94nLONP4mTzGhsx1o qmjHIZdOO+XDoHMNRzc4/AClwcuHU7UHdWcw2xzs2eiWNoDxfvGlQtP41uzHdhKk8/rF p3w90dZOwD9CrmK2kKjflxX2JwSbBOZk5WGT/CY1OqKftrxiNf/J0ppiO0Rvzypv8LGX GZUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=il07ih78; 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 a16-20020a056a000c9000b004fa6a155d5esi9399849pfv.128.2022.03.21.16.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:28:23 -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=il07ih78; 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 CF4FD4616F1; Mon, 21 Mar 2022 15:18:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345960AbiCUMHf (ORCPT + 99 others); Mon, 21 Mar 2022 08:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236862AbiCUMHe (ORCPT ); Mon, 21 Mar 2022 08:07:34 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4933F71A3B for ; Mon, 21 Mar 2022 05:06:08 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d19so15217833pfv.7 for ; Mon, 21 Mar 2022 05:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=mQVeuWDN9J1yJyMFSCKrDaWCEtSDGr5BIpmWKndqjqU=; b=il07ih78+2jqROVK64V1q8dH8fuvuEUVpuFFYuoV9+FUaWECoUWPLX1EGjh2oTzcAA 6Nc5ZhfANhok56d6bAs5Q3AvdhsQm5kKSNFlrVXf/M3Vl/CfUUeKpLo1YS917+HwP3Gt /VUOYUIlfE68hEnUoNmKmbzLUIIFQ7qwhDb8wj3UGZEVm7re7NSt6rEgMxm8FKX6Wnf+ F1BmE/uiSfXCGOU0p0Q9mxEiy1RNvYw6cfHG3GBWsvNJzc4eWC/PsRrsCmF9jL4FfXA5 OyhxkvWKwF0S6qH3JYiM0jl00ipXcNTD0u/C4IMIjo9tqcu3I/MgCb/k5iRgn2S7o/dO rlXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=mQVeuWDN9J1yJyMFSCKrDaWCEtSDGr5BIpmWKndqjqU=; b=vXpbjHrD4vKghRwF57orIHQ1EBFDZuv2z7vv/kEfEZLYBKjvcUF2Im4h8aMS37PU5J H1o2xM9Ad/dTU0dkyJWSXlUBUUAjc6jTw6Lup/kNa9Ge+szY9Kb4KnBOXd6Vf7uaCw72 vnfF06I5JLT+AjImybLA5mD4UWrmXbILNQVkgCuHQvtxRxtZq9fxs8RWksOxBJvOZOHR xNworgIdJJhnqFHrgLfrQPRZxOfSktXpgwwODk2RHo7IfMVoVb4xmC5g5HW8jpP3HSaK 0JlZBIFrgLtmwYO+JIwll6RB81ZCfZwGXAZpul2soq1NCBO2ws9mZhiv1Sv5m0+zcWR+ Udrg== X-Gm-Message-State: AOAM530GYBzn6Mdb6XcYZII8NGoMqq0okefyqjYM0GXgLhiG/nXpJB0b EaCQFfKgUPtHAP1o0yG3LyzYDHt7VtBH3Q== X-Received: by 2002:a63:9d48:0:b0:378:c359:fcbf with SMTP id i69-20020a639d48000000b00378c359fcbfmr17593387pgd.371.1647864367768; Mon, 21 Mar 2022 05:06:07 -0700 (PDT) Received: from [192.168.225.67] ([157.49.192.24]) by smtp.gmail.com with ESMTPSA id kb10-20020a17090ae7ca00b001bfad03c750sm21996931pjb.26.2022.03.21.05.06.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Mar 2022 05:06:07 -0700 (PDT) Message-ID: <6f088754-49e7-143b-7735-d94b0199ee33@gmail.com> Date: Mon, 21 Mar 2022 17:36:01 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2] staging: rtl8712: Fix CamelCase warnings Content-Language: en-US To: Greg KH Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20220318101440.13887-1-skumark1902@gmail.com> From: Sathish Kumar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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,NICE_REPLY_A, 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 18/03/22 4:58 pm, Greg KH wrote: > 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? Yes. It should be boolean(dealing only with either 0 or 1). Will fix this. > >> 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 Do you mean "do { msleep(); } while()" here? > 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 Sure. Will fix this up to work properly. Thanks, Sathish