Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2878732lqp; Mon, 25 Mar 2024 11:47:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1b1U7N6kLC85xpdNscLQAmeaZiximBO7S2lsLzCl53jXsEwRZGHxwWJkin5EkHQymq0g3pUYzBfScUNxF6e0aB0VyOuhgJXbkXZLSXQ== X-Google-Smtp-Source: AGHT+IFSJdGWyfIiRRRht8WC/t7LYgVofzWckWwwMr61nMqW/p/41BkK5dwY+qucN7xYS6AkavAg X-Received: by 2002:a25:bac9:0:b0:dda:c9b0:e489 with SMTP id a9-20020a25bac9000000b00ddac9b0e489mr2999773ybk.37.1711392420223; Mon, 25 Mar 2024 11:47:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711392420; cv=pass; d=google.com; s=arc-20160816; b=fBXntqIr8W2TyM98z6ZgH/90roAUQCkG4ocXWVam5+3HU71YoNviYW03BG9Ee2QFp9 z7fCSCM9BAdE+evMlOHFsFtlFLf09atRFyrN57k2+ncJkQIOW+Y9wqG1c9ayz1uitgh2 2K43ob+Qk2ZKjxPUmmQ1YNnh/apfIYfEQL4+sg1YJ/i2knJ4EOXW2ka5R3yOhj2U8TTT JoIxk1C4v45/jVzrzswgfpikJucFb4pKvZ2hU4kTAIE63eFiugM4eQaoovHMIqRk79b2 IIYSUn/1+rkCRJ2Pjwkxrcq72MC/IoBx6HVHroHvU7LTd+wo4uT01FPIK+WsMgkIVPYA u66A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W44lHbk4uH0qeIgUHuGQzwoSpdR1+E6FLp/tscDYwMs=; fh=aMJ0jtR6UXdOIAGxel6ZskzmkNJFBYVKqxxXACFL7qY=; b=q4lklgne9xOYCzXJ0QRaf6UZG5lhfN/m/uSr/qvbQ9WzXg81QuwbA4wuWH9RGKRfoL Qhz3dMdjTCOVYgqa4p2vCA8rM6ZkNZ74ZgkvXl5Vn2x1JLKgMEq3/w788ecLDfRvJzQb NMymnq4q8XV7hSDpLglbHU4mUbfpsUQu5wRuexMEF1O1Tm/SCUsW8BgMq1nOY3u2NJ1e xJMJ+cKr+JnyixON73ktZnCU7/XcsTWZ2n7/Sd6wgWKU2N9xN6583lmtH0wvSkIgV3mC E3an6H2Y3D6dz+IpIVJ285UmPllvy+l5AgZvKyw4KVUIbJHfBYjCk8WDGWSsKrMwXNC7 gjOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="uuC/Ui9O"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-117721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h8-20020ac85848000000b0043162b7e0f1si1169079qth.202.2024.03.25.11.47.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:47:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="uuC/Ui9O"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-117721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 871601C3607D for ; Mon, 25 Mar 2024 18:46:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AF116FB8; Mon, 25 Mar 2024 18:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uuC/Ui9O" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95EE04C92; Mon, 25 Mar 2024 18:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711391749; cv=none; b=lDn+cVyrVwlEfX1LPQCvGz5RitfX157R4ZYBHSuzEXGepJlRTlvLr5QNiIq6/bVYvAQdj5mLp7zENUstAqWMSjze/ygLZPugpwcZOHxkDK4gaXfiZsXbRcB/Ug5pX/ShCQ/yxGlokH8GZyBX8xYKsk8/Ruj6dg/DvEZKe5hxIuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711391749; c=relaxed/simple; bh=5CdMefyATBgGCHIRqMk7725ESPjfqM7SgvpVwBuNyME=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zc9Gs0hO7Bwi1aPx8e18umBsXz/fNNgqAJQgjGZ55hkmh5NdlXtRSx28otef393VXAvMkkgmBNI6UAc8OLgTyZknpyOiEb0AWV6MH1G/ZFAWZAlur63v/4xKJNah4ZpLq38AgjgqzKN8KOjJvEFc/OoaaK7SCRZXv46kVBu2mIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uuC/Ui9O; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC207C43394; Mon, 25 Mar 2024 18:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711391749; bh=5CdMefyATBgGCHIRqMk7725ESPjfqM7SgvpVwBuNyME=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uuC/Ui9O10UnSvEt3iSAcwMp8qy8/bdOuAIOMGkpJgKQQrQIqibm0PSIeNt7TP1gN s1tmWqXJWECaehNVUUIlbLxE5Lpw1VhN7DewcaaSaTwCPm5u5ifX/gRV6hEVGELW+x XsBlEWCjrT6HjMTSe59NQsZtW0JnkZQoVYbYeacA= Date: Mon, 25 Mar 2024 19:35:46 +0100 From: Greg KH To: Ayush Tiwari Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: rtl8712: Fix instances of lines ending with '(' Message-ID: <2024032546-earthworm-ardently-ed12@gregkh> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Mar 25, 2024 at 11:24:24PM +0530, Ayush Tiwari wrote: > Fix instances of lines ending with '(' to address checkpatch warning > "lines should not add with a '(' " and conform to common kernel coding > style. > > Signed-off-by: Ayush Tiwari > --- > drivers/staging/rtl8712/rtl871x_ioctl_rtl.h | 123 +++++++------------- > 1 file changed, 41 insertions(+), 82 deletions(-) > > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_rtl.h b/drivers/staging/rtl8712/rtl871x_ioctl_rtl.h > index 7c0b880ac686..70d48e6b4112 100644 > --- a/drivers/staging/rtl8712/rtl871x_ioctl_rtl.h > +++ b/drivers/staging/rtl8712/rtl871x_ioctl_rtl.h > @@ -18,92 +18,51 @@ > #include "drv_types.h" > > /*************** oid_rtl_seg_01_01 **************/ > -uint oid_rt_get_signal_quality_hdl( > - struct oid_par_priv *poid_par_priv);/*84*/ > -uint oid_rt_get_small_packet_crc_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_middle_packet_crc_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_large_packet_crc_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_tx_retry_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_rx_retry_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_rx_total_packet_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_tx_beacon_ok_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_tx_beacon_err_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_rx_icv_err_hdl( > - struct oid_par_priv *poid_par_priv);/*93*/ > -uint oid_rt_set_encryption_algorithm_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_preamble_mode_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_ap_ip_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_channelplan_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_set_channelplan_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_set_preamble_mode_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_set_bcn_intvl_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_dedicate_probe_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_total_tx_bytes_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_total_rx_bytes_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_current_tx_power_level_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_enc_key_mismatch_count_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_enc_key_match_count_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_channel_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_hardware_radio_off_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_key_mismatch_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_supported_wireless_mode_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_channel_list_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_scan_in_progress_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_forced_data_rate_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_wireless_mode_for_scan_list_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_get_bss_wireless_mode_hdl( > - struct oid_par_priv *poid_par_priv); > -uint oid_rt_scan_with_magic_packet_hdl( > - struct oid_par_priv *poid_par_priv); > +uint oid_rt_get_signal_quality_hdl(struct oid_par_priv *poid_par_priv); /*84*/ > +uint oid_rt_get_small_packet_crc_hdl(struct oid_par_priv *poid_par_priv); Why are you keeping these functions that no one calls around at all? Why not remove the ones that are not needed, and then, after cleaning that all up, then worry about the few that are left to get into proper shape here. I would bet most of these aren't needed at all, right? thanks, greg k-h