Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1006215ybh; Wed, 15 Jul 2020 23:57:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/NunL7o4DkrbgmQTGmtQKYqnVlSZ2EspsA6PwaBVQAYddNMFy7EHNAs3gnSue/vZ+x1bA X-Received: by 2002:a05:6402:164f:: with SMTP id s15mr3088655edx.239.1594882631143; Wed, 15 Jul 2020 23:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594882631; cv=none; d=google.com; s=arc-20160816; b=DubYzEHRC7XjCHLPro/ce2YBjWarMTKD69Iof64K/xThvPdjUBF+uRam5CPLv4N03o T28Pjy+doSBnGiSKRy0gtBIEFxukQl8lhq/U7nz76YAd4AANOnRYOBes5leIzLQzhD4R HlwSCq+tqRTW+YyVU6PMfNfzhBbc2lTkJyKto16dtwgbGEaTb8qn6KmBxr4Ksn2/XPz9 eoZeqhJwT7U6/z3rfywbizfHvV5qJ1LMhLpoN7ZtJMRzUg9ZOBp4S0eChU7LHMeD1F1f zJgtsZxydLabPr4u4d1P1NqtUjpS7AmncxMr+QWGJVVAYjLdCGSJRLNWdLfu0SE8WXtw h6vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BL3VTny7gABq09nqE9HOg8efQIfZti5RsRxWb6yjtBA=; b=H8Yt03mpOSkr12e2Q78FRZ0QS8HG2ozSgBmuwWHLEbDhH26jwcYT0N+wouLFk9khaf +wegYigEWJrAhXJMpRBSHIgDbi5hKne4cxmmzo4czYpOpzmONTgpDkO5f7HN3gwRJ32g xrW5mWYNf5jGNZulU9/cAbcSNfumxb2wxJcihh8zlG3b3o95ne/3w9lZ9peTB4RDRUqw ahkiG0g8mBuLI2/mWnANFRlbVEKCkH3XT7jApCUL95gVV5Si0RmzAFuu6Kd0osFhk2QU DDnGFZ118Ji0AhjjEgsLUm3iDrH/6iSwNqSKj2vbGtgnUwm/myARXMA4HSsd5cwI/+2K IJ3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si2720145edv.475.2020.07.15.23.56.48; Wed, 15 Jul 2020 23:57:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727833AbgGPGya (ORCPT + 99 others); Thu, 16 Jul 2020 02:54:30 -0400 Received: from lonlinode-sdnproxy-1.icoremail.net ([139.162.193.133]:51568 "HELO lonlinode-sdnproxy-1.icoremail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1725921AbgGPGya (ORCPT ); Thu, 16 Jul 2020 02:54:30 -0400 X-Greylist: delayed 711 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Jul 2020 02:54:28 EDT Received: from localhost.localdomain (unknown [106.19.113.251]) by c1app1 (Coremail) with SMTP id AQINCgDnyZLC9g9f7dSfAQ--.20987S2; Thu, 16 Jul 2020 14:42:12 +0800 (CST) From: Qiu Wenbo To: Greg Kroah-Hartman , Larry Finger , Florian Schilhabel , Linux Driver Project Developer List Cc: Qiu Wenbo , Christophe JAILLET , Nishka Dasgupta , Dan Carpenter , Kees Cook , Marco Villegas , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8712: Fixes coding style in several headers Date: Thu, 16 Jul 2020 14:41:12 +0800 Message-Id: <20200716064118.61243-1-qiuwenbo@phytium.com.cn> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQINCgDnyZLC9g9f7dSfAQ--.20987S2 X-Coremail-Antispam: 1UD129KBjvJXoWxGryUGF48WrWrGw4kKFW7Arb_yoW5tFWrpr srX3ySyw1Uta1UWrnxtFyUuF1fKa4xCrWkG39rt34YvF1rurWFgFy7Aa4UJr43Gas5AF13 tFWUGry5W34UKrDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUU9Y14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26F 4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv 7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r 1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02 628vn2kIc2xKxwCY02Avz4vE14v_GF1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7 v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF 1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIx AIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyU JwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCT nIWIevJa73UjIFyTuYvjfUndb1UUUUU X-Originating-IP: [106.19.113.251] X-CM-SenderInfo: 5tlx4vhqerq15k1wx33pof0zgofq/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes warnings in several headers found by the checkpatch.pl tool. Signed-off-by: Qiu Wenbo --- drivers/staging/rtl8712/rtl871x_event.h | 15 ++++++++++----- drivers/staging/rtl8712/rtl871x_io.h | 3 ++- drivers/staging/rtl8712/rtl871x_pwrctrl.h | 15 ++++++++++----- drivers/staging/rtl8712/rtl871x_xmit.h | 15 ++++++++++----- 4 files changed, 32 insertions(+), 16 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_event.h b/drivers/staging/rtl8712/rtl871x_event.h index d9a5476d2426..0e59d0ee6aae 100644 --- a/drivers/staging/rtl8712/rtl871x_event.h +++ b/drivers/staging/rtl8712/rtl871x_event.h @@ -78,13 +78,16 @@ struct event_node { unsigned char *node; unsigned char evt_code; unsigned short evt_sz; - /*volatile*/ int *caller_ff_tail; + /*volatile*/ + int *caller_ff_tail; int caller_ff_sz; }; struct c2hevent_queue { - /*volatile*/ int head; - /*volatile*/ int tail; + /*volatile*/ + int head; + /*volatile*/ + int tail; struct event_node nodes[C2HEVENT_SZ]; unsigned char seq; }; @@ -92,8 +95,10 @@ struct c2hevent_queue { #define NETWORK_QUEUE_SZ 4 struct network_queue { - /*volatile*/ int head; - /*volatile*/ int tail; + /*volatile*/ + int head; + /*volatile*/ + int tail; struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ]; }; diff --git a/drivers/staging/rtl8712/rtl871x_io.h b/drivers/staging/rtl8712/rtl871x_io.h index c20dd5a6bbd1..2e269b71072c 100644 --- a/drivers/staging/rtl8712/rtl871x_io.h +++ b/drivers/staging/rtl8712/rtl871x_io.h @@ -101,7 +101,8 @@ struct _io_ops { struct io_req { struct list_head list; u32 addr; - /*volatile*/ u32 val; + /*volatile*/ + u32 val; u32 command; u32 status; u8 *pbuf; diff --git a/drivers/staging/rtl8712/rtl871x_pwrctrl.h b/drivers/staging/rtl8712/rtl871x_pwrctrl.h index dd5a79f90b1a..e6b740c09120 100644 --- a/drivers/staging/rtl8712/rtl871x_pwrctrl.h +++ b/drivers/staging/rtl8712/rtl871x_pwrctrl.h @@ -77,14 +77,19 @@ struct reportpwrstate_parm { struct pwrctrl_priv { struct mutex mutex_lock; - /*volatile*/ u8 rpwm; /* requested power state for fw */ + /*volatile*/ + u8 rpwm; /* requested power state for fw */ /* fw current power state. updated when 1. read from HCPWM or * 2. driver lowers power level */ - /*volatile*/ u8 cpwm; - /*volatile*/ u8 tog; /* toggling */ - /*volatile*/ u8 cpwm_tog; /* toggling */ - /*volatile*/ u8 tgt_rpwm; /* wanted power state */ + /*volatile*/ + u8 cpwm; + /*volatile*/ + u8 tog; /* toggling */ + /*volatile*/ + u8 cpwm_tog; /* toggling */ + /*volatile*/ + u8 tgt_rpwm; /* wanted power state */ uint pwr_mode; uint smart_ps; uint alives; diff --git a/drivers/staging/rtl8712/rtl871x_xmit.h b/drivers/staging/rtl8712/rtl871x_xmit.h index f227828094bf..6d2e12b35670 100644 --- a/drivers/staging/rtl8712/rtl871x_xmit.h +++ b/drivers/staging/rtl8712/rtl871x_xmit.h @@ -182,11 +182,16 @@ struct sta_xmit_priv { }; struct hw_txqueue { - /*volatile*/ sint head; - /*volatile*/ sint tail; - /*volatile*/ sint free_sz; /*in units of 64 bytes*/ - /*volatile*/ sint free_cmdsz; - /*volatile*/ sint txsz[8]; + /*volatile*/ + sint head; + /*volatile*/ + sint tail; + /*volatile*/ + sint free_sz; /*in units of 64 bytes*/ + /*volatile*/ + sint free_cmdsz; + /*volatile*/ + sint txsz[8]; uint ff_hwaddr; uint cmd_hwaddr; sint ac_tag; -- 2.27.0