Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5997127rwb; Mon, 14 Nov 2022 12:38:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7za8tm2sI27vUUkVdjNreI9624uUETzns4uF30GQqAXyY3W00eUceNsIfxJQdnNcKyxL1h X-Received: by 2002:a05:6402:d51:b0:462:3340:758f with SMTP id ec17-20020a0564020d5100b004623340758fmr12948232edb.37.1668458301090; Mon, 14 Nov 2022 12:38:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668458301; cv=none; d=google.com; s=arc-20160816; b=PBQ4Zdrre4kLAmlLn5CtMj7R0QhLhHVBFaGYsP6tfFPscIrD/YIW6iPGGM/+XsTHam nTMGawCwGk51TJ02UwJTXM6CYx5gxdAA04V9W4SNW2TC9OvIgIOJGqk5fyMYAhxU0Qf8 Swt9VTJpcQMlqxW0Hm8ZZqnHvH8FcZSN1R8fNKb56QKond02VB8XH+3jFF9ZnIBdBy0C PNEi3ULXTMvkU7U6Ph21CPkBesEpw6HrSaiRmBBtT3EZgOapPemFtP6DiFMN3R3JOwTh fbSL/izhAONR6W3LMUdiSUmhOHKBNNx/eBfAaRSviHJOkimIx2Vw1oi8X1H2Yh7TNqUy ashw== 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=sQzqbyft4iPMYkgJwXfvCqwNgbrQqe1lCD4jJDJZADQ=; b=ZePy5jovjIRI+Ds/npElE+bBRjAp8IYk8AsxzzO5empOcYu7ufqyucm/HcWvUwmzAx 8aCU34bxWWobXbi6u0kedrT4UHnTalsEOcFlcU0SHdJaLSnmfuCmzTGoTHb2FxPSd3SM q9kEpcxaFjRRvg6UhT28xJiqmaNt2wYGd7n65Qy04/Nyql1VbJK4U0E0BOjBJpflI4ln XNjXNTLBPFoB3rp2W+HVN0ovH5LfqjzohOQily7MYQjX9E5S1vhUnCGffveVzL7zh3Bh 1+HslvfsspUVivE/qT7rR6U+eF7qeHBPT7P17oHKIqj3rXKw2ns0NJdorI0heTYhu7JX /I/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dE8jYcGB; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t37-20020a056402242500b0046443638c9esi9131977eda.262.2022.11.14.12.37.59; Mon, 14 Nov 2022 12:38:21 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=dE8jYcGB; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237585AbiKNUTz (ORCPT + 88 others); Mon, 14 Nov 2022 15:19:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237540AbiKNUTw (ORCPT ); Mon, 14 Nov 2022 15:19:52 -0500 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 43603BC9C for ; Mon, 14 Nov 2022 12:19:45 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id f7so18974063edc.6 for ; Mon, 14 Nov 2022 12:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sQzqbyft4iPMYkgJwXfvCqwNgbrQqe1lCD4jJDJZADQ=; b=dE8jYcGBcnKicXkp24y7WzOAabIk5bf0+RqUHcnUJcg9ya39nXCN288OTVfl5/FCvI OHqyDpMEQL+uws1fUXaZqyTb/0CgVS4KraGEx1PvEhiPd1850dGHSNpgzTG4k0CRgP7J dWws3z3AqSbPEtkLn6Sg4cOrp/QqDCWLz1t0lIwdYVOS6NW14vAuiUHuKrgVZbonV+EQ N7BpoyJ9Ligzjdj804ZN1oTVTrHf/o563qnzdTN7qrESoPcjgryC/NYGscbDmt7Mu6mn /avm8INepykeZ1K5xxHf0ig1OzGy/S3/SN4Rd1Mj4ycmY+mv6hlIJPjNZ0AiPR0k86Sc s8Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sQzqbyft4iPMYkgJwXfvCqwNgbrQqe1lCD4jJDJZADQ=; b=DphZaOMqg8Z7kWpgtn6/ftEIlEVn8++DKiLvH9TDE9+I1QrlWJjKHBabu6whoJjj/O +Auj4CQ6YXmi4O+gufuBIxrADUW9gBoRdntjDU3RNkgtXG4jZxTpgqSrFffE4oew85gy R8Wg/iOfNzj2xpa5utb615Tdy1c6Y/v63SUlXssgvnwESqlXapuR/1CMsmXYEx9T3rae 4W/AqF+thV7wzi5UoyGFrqUKWCR3jKmeFXq6OIsdDsWk7+zHivIjZIPBX20R1/F14Ex6 gNnHwMKAF7DTsceI0dGAkTaSC4h9y5hKJak9KPRGSnfTUhLKBpsBAkGymSfhhoP30zc/ 9M4Q== X-Gm-Message-State: ANoB5pmfnYCrAlfEQRn3rzA74MLgLHU9dF3JKIrvTKoM34tthwtd5Fiz g26cpFd/hIZqKIintOcztAhfuZmXs4E= X-Received: by 2002:a05:6402:284:b0:467:481f:df2a with SMTP id l4-20020a056402028400b00467481fdf2amr11980860edv.324.1668457183747; Mon, 14 Nov 2022 12:19:43 -0800 (PST) Received: from ?IPV6:2003:c7:8f35:4b62:6623:1f88:59ad:8b23? (p200300c78f354b6266231f8859ad8b23.dip0.t-ipconnect.de. [2003:c7:8f35:4b62:6623:1f88:59ad:8b23]) by smtp.gmail.com with ESMTPSA id fg15-20020a1709069c4f00b0078d4ee47c82sm4530880ejc.129.2022.11.14.12.19.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Nov 2022 12:19:43 -0800 (PST) Message-ID: <480340b3-c1c1-74b5-1889-f49dcb644469@gmail.com> Date: Mon, 14 Nov 2022 21:19:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v3] staging: vt6655: change the function name s_vFillRTSHead Content-Language: en-US To: Tanjuate Brunostar , gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev References: From: Philipp Hortmann In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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-kernel@vger.kernel.org On 11/14/22 19:29, Tanjuate Brunostar wrote: > Remove the use of Hungarian notation, which is not used in the Linux > kernel. Reported by checkpatch > Add indentation to the affected function to follow the Linux kernel > coding style. This improves visibility > > Signed-off-by: Tanjuate Brunostar > --- > v2: corrected confusing changlog message on this patch > v3: removed unnecessary function prototype > > drivers/staging/vt6655/rxtx.c | 40 ++++++++++++----------------------- > 1 file changed, 13 insertions(+), 27 deletions(-) > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > index 31ae99b3cb35..715b323cd2a8 100644 > --- a/drivers/staging/vt6655/rxtx.c > +++ b/drivers/staging/vt6655/rxtx.c > @@ -23,7 +23,7 @@ > * s_uGetTxRsvTime- get frame reserved time > * s_vFillCTSHead- fulfill CTS ctl header > * s_vFillFragParameter- Set fragment ctl parameter. > - * s_vFillRTSHead- fulfill RTS ctl header > + * fill_rts_header- fulfill RTS ctl header > * s_vFillTxKey- fulfill tx encrypt key > * s_vSWencryption- Software encrypt header > * vDMA0_tx_80211- tx 802.11 frame via dma0 > @@ -85,16 +85,6 @@ static const unsigned short fb_opt1[2][5] = { > #define DATADUR_A_F1 13 > > /*--------------------- Static Functions --------------------------*/ > -static void s_vFillRTSHead(struct vnt_private *pDevice, > - unsigned char byPktType, > - void *pvRTS, > - unsigned int cbFrameLength, > - bool bNeedAck, > - bool bDisCRC, > - struct ieee80211_hdr *hdr, > - unsigned short wCurrentRate, > - unsigned char byFBOption); > - > static void s_vGenerateTxParameter(struct vnt_private *pDevice, > unsigned char byPktType, > struct vnt_tx_fifo_head *, > @@ -555,19 +545,15 @@ s_uFillDataHead( > return buf->duration; > } > > -static > -void > -s_vFillRTSHead( > - struct vnt_private *pDevice, > - unsigned char byPktType, > - void *pvRTS, > - unsigned int cbFrameLength, > - bool bNeedAck, > - bool bDisCRC, > - struct ieee80211_hdr *hdr, > - unsigned short wCurrentRate, > - unsigned char byFBOption > -) > +static void fill_rts_header(struct vnt_private *pDevice, > + unsigned char byPktType, > + void *pvRTS, > + unsigned int cbFrameLength, > + bool bNeedAck, > + bool bDisCRC, > + struct ieee80211_hdr *hdr, > + unsigned short wCurrentRate, > + unsigned char byFBOption) > { > unsigned int uRTSFrameLen = 20; > > @@ -912,7 +898,7 @@ s_vGenerateTxParameter( > buf->rrv_time_a = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); > buf->rrv_time_b = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, pDevice->byTopCCKBasicRate, bNeedACK); > > - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > + fill_rts_header(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > } else {/* RTS_needless, PCF mode */ > struct vnt_rrv_time_cts *buf = pvRrvTime; > > @@ -931,7 +917,7 @@ s_vGenerateTxParameter( > buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); > > /* Fill RTS */ > - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > + fill_rts_header(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > } else if (!pvRTS) {/* RTS_needless, non PCF mode */ > struct vnt_rrv_time_ab *buf = pvRrvTime; > > @@ -945,7 +931,7 @@ s_vGenerateTxParameter( > buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, wCurrentRate, bNeedACK); > > /* Fill RTS */ > - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > + fill_rts_header(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > } else { /* RTS_needless, non PCF mode */ > struct vnt_rrv_time_ab *buf = pvRrvTime; > Hi, I cannot apply your patch. Here my git infos: git remote show origin * remote origin Fetch URL: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git ... git branch -a my branch: staging-testing Bye Philipp