* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
@ 2014-10-26 19:52 Nicholas Krause
2014-10-28 8:24 ` Jeff Kirsher
0 siblings, 1 reply; 28+ messages in thread
From: Nicholas Krause @ 2014-10-26 19:52 UTC (permalink / raw)
To: kernelnewbies
Fix all opening and closing braces issues reported by checkpatch.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/staging/rtl8723au/core/rtw_ap.c | 138 ++++++++++----------------------
1 file changed, 43 insertions(+), 95 deletions(-)
diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c
index 75ae249..3301a2c 100644
--- a/drivers/staging/rtl8723au/core/rtw_ap.c
+++ b/drivers/staging/rtl8723au/core/rtw_ap.c
@@ -231,12 +231,10 @@ void expire_timeout_chk23a(struct rtw_adapter *padapter)
psta->expire_to--;
}
- if (psta->expire_to <= 0)
- {
+ if (psta->expire_to <= 0) {
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- if (padapter->registrypriv.wifi_spec == 1)
- {
+ if (padapter->registrypriv.wifi_spec == 1) {
psta->expire_to = pstapriv->expire_to;
continue;
}
@@ -308,15 +306,12 @@ void expire_timeout_chk23a(struct rtw_adapter *padapter)
ret = issue_nulldata23a(padapter, psta->hwaddr, 0, 3, 50);
psta->keep_alive_trycnt++;
- if (ret == _SUCCESS)
- {
+ if (ret == _SUCCESS) {
DBG_8723A("asoc check, sta(" MAC_FMT ") is alive\n", MAC_ARG(psta->hwaddr));
psta->expire_to = pstapriv->expire_to;
psta->keep_alive_trycnt = 0;
continue;
- }
- else if (psta->keep_alive_trycnt <= 3)
- {
+ } else if (psta->keep_alive_trycnt <= 3) {
DBG_8723A("ack check for asoc expire, keep_alive_trycnt =%d\n", psta->keep_alive_trycnt);
psta->expire_to = 1;
continue;
@@ -363,8 +358,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
return;
/* b/g mode ra_bitmap */
- for (i = 0; i < sizeof(psta->bssrateset); i++)
- {
+ for (i = 0; i < sizeof(psta->bssrateset); i++) {
if (psta->bssrateset[i])
tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta->bssrateset[i]&0x7f);
}
@@ -406,8 +400,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
raid = networktype_to_raid23a(sta_band);
init_rate = get_highest_rate_idx23a(tx_ra_bitmap&0x0fffffff)&0x3f;
- if (psta->aid < NUM_STA)
- {
+ if (psta->aid < NUM_STA) {
u8 arg = 0;
arg = psta->mac_id&0x1f;
@@ -436,9 +429,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
psta->raid = raid;
psta->init_rate = init_rate;
- }
- else
- {
+ } else {
DBG_8723A("station aid %d exceed the max number\n", psta->aid);
}
}
@@ -453,8 +444,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
struct wlan_bssid_ex *pcur_network = &pmlmepriv->cur_network.network;
struct sta_info *psta = rtw_get_bcmc_stainfo23a(padapter);
- if (psta)
- {
+ if (psta) {
psta->aid = 0;/* default set to 0 */
psta->mac_id = psta->aid + 1;
@@ -474,8 +464,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
psta->bssratelen = supportRateNum;
/* b/g mode ra_bitmap */
- for (i = 0; i < supportRateNum; i++)
- {
+ for (i = 0; i < supportRateNum; i++) {
if (psta->bssrateset[i])
tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta->bssrateset[i]&0x7f);
}
@@ -522,9 +511,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
psta->state = _FW_LINKED;
spin_unlock_bh(&psta->lock);
- }
- else
- {
+ } else {
DBG_8723A("add_RATid23a_bmc_sta error!\n");
}
}
@@ -561,8 +548,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info
/* ERP */
VCS_update23a(padapter, psta);
/* HT related cap */
- if (phtpriv_sta->ht_option)
- {
+ if (phtpriv_sta->ht_option) {
/* check if sta supports rx ampdu */
phtpriv_sta->ampdu_enable = phtpriv_ap->ampdu_enable;
@@ -580,9 +566,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info
psta->qos_option = true;
- }
- else
- {
+ } else {
phtpriv_sta->ampdu_enable = false;
phtpriv_sta->sgi = false;
@@ -1258,8 +1242,7 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
spin_lock_bh(&pmlmepriv->bcn_update_lock);
- switch (ie_id)
- {
+ switch (ie_id) {
case 0xFF:
/* 8: TimeStamp, 2: Beacon Interval 2:Capability */
update_bcn_fixed_ie(padapter);
@@ -1386,8 +1369,7 @@ static int rtw_ht_operation_update(struct rtw_adapter *padapter)
void associated_clients_update23a(struct rtw_adapter *padapter, u8 updated)
{
/* update associated stations cap. */
- if (updated == true)
- {
+ if (updated == true) {
struct list_head *phead, *plist, *ptmp;
struct sta_info *psta;
struct sta_priv *pstapriv = &padapter->stapriv;
@@ -1413,34 +1395,27 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- if (!(psta->flags & WLAN_STA_SHORT_PREAMBLE))
- {
- if (!psta->no_short_preamble_set)
- {
+ if (!(psta->flags & WLAN_STA_SHORT_PREAMBLE)) {
+ if (!psta->no_short_preamble_set) {
psta->no_short_preamble_set = 1;
pmlmepriv->num_sta_no_short_preamble++;
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_preamble == 1))
- {
+ (pmlmepriv->num_sta_no_short_preamble == 1)) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
}
- }
- else
- {
- if (psta->no_short_preamble_set)
- {
+ } else {
+ if (psta->no_short_preamble_set) {
psta->no_short_preamble_set = 0;
pmlmepriv->num_sta_no_short_preamble--;
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_preamble == 0))
- {
+ (pmlmepriv->num_sta_no_short_preamble == 0)) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
@@ -1448,32 +1423,25 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
}
}
- if (psta->flags & WLAN_STA_NONERP)
- {
- if (!psta->nonerp_set)
- {
+ if (psta->flags & WLAN_STA_NONERP) {
+ if (!psta->nonerp_set) {
psta->nonerp_set = 1;
pmlmepriv->num_sta_non_erp++;
- if (pmlmepriv->num_sta_non_erp == 1)
- {
+ if (pmlmepriv->num_sta_non_erp == 1) {
beacon_updated = true;
update_beacon23a(padapter, WLAN_EID_ERP_INFO, NULL, true);
}
}
- }
- else
- {
- if (psta->nonerp_set)
- {
+ } else {
+ if (psta->nonerp_set) {
psta->nonerp_set = 0;
pmlmepriv->num_sta_non_erp--;
- if (pmlmepriv->num_sta_non_erp == 0)
- {
+ if (pmlmepriv->num_sta_non_erp == 0) {
beacon_updated = true;
update_beacon23a(padapter, WLAN_EID_ERP_INFO, NULL, true);
}
@@ -1481,42 +1449,34 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
}
- if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT_TIME))
- {
- if (!psta->no_short_slot_time_set)
- {
+ if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT_TIME)) {
+ if (!psta->no_short_slot_time_set) {
psta->no_short_slot_time_set = 1;
pmlmepriv->num_sta_no_short_slot_time++;
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_slot_time == 1))
- {
+ (pmlmepriv->num_sta_no_short_slot_time == 1)) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
}
- }
- else
- {
- if (psta->no_short_slot_time_set)
- {
+ } else {
+ if (psta->no_short_slot_time_set) {
psta->no_short_slot_time_set = 0;
pmlmepriv->num_sta_no_short_slot_time--;
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_slot_time == 0))
- {
+ (pmlmepriv->num_sta_no_short_slot_time == 0)) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
}
}
- if (psta->flags & WLAN_STA_HT)
- {
+ if (psta->flags & WLAN_STA_HT) {
u16 ht_capab = le16_to_cpu(psta->htpriv.ht_cap.cap_info);
DBG_8723A("HT: STA " MAC_FMT " HT Capabilities "
@@ -1549,9 +1509,7 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
pmlmepriv->num_sta_ht_20mhz);
}
- }
- else
- {
+ } else {
if (!psta->no_ht_set) {
psta->no_ht_set = 1;
pmlmepriv->num_sta_no_ht++;
@@ -1564,8 +1522,7 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
}
}
- if (rtw_ht_operation_update(padapter) > 0)
- {
+ if (rtw_ht_operation_update(padapter) > 0) {
update_beacon23a(padapter, WLAN_EID_HT_CAPABILITY, NULL, false);
update_beacon23a(padapter, WLAN_EID_HT_OPERATION, NULL, true);
}
@@ -1589,8 +1546,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
psta->no_short_preamble_set = 0;
pmlmepriv->num_sta_no_short_preamble--;
if (pmlmeext->cur_wireless_mode > WIRELESS_11B
- && pmlmepriv->num_sta_no_short_preamble == 0)
- {
+ && pmlmepriv->num_sta_no_short_preamble == 0) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
@@ -1599,8 +1555,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
if (psta->nonerp_set) {
psta->nonerp_set = 0;
pmlmepriv->num_sta_non_erp--;
- if (pmlmepriv->num_sta_non_erp == 0)
- {
+ if (pmlmepriv->num_sta_non_erp == 0) {
beacon_updated = true;
update_beacon23a(padapter, WLAN_EID_ERP_INFO,
NULL, true);
@@ -1611,8 +1566,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
psta->no_short_slot_time_set = 0;
pmlmepriv->num_sta_no_short_slot_time--;
if (pmlmeext->cur_wireless_mode > WIRELESS_11B
- && pmlmepriv->num_sta_no_short_slot_time == 0)
- {
+ && pmlmepriv->num_sta_no_short_slot_time == 0) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
@@ -1633,8 +1587,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
pmlmepriv->num_sta_ht_20mhz--;
}
- if (rtw_ht_operation_update(padapter) > 0)
- {
+ if (rtw_ht_operation_update(padapter) > 0) {
update_beacon23a(padapter, WLAN_EID_HT_CAPABILITY, NULL, false);
update_beacon23a(padapter, WLAN_EID_HT_OPERATION, NULL, true);
}
@@ -1654,8 +1607,7 @@ u8 ap_free_sta23a(struct rtw_adapter *padapter, struct sta_info *psta, bool acti
if (!psta)
return beacon_updated;
- if (active == true)
- {
+ if (active == true) {
/* tear down Rx AMPDU */
send_delba23a(padapter, 0, psta->hwaddr);/* recipient */
@@ -1783,13 +1735,10 @@ void sta_info_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
psta->qos_option = 0;
/* update 802.11n ht cap. */
- if (WLAN_STA_HT&flags)
- {
+ if (WLAN_STA_HT&flags) {
psta->htpriv.ht_option = true;
psta->qos_option = 1;
- }
- else
- {
+ } else {
psta->htpriv.ht_option = false;
}
@@ -1802,8 +1751,7 @@ void sta_info_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
/* called >= TSR LEVEL for USB or SDIO Interface*/
void ap_sta_info_defer_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
{
- if (psta->state & _FW_LINKED)
- {
+ if (psta->state & _FW_LINKED) {
/* add ratid */
add_RATid23a(padapter, psta, 0);/* DM_RATR_STA_INIT */
}
--
1.9.1
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-26 19:52 [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch Nicholas Krause
@ 2014-10-28 8:24 ` Jeff Kirsher
2014-10-28 16:50 ` Greg Freemyer
0 siblings, 1 reply; 28+ messages in thread
From: Jeff Kirsher @ 2014-10-28 8:24 UTC (permalink / raw)
To: kernelnewbies
On Sun, Oct 26, 2014 at 12:52 PM, Nicholas Krause <xerofoify@gmail.com> wrote:
> Fix all opening and closing braces issues reported by checkpatch.
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
> drivers/staging/rtl8723au/core/rtw_ap.c | 138 ++++++++++----------------------
> 1 file changed, 43 insertions(+), 95 deletions(-)
Good job Nick, don't let the compliment go to your head now. I am
going to be very nitpicky because of past patch problems, so with that
said, the patch description could be improve a little. I know that
with simple changes like this, it is tough to not repeat yourself
(i.e. title is the same as the description). Currently the title and
patch description are ok, but personally I prefer that the patch
description be more verbose and not an copy of the patch title. So in
this case, a patch description of:
"Fix the curley braces that do not reside on the same line because
this does not follow the kernel coding style and causes checkpatch.pl
warnings."
I am not saying you have to change it, but something to keep in mind.
>
> diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c
> index 75ae249..3301a2c 100644
> --- a/drivers/staging/rtl8723au/core/rtw_ap.c
> +++ b/drivers/staging/rtl8723au/core/rtw_ap.c
> @@ -231,12 +231,10 @@ void expire_timeout_chk23a(struct rtw_adapter *padapter)
> psta->expire_to--;
> }
>
> - if (psta->expire_to <= 0)
> - {
> + if (psta->expire_to <= 0) {
> struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
>
> - if (padapter->registrypriv.wifi_spec == 1)
> - {
> + if (padapter->registrypriv.wifi_spec == 1) {
> psta->expire_to = pstapriv->expire_to;
> continue;
> }
> @@ -308,15 +306,12 @@ void expire_timeout_chk23a(struct rtw_adapter *padapter)
> ret = issue_nulldata23a(padapter, psta->hwaddr, 0, 3, 50);
>
> psta->keep_alive_trycnt++;
> - if (ret == _SUCCESS)
> - {
> + if (ret == _SUCCESS) {
> DBG_8723A("asoc check, sta(" MAC_FMT ") is alive\n", MAC_ARG(psta->hwaddr));
> psta->expire_to = pstapriv->expire_to;
> psta->keep_alive_trycnt = 0;
> continue;
> - }
> - else if (psta->keep_alive_trycnt <= 3)
> - {
> + } else if (psta->keep_alive_trycnt <= 3) {
> DBG_8723A("ack check for asoc expire, keep_alive_trycnt =%d\n", psta->keep_alive_trycnt);
> psta->expire_to = 1;
> continue;
> @@ -363,8 +358,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
> return;
>
> /* b/g mode ra_bitmap */
> - for (i = 0; i < sizeof(psta->bssrateset); i++)
> - {
> + for (i = 0; i < sizeof(psta->bssrateset); i++) {
> if (psta->bssrateset[i])
> tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta->bssrateset[i]&0x7f);
> }
> @@ -406,8 +400,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
> raid = networktype_to_raid23a(sta_band);
> init_rate = get_highest_rate_idx23a(tx_ra_bitmap&0x0fffffff)&0x3f;
>
> - if (psta->aid < NUM_STA)
> - {
> + if (psta->aid < NUM_STA) {
> u8 arg = 0;
>
> arg = psta->mac_id&0x1f;
> @@ -436,9 +429,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
> psta->raid = raid;
> psta->init_rate = init_rate;
>
> - }
> - else
> - {
> + } else {
> DBG_8723A("station aid %d exceed the max number\n", psta->aid);
> }
> }
> @@ -453,8 +444,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
> struct wlan_bssid_ex *pcur_network = &pmlmepriv->cur_network.network;
> struct sta_info *psta = rtw_get_bcmc_stainfo23a(padapter);
>
> - if (psta)
> - {
> + if (psta) {
> psta->aid = 0;/* default set to 0 */
> psta->mac_id = psta->aid + 1;
>
> @@ -474,8 +464,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
> psta->bssratelen = supportRateNum;
>
> /* b/g mode ra_bitmap */
> - for (i = 0; i < supportRateNum; i++)
> - {
> + for (i = 0; i < supportRateNum; i++) {
> if (psta->bssrateset[i])
> tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta->bssrateset[i]&0x7f);
> }
> @@ -522,9 +511,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
> psta->state = _FW_LINKED;
> spin_unlock_bh(&psta->lock);
>
> - }
> - else
> - {
> + } else {
> DBG_8723A("add_RATid23a_bmc_sta error!\n");
> }
> }
> @@ -561,8 +548,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info
> /* ERP */
> VCS_update23a(padapter, psta);
> /* HT related cap */
> - if (phtpriv_sta->ht_option)
> - {
> + if (phtpriv_sta->ht_option) {
> /* check if sta supports rx ampdu */
> phtpriv_sta->ampdu_enable = phtpriv_ap->ampdu_enable;
>
> @@ -580,9 +566,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info
>
> psta->qos_option = true;
>
> - }
> - else
> - {
> + } else {
> phtpriv_sta->ampdu_enable = false;
>
> phtpriv_sta->sgi = false;
> @@ -1258,8 +1242,7 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
>
> spin_lock_bh(&pmlmepriv->bcn_update_lock);
>
> - switch (ie_id)
> - {
> + switch (ie_id) {
> case 0xFF:
> /* 8: TimeStamp, 2: Beacon Interval 2:Capability */
> update_bcn_fixed_ie(padapter);
> @@ -1386,8 +1369,7 @@ static int rtw_ht_operation_update(struct rtw_adapter *padapter)
> void associated_clients_update23a(struct rtw_adapter *padapter, u8 updated)
> {
> /* update associated stations cap. */
> - if (updated == true)
> - {
> + if (updated == true) {
> struct list_head *phead, *plist, *ptmp;
> struct sta_info *psta;
> struct sta_priv *pstapriv = &padapter->stapriv;
> @@ -1413,34 +1395,27 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
> struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
> struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
>
> - if (!(psta->flags & WLAN_STA_SHORT_PREAMBLE))
> - {
> - if (!psta->no_short_preamble_set)
> - {
> + if (!(psta->flags & WLAN_STA_SHORT_PREAMBLE)) {
> + if (!psta->no_short_preamble_set) {
> psta->no_short_preamble_set = 1;
>
> pmlmepriv->num_sta_no_short_preamble++;
>
> if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
> - (pmlmepriv->num_sta_no_short_preamble == 1))
> - {
> + (pmlmepriv->num_sta_no_short_preamble == 1)) {
> beacon_updated = true;
> update_beacon23a(padapter, 0xFF, NULL, true);
> }
>
> }
> - }
> - else
> - {
> - if (psta->no_short_preamble_set)
> - {
> + } else {
> + if (psta->no_short_preamble_set) {
> psta->no_short_preamble_set = 0;
>
> pmlmepriv->num_sta_no_short_preamble--;
>
> if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
> - (pmlmepriv->num_sta_no_short_preamble == 0))
> - {
> + (pmlmepriv->num_sta_no_short_preamble == 0)) {
> beacon_updated = true;
> update_beacon23a(padapter, 0xFF, NULL, true);
> }
> @@ -1448,32 +1423,25 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
> }
> }
>
> - if (psta->flags & WLAN_STA_NONERP)
> - {
> - if (!psta->nonerp_set)
> - {
> + if (psta->flags & WLAN_STA_NONERP) {
> + if (!psta->nonerp_set) {
> psta->nonerp_set = 1;
>
> pmlmepriv->num_sta_non_erp++;
>
> - if (pmlmepriv->num_sta_non_erp == 1)
> - {
> + if (pmlmepriv->num_sta_non_erp == 1) {
> beacon_updated = true;
> update_beacon23a(padapter, WLAN_EID_ERP_INFO, NULL, true);
> }
> }
>
> - }
> - else
> - {
> - if (psta->nonerp_set)
> - {
> + } else {
> + if (psta->nonerp_set) {
> psta->nonerp_set = 0;
>
> pmlmepriv->num_sta_non_erp--;
>
> - if (pmlmepriv->num_sta_non_erp == 0)
> - {
> + if (pmlmepriv->num_sta_non_erp == 0) {
> beacon_updated = true;
> update_beacon23a(padapter, WLAN_EID_ERP_INFO, NULL, true);
> }
> @@ -1481,42 +1449,34 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
>
> }
>
> - if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT_TIME))
> - {
> - if (!psta->no_short_slot_time_set)
> - {
> + if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT_TIME)) {
> + if (!psta->no_short_slot_time_set) {
> psta->no_short_slot_time_set = 1;
>
> pmlmepriv->num_sta_no_short_slot_time++;
>
> if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
> - (pmlmepriv->num_sta_no_short_slot_time == 1))
> - {
> + (pmlmepriv->num_sta_no_short_slot_time == 1)) {
> beacon_updated = true;
> update_beacon23a(padapter, 0xFF, NULL, true);
> }
>
> }
> - }
> - else
> - {
> - if (psta->no_short_slot_time_set)
> - {
> + } else {
> + if (psta->no_short_slot_time_set) {
> psta->no_short_slot_time_set = 0;
>
> pmlmepriv->num_sta_no_short_slot_time--;
>
> if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
> - (pmlmepriv->num_sta_no_short_slot_time == 0))
> - {
> + (pmlmepriv->num_sta_no_short_slot_time == 0)) {
> beacon_updated = true;
> update_beacon23a(padapter, 0xFF, NULL, true);
> }
> }
> }
>
> - if (psta->flags & WLAN_STA_HT)
> - {
> + if (psta->flags & WLAN_STA_HT) {
> u16 ht_capab = le16_to_cpu(psta->htpriv.ht_cap.cap_info);
>
> DBG_8723A("HT: STA " MAC_FMT " HT Capabilities "
> @@ -1549,9 +1509,7 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
> pmlmepriv->num_sta_ht_20mhz);
> }
>
> - }
> - else
> - {
> + } else {
> if (!psta->no_ht_set) {
> psta->no_ht_set = 1;
> pmlmepriv->num_sta_no_ht++;
> @@ -1564,8 +1522,7 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
> }
> }
>
> - if (rtw_ht_operation_update(padapter) > 0)
> - {
> + if (rtw_ht_operation_update(padapter) > 0) {
> update_beacon23a(padapter, WLAN_EID_HT_CAPABILITY, NULL, false);
> update_beacon23a(padapter, WLAN_EID_HT_OPERATION, NULL, true);
> }
> @@ -1589,8 +1546,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
> psta->no_short_preamble_set = 0;
> pmlmepriv->num_sta_no_short_preamble--;
> if (pmlmeext->cur_wireless_mode > WIRELESS_11B
> - && pmlmepriv->num_sta_no_short_preamble == 0)
> - {
> + && pmlmepriv->num_sta_no_short_preamble == 0) {
> beacon_updated = true;
> update_beacon23a(padapter, 0xFF, NULL, true);
> }
> @@ -1599,8 +1555,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
> if (psta->nonerp_set) {
> psta->nonerp_set = 0;
> pmlmepriv->num_sta_non_erp--;
> - if (pmlmepriv->num_sta_non_erp == 0)
> - {
> + if (pmlmepriv->num_sta_non_erp == 0) {
> beacon_updated = true;
> update_beacon23a(padapter, WLAN_EID_ERP_INFO,
> NULL, true);
> @@ -1611,8 +1566,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
> psta->no_short_slot_time_set = 0;
> pmlmepriv->num_sta_no_short_slot_time--;
> if (pmlmeext->cur_wireless_mode > WIRELESS_11B
> - && pmlmepriv->num_sta_no_short_slot_time == 0)
> - {
> + && pmlmepriv->num_sta_no_short_slot_time == 0) {
> beacon_updated = true;
> update_beacon23a(padapter, 0xFF, NULL, true);
> }
> @@ -1633,8 +1587,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
> pmlmepriv->num_sta_ht_20mhz--;
> }
>
> - if (rtw_ht_operation_update(padapter) > 0)
> - {
> + if (rtw_ht_operation_update(padapter) > 0) {
> update_beacon23a(padapter, WLAN_EID_HT_CAPABILITY, NULL, false);
> update_beacon23a(padapter, WLAN_EID_HT_OPERATION, NULL, true);
> }
> @@ -1654,8 +1607,7 @@ u8 ap_free_sta23a(struct rtw_adapter *padapter, struct sta_info *psta, bool acti
> if (!psta)
> return beacon_updated;
>
> - if (active == true)
> - {
> + if (active == true) {
> /* tear down Rx AMPDU */
> send_delba23a(padapter, 0, psta->hwaddr);/* recipient */
>
> @@ -1783,13 +1735,10 @@ void sta_info_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
> psta->qos_option = 0;
>
> /* update 802.11n ht cap. */
> - if (WLAN_STA_HT&flags)
> - {
> + if (WLAN_STA_HT&flags) {
> psta->htpriv.ht_option = true;
> psta->qos_option = 1;
> - }
> - else
> - {
> + } else {
> psta->htpriv.ht_option = false;
> }
>
> @@ -1802,8 +1751,7 @@ void sta_info_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
> /* called >= TSR LEVEL for USB or SDIO Interface*/
> void ap_sta_info_defer_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
> {
> - if (psta->state & _FW_LINKED)
> - {
> + if (psta->state & _FW_LINKED) {
> /* add ratid */
> add_RATid23a(padapter, psta, 0);/* DM_RATR_STA_INIT */
> }
> --
> 1.9.1
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
Cheers,
Jeff
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
@ 2014-10-28 13:27 Nicholas Krause
0 siblings, 0 replies; 28+ messages in thread
From: Nicholas Krause @ 2014-10-28 13:27 UTC (permalink / raw)
To: kernelnewbies
Fix the curley braces that do not reside on the same line because
this does not follow the kernel coding style and causes checkpatch.pl
warnings.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/staging/rtl8723au/core/rtw_ap.c | 138 ++++++++++----------------------
1 file changed, 43 insertions(+), 95 deletions(-)
diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c
index 75ae249..3301a2c 100644
--- a/drivers/staging/rtl8723au/core/rtw_ap.c
+++ b/drivers/staging/rtl8723au/core/rtw_ap.c
@@ -231,12 +231,10 @@ void expire_timeout_chk23a(struct rtw_adapter *padapter)
psta->expire_to--;
}
- if (psta->expire_to <= 0)
- {
+ if (psta->expire_to <= 0) {
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- if (padapter->registrypriv.wifi_spec == 1)
- {
+ if (padapter->registrypriv.wifi_spec == 1) {
psta->expire_to = pstapriv->expire_to;
continue;
}
@@ -308,15 +306,12 @@ void expire_timeout_chk23a(struct rtw_adapter *padapter)
ret = issue_nulldata23a(padapter, psta->hwaddr, 0, 3, 50);
psta->keep_alive_trycnt++;
- if (ret == _SUCCESS)
- {
+ if (ret == _SUCCESS) {
DBG_8723A("asoc check, sta(" MAC_FMT ") is alive\n", MAC_ARG(psta->hwaddr));
psta->expire_to = pstapriv->expire_to;
psta->keep_alive_trycnt = 0;
continue;
- }
- else if (psta->keep_alive_trycnt <= 3)
- {
+ } else if (psta->keep_alive_trycnt <= 3) {
DBG_8723A("ack check for asoc expire, keep_alive_trycnt =%d\n", psta->keep_alive_trycnt);
psta->expire_to = 1;
continue;
@@ -363,8 +358,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
return;
/* b/g mode ra_bitmap */
- for (i = 0; i < sizeof(psta->bssrateset); i++)
- {
+ for (i = 0; i < sizeof(psta->bssrateset); i++) {
if (psta->bssrateset[i])
tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta->bssrateset[i]&0x7f);
}
@@ -406,8 +400,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
raid = networktype_to_raid23a(sta_band);
init_rate = get_highest_rate_idx23a(tx_ra_bitmap&0x0fffffff)&0x3f;
- if (psta->aid < NUM_STA)
- {
+ if (psta->aid < NUM_STA) {
u8 arg = 0;
arg = psta->mac_id&0x1f;
@@ -436,9 +429,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
psta->raid = raid;
psta->init_rate = init_rate;
- }
- else
- {
+ } else {
DBG_8723A("station aid %d exceed the max number\n", psta->aid);
}
}
@@ -453,8 +444,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
struct wlan_bssid_ex *pcur_network = &pmlmepriv->cur_network.network;
struct sta_info *psta = rtw_get_bcmc_stainfo23a(padapter);
- if (psta)
- {
+ if (psta) {
psta->aid = 0;/* default set to 0 */
psta->mac_id = psta->aid + 1;
@@ -474,8 +464,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
psta->bssratelen = supportRateNum;
/* b/g mode ra_bitmap */
- for (i = 0; i < supportRateNum; i++)
- {
+ for (i = 0; i < supportRateNum; i++) {
if (psta->bssrateset[i])
tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta->bssrateset[i]&0x7f);
}
@@ -522,9 +511,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
psta->state = _FW_LINKED;
spin_unlock_bh(&psta->lock);
- }
- else
- {
+ } else {
DBG_8723A("add_RATid23a_bmc_sta error!\n");
}
}
@@ -561,8 +548,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info
/* ERP */
VCS_update23a(padapter, psta);
/* HT related cap */
- if (phtpriv_sta->ht_option)
- {
+ if (phtpriv_sta->ht_option) {
/* check if sta supports rx ampdu */
phtpriv_sta->ampdu_enable = phtpriv_ap->ampdu_enable;
@@ -580,9 +566,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info
psta->qos_option = true;
- }
- else
- {
+ } else {
phtpriv_sta->ampdu_enable = false;
phtpriv_sta->sgi = false;
@@ -1258,8 +1242,7 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
spin_lock_bh(&pmlmepriv->bcn_update_lock);
- switch (ie_id)
- {
+ switch (ie_id) {
case 0xFF:
/* 8: TimeStamp, 2: Beacon Interval 2:Capability */
update_bcn_fixed_ie(padapter);
@@ -1386,8 +1369,7 @@ static int rtw_ht_operation_update(struct rtw_adapter *padapter)
void associated_clients_update23a(struct rtw_adapter *padapter, u8 updated)
{
/* update associated stations cap. */
- if (updated == true)
- {
+ if (updated == true) {
struct list_head *phead, *plist, *ptmp;
struct sta_info *psta;
struct sta_priv *pstapriv = &padapter->stapriv;
@@ -1413,34 +1395,27 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
- if (!(psta->flags & WLAN_STA_SHORT_PREAMBLE))
- {
- if (!psta->no_short_preamble_set)
- {
+ if (!(psta->flags & WLAN_STA_SHORT_PREAMBLE)) {
+ if (!psta->no_short_preamble_set) {
psta->no_short_preamble_set = 1;
pmlmepriv->num_sta_no_short_preamble++;
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_preamble == 1))
- {
+ (pmlmepriv->num_sta_no_short_preamble == 1)) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
}
- }
- else
- {
- if (psta->no_short_preamble_set)
- {
+ } else {
+ if (psta->no_short_preamble_set) {
psta->no_short_preamble_set = 0;
pmlmepriv->num_sta_no_short_preamble--;
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_preamble == 0))
- {
+ (pmlmepriv->num_sta_no_short_preamble == 0)) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
@@ -1448,32 +1423,25 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
}
}
- if (psta->flags & WLAN_STA_NONERP)
- {
- if (!psta->nonerp_set)
- {
+ if (psta->flags & WLAN_STA_NONERP) {
+ if (!psta->nonerp_set) {
psta->nonerp_set = 1;
pmlmepriv->num_sta_non_erp++;
- if (pmlmepriv->num_sta_non_erp == 1)
- {
+ if (pmlmepriv->num_sta_non_erp == 1) {
beacon_updated = true;
update_beacon23a(padapter, WLAN_EID_ERP_INFO, NULL, true);
}
}
- }
- else
- {
- if (psta->nonerp_set)
- {
+ } else {
+ if (psta->nonerp_set) {
psta->nonerp_set = 0;
pmlmepriv->num_sta_non_erp--;
- if (pmlmepriv->num_sta_non_erp == 0)
- {
+ if (pmlmepriv->num_sta_non_erp == 0) {
beacon_updated = true;
update_beacon23a(padapter, WLAN_EID_ERP_INFO, NULL, true);
}
@@ -1481,42 +1449,34 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
}
- if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT_TIME))
- {
- if (!psta->no_short_slot_time_set)
- {
+ if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT_TIME)) {
+ if (!psta->no_short_slot_time_set) {
psta->no_short_slot_time_set = 1;
pmlmepriv->num_sta_no_short_slot_time++;
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_slot_time == 1))
- {
+ (pmlmepriv->num_sta_no_short_slot_time == 1)) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
}
- }
- else
- {
- if (psta->no_short_slot_time_set)
- {
+ } else {
+ if (psta->no_short_slot_time_set) {
psta->no_short_slot_time_set = 0;
pmlmepriv->num_sta_no_short_slot_time--;
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
- (pmlmepriv->num_sta_no_short_slot_time == 0))
- {
+ (pmlmepriv->num_sta_no_short_slot_time == 0)) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
}
}
- if (psta->flags & WLAN_STA_HT)
- {
+ if (psta->flags & WLAN_STA_HT) {
u16 ht_capab = le16_to_cpu(psta->htpriv.ht_cap.cap_info);
DBG_8723A("HT: STA " MAC_FMT " HT Capabilities "
@@ -1549,9 +1509,7 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
pmlmepriv->num_sta_ht_20mhz);
}
- }
- else
- {
+ } else {
if (!psta->no_ht_set) {
psta->no_ht_set = 1;
pmlmepriv->num_sta_no_ht++;
@@ -1564,8 +1522,7 @@ void bss_cap_update_on_sta_join23a(struct rtw_adapter *padapter, struct sta_info
}
}
- if (rtw_ht_operation_update(padapter) > 0)
- {
+ if (rtw_ht_operation_update(padapter) > 0) {
update_beacon23a(padapter, WLAN_EID_HT_CAPABILITY, NULL, false);
update_beacon23a(padapter, WLAN_EID_HT_OPERATION, NULL, true);
}
@@ -1589,8 +1546,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
psta->no_short_preamble_set = 0;
pmlmepriv->num_sta_no_short_preamble--;
if (pmlmeext->cur_wireless_mode > WIRELESS_11B
- && pmlmepriv->num_sta_no_short_preamble == 0)
- {
+ && pmlmepriv->num_sta_no_short_preamble == 0) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
@@ -1599,8 +1555,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
if (psta->nonerp_set) {
psta->nonerp_set = 0;
pmlmepriv->num_sta_non_erp--;
- if (pmlmepriv->num_sta_non_erp == 0)
- {
+ if (pmlmepriv->num_sta_non_erp == 0) {
beacon_updated = true;
update_beacon23a(padapter, WLAN_EID_ERP_INFO,
NULL, true);
@@ -1611,8 +1566,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
psta->no_short_slot_time_set = 0;
pmlmepriv->num_sta_no_short_slot_time--;
if (pmlmeext->cur_wireless_mode > WIRELESS_11B
- && pmlmepriv->num_sta_no_short_slot_time == 0)
- {
+ && pmlmepriv->num_sta_no_short_slot_time == 0) {
beacon_updated = true;
update_beacon23a(padapter, 0xFF, NULL, true);
}
@@ -1633,8 +1587,7 @@ u8 bss_cap_update_on_sta_leave23a(struct rtw_adapter *padapter, struct sta_info
pmlmepriv->num_sta_ht_20mhz--;
}
- if (rtw_ht_operation_update(padapter) > 0)
- {
+ if (rtw_ht_operation_update(padapter) > 0) {
update_beacon23a(padapter, WLAN_EID_HT_CAPABILITY, NULL, false);
update_beacon23a(padapter, WLAN_EID_HT_OPERATION, NULL, true);
}
@@ -1654,8 +1607,7 @@ u8 ap_free_sta23a(struct rtw_adapter *padapter, struct sta_info *psta, bool acti
if (!psta)
return beacon_updated;
- if (active == true)
- {
+ if (active == true) {
/* tear down Rx AMPDU */
send_delba23a(padapter, 0, psta->hwaddr);/* recipient */
@@ -1783,13 +1735,10 @@ void sta_info_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
psta->qos_option = 0;
/* update 802.11n ht cap. */
- if (WLAN_STA_HT&flags)
- {
+ if (WLAN_STA_HT&flags) {
psta->htpriv.ht_option = true;
psta->qos_option = 1;
- }
- else
- {
+ } else {
psta->htpriv.ht_option = false;
}
@@ -1802,8 +1751,7 @@ void sta_info_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
/* called >= TSR LEVEL for USB or SDIO Interface*/
void ap_sta_info_defer_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
{
- if (psta->state & _FW_LINKED)
- {
+ if (psta->state & _FW_LINKED) {
/* add ratid */
add_RATid23a(padapter, psta, 0);/* DM_RATR_STA_INIT */
}
--
1.9.1
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 8:24 ` Jeff Kirsher
@ 2014-10-28 16:50 ` Greg Freemyer
2014-10-28 17:39 ` Greg Donald
0 siblings, 1 reply; 28+ messages in thread
From: Greg Freemyer @ 2014-10-28 16:50 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 4:24 AM, Jeff Kirsher
<jeffrey.t.kirsher@intel.com> wrote:
> On Sun, Oct 26, 2014 at 12:52 PM, Nicholas Krause <xerofoify@gmail.com> wrote:
>> Fix all opening and closing braces issues reported by checkpatch.
>> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
>> ---
>> drivers/staging/rtl8723au/core/rtw_ap.c | 138 ++++++++++----------------------
>> 1 file changed, 43 insertions(+), 95 deletions(-)
>
> Good job Nick, don't let the compliment go to your head now. I am
> going to be very nitpicky because of past patch problems, so with that
> said, the patch description could be improve a little. I know that
> with simple changes like this, it is tough to not repeat yourself
> (i.e. title is the same as the description). Currently the title and
> patch description are ok, but personally I prefer that the patch
> description be more verbose and not an copy of the patch title. So in
> this case, a patch description of:
>
> "Fix the curley braces that do not reside on the same line because
> this does not follow the kernel coding style and causes checkpatch.pl
> warnings."
That's actually important.
Using checkpatch to identify potential problems is smart, but you fix
them because the violate the kernel coding standard and there is no
overriding reason to allow the violation. Lots of violations
checkpatch finds are intentionally left in place because correcting
them makes the code less readable, not more readable.
Greg
--
Greg Freemyer
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 16:50 ` Greg Freemyer
@ 2014-10-28 17:39 ` Greg Donald
2014-10-28 17:53 ` Nick Krause
` (3 more replies)
0 siblings, 4 replies; 28+ messages in thread
From: Greg Donald @ 2014-10-28 17:39 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 11:50 AM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
> Lots of violations
> checkpatch finds are intentionally left in place because correcting
> them makes the code less readable, not more readable.
Yeah, but there are still hundreds of thousands of checkpatch
violations throughout the kernel that if fixed would actually improve
readability.
Path Errors Warnings
drivers 200979 361350
arch 98791 142300
sound 25938 31028
include 13651 25598
fs 96353 22483
net 3185 19216
lib 8055 6578
tools 1126 3972
kernel 656 3203
security 47 1247
mm 203 1186
scripts 824 1168
crypto 1144 1095
block 196 656
Documentation 97 259
init 29 173
virt 18 152
samples 27 118
ipc 2 77
usr 17 20
firmware 11 19
The WARNING "line over 80 characters" currently accounts for 216K of
the total violations. IMHO checkpatch should just stop complaining
about the 80 char limit since that's the main offender causing new
kernel developers to inadvertently lessen readability with their first
patch. If the 80 char warning should be mostly ignored why have it..
it's pointless. Increase it to a 21st century value or kill it.
--
Greg Donald
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 17:39 ` Greg Donald
@ 2014-10-28 17:53 ` Nick Krause
2014-10-28 18:06 ` Greg Donald
2014-10-28 18:07 ` Jeff Haran
` (2 subsequent siblings)
3 siblings, 1 reply; 28+ messages in thread
From: Nick Krause @ 2014-10-28 17:53 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 1:39 PM, Greg Donald <gdonald@gmail.com> wrote:
> On Tue, Oct 28, 2014 at 11:50 AM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
>> Lots of violations
>> checkpatch finds are intentionally left in place because correcting
>> them makes the code less readable, not more readable.
>
> Yeah, but there are still hundreds of thousands of checkpatch
> violations throughout the kernel that if fixed would actually improve
> readability.
>
> Path Errors Warnings
> drivers 200979 361350
> arch 98791 142300
> sound 25938 31028
> include 13651 25598
> fs 96353 22483
> net 3185 19216
> lib 8055 6578
> tools 1126 3972
> kernel 656 3203
> security 47 1247
> mm 203 1186
> scripts 824 1168
> crypto 1144 1095
> block 196 656
> Documentation 97 259
> init 29 173
> virt 18 152
> samples 27 118
> ipc 2 77
> usr 17 20
> firmware 11 19
>
> The WARNING "line over 80 characters" currently accounts for 216K of
> the total violations. IMHO checkpatch should just stop complaining
> about the 80 char limit since that's the main offender causing new
> kernel developers to inadvertently lessen readability with their first
> patch. If the 80 char warning should be mostly ignored why have it..
> it's pointless. Increase it to a 21st century value or kill it.
>
>
> --
> Greg Donald
I actually fixed this to improve code readability not for the kernel
rules for your information.
Cheers Nick
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 17:53 ` Nick Krause
@ 2014-10-28 18:06 ` Greg Donald
2014-10-28 19:52 ` nick
0 siblings, 1 reply; 28+ messages in thread
From: Greg Donald @ 2014-10-28 18:06 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 12:53 PM, Nick Krause <xerofoify@gmail.com> wrote:
> I actually fixed this to improve code readability not for the kernel
> rules for your information.
I know, good job.. and here's to hoping a maintainer picks up your
patch and applies it to their tree :)
But I would argue "kernel rules" and "improving code readability" are
one and the same. Otherwise checkpatch and it's optional -f needn't
exist.
--
Greg Donald
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 17:39 ` Greg Donald
2014-10-28 17:53 ` Nick Krause
@ 2014-10-28 18:07 ` Jeff Haran
2014-10-28 18:20 ` Mandeep Sandhu
2014-10-28 18:42 ` Valdis.Kletnieks at vt.edu
2014-10-28 19:04 ` John de la Garza
3 siblings, 1 reply; 28+ messages in thread
From: Jeff Haran @ 2014-10-28 18:07 UTC (permalink / raw)
To: kernelnewbies
> -----Original Message-----
> From: kernelnewbies-bounces+jharan=bytemobile.com at kernelnewbies.org [mailto:kernelnewbies-
> bounces+jharan=bytemobile.com at kernelnewbies.org] On Behalf Of Greg Donald
> Sent: Tuesday, October 28, 2014 10:39 AM
> To: Greg Freemyer
> Cc: kernelnewbies; Jeff Kirsher; Nicholas Krause
> Subject: Re: [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
>
> On Tue, Oct 28, 2014 at 11:50 AM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
> > Lots of violations
> > checkpatch finds are intentionally left in place because correcting
> > them makes the code less readable, not more readable.
>
> Yeah, but there are still hundreds of thousands of checkpatch
> violations throughout the kernel that if fixed would actually improve
> readability.
>
> Path Errors Warnings
> drivers 200979 361350
> arch 98791 142300
> sound 25938 31028
> include 13651 25598
> fs 96353 22483
> net 3185 19216
> lib 8055 6578
> tools 1126 3972
> kernel 656 3203
> security 47 1247
> mm 203 1186
> scripts 824 1168
> crypto 1144 1095
> block 196 656
> Documentation 97 259
> init 29 173
> virt 18 152
> samples 27 118
> ipc 2 77
> usr 17 20
> firmware 11 19
>
> The WARNING "line over 80 characters" currently accounts for 216K of
> the total violations. IMHO checkpatch should just stop complaining
> about the 80 char limit since that's the main offender causing new
> kernel developers to inadvertently lessen readability with their first
> patch. If the 80 char warning should be mostly ignored why have it..
> it's pointless. Increase it to a 21st century value or kill it.
>
>
> --
> Greg Donald
But, but, but, what about all the kernel developers who are writing kernel code on VT100s and storing their sources on 80 column punch cards?
Not everybody can afford these newfangled disk drives, ya know. 8^)
Jeff Haran
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 18:07 ` Jeff Haran
@ 2014-10-28 18:20 ` Mandeep Sandhu
2014-10-28 20:59 ` Greg Donald
0 siblings, 1 reply; 28+ messages in thread
From: Mandeep Sandhu @ 2014-10-28 18:20 UTC (permalink / raw)
To: kernelnewbies
>
> > it's pointless. Increase it to a 21st century value or kill it.
> >
> >
> > --
> > Greg Donald
>
> But, but, but, what about all the kernel developers who are writing kernel
> code on VT100s and storing their sources on 80 column punch cards?
>
Lol, I agree!
There's nothing 21st century about long lines! As screen resolutions
increase ("Retina 5k" alert!), 1 line for you might, be 2 or more for
another. So in this regard, the old school 80 col is just right. Just
increase your font size so that it fits nicely in your editor from end to
end! :P
>
> Not everybody can afford these newfangled disk drives, ya know. 8^)
>
> Jeff Haran
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141028/af4c155d/attachment.html
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 17:39 ` Greg Donald
2014-10-28 17:53 ` Nick Krause
2014-10-28 18:07 ` Jeff Haran
@ 2014-10-28 18:42 ` Valdis.Kletnieks at vt.edu
2014-10-28 19:04 ` John de la Garza
3 siblings, 0 replies; 28+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-10-28 18:42 UTC (permalink / raw)
To: kernelnewbies
On Tue, 28 Oct 2014 12:39:17 -0500, Greg Donald said:
> The WARNING "line over 80 characters" currently accounts for 216K of
> the total violations. IMHO checkpatch should just stop complaining
> about the 80 char limit since that's the main offender causing new
On the other hand, there's very good human factors reasons to restrict the
length of source lines. As the human eye reads text, it saccades across,
and too-long lines result in poor tracking. More than 60-75 characters
causes problems.
http://en.wikipedia.org/wiki/Eye_movement_in_reading
http://baymard.com/blog/line-length-readability
The fact that C code is indented doesn't help - it means the left
margin isn't as easily predictable as flush-left alignment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141028/8e6cb03b/attachment.bin
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 17:39 ` Greg Donald
` (2 preceding siblings ...)
2014-10-28 18:42 ` Valdis.Kletnieks at vt.edu
@ 2014-10-28 19:04 ` John de la Garza
2014-10-28 20:55 ` Greg Donald
3 siblings, 1 reply; 28+ messages in thread
From: John de la Garza @ 2014-10-28 19:04 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 12:39:17PM -0500, Greg Donald wrote:
> The WARNING "line over 80 characters" currently accounts for 216K of
> the total violations. IMHO checkpatch should just stop complaining
> about the 80 char limit since that's the main offender causing new
> kernel developers to inadvertently lessen readability with their first
> patch. If the 80 char warning should be mostly ignored why have it..
> it's pointless. Increase it to a 21st century value or kill it.
>
>
It seems like you assuming the limit is based on terminal size?
There is some research in typography that suggests that it is easier
to read text that is not on long lines. Newspapers have a large
sheet of paper but they use short columns.
My display is frequently greater than 80 col. I see this as an
opertunity to have two xterms next to each other, not to have lines
that are longer.
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 18:06 ` Greg Donald
@ 2014-10-28 19:52 ` nick
2014-10-28 21:31 ` Greg Donald
0 siblings, 1 reply; 28+ messages in thread
From: nick @ 2014-10-28 19:52 UTC (permalink / raw)
To: kernelnewbies
Hey Greg,
I am trying to improve my code as much as possible now, I really am finally understanding
how terrible my code was before and I hope never again to make patches that shitty.
Cheers Nick
On 14-10-28 02:06 PM, Greg Donald wrote:
> On Tue, Oct 28, 2014 at 12:53 PM, Nick Krause <xerofoify@gmail.com> wrote:
>> I actually fixed this to improve code readability not for the kernel
>> rules for your information.
>
> I know, good job.. and here's to hoping a maintainer picks up your
> patch and applies it to their tree :)
>
> But I would argue "kernel rules" and "improving code readability" are
> one and the same. Otherwise checkpatch and it's optional -f needn't
> exist.
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 19:04 ` John de la Garza
@ 2014-10-28 20:55 ` Greg Donald
2014-10-28 21:33 ` John de la Garza
0 siblings, 1 reply; 28+ messages in thread
From: Greg Donald @ 2014-10-28 20:55 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 2:04 PM, John de la Garza <john@jjdev.com> wrote:
> It seems like you assuming the limit is based on terminal size?
Hmm, I thought it was because of 80 column punch cards and ancient
printers that didn't wrap.
> There is some research in typography that suggests that it is easier
> to read text that is not on long lines.
Developers don't actually read most of the code seen, over time our
eyes become trained to rapidly scan for patterns. We've invented lots
of tools like cscope, ctags, lxr, and grep to further keep us from
having to actually read much code at all.
Your editor doesn't have soft wrap?
> Newspapers have a large
> sheet of paper but they use short columns.
Yeah, short columns with chaotic white-space. The text fills the
column width and is both left and right justified. I doubt anyone
does "text-align: justify;" to their code editor.
Who still reads newspapers? The 2 people still using punch cards?
> My display is frequently greater than 80 col. I see this as an
> opertunity to have two xterms next to each other, not to have lines
> that are longer.
Do you hear yourself? "Oh, my eyes, my eyes, I can't be bothered to
read code so far out to the right, it burns, it burns!"
Or "I can read two lines of code in two different files from two
different contexts, but I cannot be bothered to read one longer line
from a single file from a single context. I can multitask all day,
but I cannot ever single-task, forget that drama!".
All I'm saying is since no one adheres to it religiously, and the fact
that I've seen many times maintainers telling people to just ignore
it, the 80 character checkpatch warning is pointless. Given that it
really comes down to a per-case best effort attempt, just set an 80
column indicator in your editor and try to stay within it, if you can.
Keeping the checkpatch 80 character warning around is just academic
masturbation.
--
Greg Donald
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 18:20 ` Mandeep Sandhu
@ 2014-10-28 20:59 ` Greg Donald
0 siblings, 0 replies; 28+ messages in thread
From: Greg Donald @ 2014-10-28 20:59 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 1:20 PM, Mandeep Sandhu
<mandeepsandhu.chd@gmail.com> wrote:
> Just
> increase your font size so that it fits nicely in your editor from end to
> end! :P
I see :)
Sounds good but no. Increasing the font size just causes a loss of
screen real estate vertically.
--
Greg Donald
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 19:52 ` nick
@ 2014-10-28 21:31 ` Greg Donald
2014-10-29 1:49 ` nick
0 siblings, 1 reply; 28+ messages in thread
From: Greg Donald @ 2014-10-28 21:31 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 2:52 PM, nick <xerofoify@gmail.com> wrote:
> I am trying to improve my code as much as possible now, I really am finally understanding
> how terrible my code was before and I hope never again to make patches that shitty.
I don't think your recent progress has gone unnoticed. Any word on
your latest patch getting picked up? It looked good to me.
You remind me of John Locke from Lost. "Don't tell me what I can't do!" :)
--
Greg Donald
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 20:55 ` Greg Donald
@ 2014-10-28 21:33 ` John de la Garza
0 siblings, 0 replies; 28+ messages in thread
From: John de la Garza @ 2014-10-28 21:33 UTC (permalink / raw)
To: kernelnewbies
On Tue, Oct 28, 2014 at 03:55:53PM -0500, Greg Donald wrote:
> On Tue, Oct 28, 2014 at 2:04 PM, John de la Garza <john@jjdev.com> wrote:
> > It seems like you assuming the limit is based on terminal size?
>
> Hmm, I thought it was because of 80 column punch cards and ancient
> printers that didn't wrap.
>
What is the difference? It sounds like you think the 80 col suggesetion
is based on hardware limitations, that is my point.
> > There is some research in typography that suggests that it is easier
> > to read text that is not on long lines.
>
> Developers don't actually read most of the code seen, over time our
> eyes become trained to rapidly scan for patterns. We've invented lots
> of tools like cscope, ctags, lxr, and grep to further keep us from
> having to actually read much code at all.
>
Well, some programmers do actually spend a far amount of time
reading code. I simply have to disagree with you on this.
>
> > Newspapers have a large
> > sheet of paper but they use short columns.
>
> Yeah, short columns with chaotic white-space. The text fills the
> column width and is both left and right justified. I doubt anyone
> does "text-align: justify;" to their code editor.
>
> Who still reads newspapers? The 2 people still using punch cards?
>
you are missing my point, I am make an example of how some peoples
eyes generally work
> > My display is frequently greater than 80 col. I see this as an
> > opertunity to have two xterms next to each other, not to have lines
> > that are longer.
>
> Do you hear yourself? "Oh, my eyes, my eyes, I can't be bothered to
> read code so far out to the right, it burns, it burns!"
yes, this is basically what I am saying.
>
> Or "I can read two lines of code in two different files from two
> different contexts, but I cannot be bothered to read one longer line
> from a single file from a single context. I can multitask all day,
> but I cannot ever single-task, forget that drama!".
now you are assuming things about the way I work
Sometimes I tail a log file while working in another window, but
this isn't what we are talking about
>
> All I'm saying is since no one adheres to it religiously, and the fact
> that I've seen many times maintainers telling people to just ignore
> it, the 80 character checkpatch warning is pointless. Given that it
> really comes down to a per-case best effort attempt, just set an 80
> column indicator in your editor and try to stay within it, if you can.
you are infering a lot from my original comment. I wasn't saying
to stick to it at all costs. I don't split strings because then
you may have a hard time grepping for them. If you can't fit your
code in 80 columns it is usually a sign you are getting it wrong. I
rarely have felt limited by 80 columns.
>
> Keeping the checkpatch 80 character warning around is just academic
> masturbation.
submit a patch to change it then, if no one cares then it should
get merged, I'm betting people do care
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-28 21:31 ` Greg Donald
@ 2014-10-29 1:49 ` nick
2014-10-29 1:58 ` Jeff Kirsher
0 siblings, 1 reply; 28+ messages in thread
From: nick @ 2014-10-29 1:49 UTC (permalink / raw)
To: kernelnewbies
Greg,
Not picked up of yet. I would appreciate if this gets forwarded for me as this may help it get picked up.
Further more this issues I am were causing were not technical but not listening and that's why I decided
to state around and learn how to my patches properly.
Cheers Nick
On 14-10-28 05:31 PM, Greg Donald wrote:
> On Tue, Oct 28, 2014 at 2:52 PM, nick <xerofoify@gmail.com> wrote:
>> I am trying to improve my code as much as possible now, I really am finally understanding
>> how terrible my code was before and I hope never again to make patches that shitty.
>
> I don't think your recent progress has gone unnoticed. Any word on
> your latest patch getting picked up? It looked good to me.
>
> You remind me of John Locke from Lost. "Don't tell me what I can't do!" :)
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 1:49 ` nick
@ 2014-10-29 1:58 ` Jeff Kirsher
2014-10-29 2:01 ` nick
0 siblings, 1 reply; 28+ messages in thread
From: Jeff Kirsher @ 2014-10-29 1:58 UTC (permalink / raw)
To: kernelnewbies
On Tue, 2014-10-28 at 21:49 -0400, nick wrote:
> Greg,
> Not picked up of yet. I would appreciate if this gets forwarded for me as this may help it get picked up.
> Further more this issues I am were causing were not technical but not listening and that's why I decided
> to state around and learn how to my patches properly.
> Cheers Nick
>
I saw you updated you patch Nick, thanks. I feel I can safely put my
Reviewed-by: on it. Also, if Greg KH (staging maintainer) has not
picked up in the next day or so, I will submit your patch to the staging
tree for you.
>
> On 14-10-28 05:31 PM, Greg Donald wrote:
> > On Tue, Oct 28, 2014 at 2:52 PM, nick <xerofoify@gmail.com> wrote:
> >> I am trying to improve my code as much as possible now, I really am finally understanding
> >> how terrible my code was before and I hope never again to make patches that shitty.
> >
> > I don't think your recent progress has gone unnoticed. Any word on
> > your latest patch getting picked up? It looked good to me.
> >
> > You remind me of John Locke from Lost. "Don't tell me what I can't do!" :)
> >
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141028/854c2512/attachment.bin
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 1:58 ` Jeff Kirsher
@ 2014-10-29 2:01 ` nick
2014-10-29 2:04 ` Jeff Kirsher
2014-10-29 5:05 ` Sudip Mukherjee
0 siblings, 2 replies; 28+ messages in thread
From: nick @ 2014-10-29 2:01 UTC (permalink / raw)
To: kernelnewbies
Greg,
That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
other kernel work.
Cheers Nick
On 14-10-28 09:58 PM, Jeff Kirsher wrote:
> On Tue, 2014-10-28 at 21:49 -0400, nick wrote:
>> Greg,
>> Not picked up of yet. I would appreciate if this gets forwarded for me as this may help it get picked up.
>> Further more this issues I am were causing were not technical but not listening and that's why I decided
>> to state around and learn how to my patches properly.
>> Cheers Nick
>>
>
> I saw you updated you patch Nick, thanks. I feel I can safely put my
> Reviewed-by: on it. Also, if Greg KH (staging maintainer) has not
> picked up in the next day or so, I will submit your patch to the staging
> tree for you.
>
>>
>> On 14-10-28 05:31 PM, Greg Donald wrote:
>>> On Tue, Oct 28, 2014 at 2:52 PM, nick <xerofoify@gmail.com> wrote:
>>>> I am trying to improve my code as much as possible now, I really am finally understanding
>>>> how terrible my code was before and I hope never again to make patches that shitty.
>>>
>>> I don't think your recent progress has gone unnoticed. Any word on
>>> your latest patch getting picked up? It looked good to me.
>>>
>>> You remind me of John Locke from Lost. "Don't tell me what I can't do!" :)
>>>
>>>
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 2:01 ` nick
@ 2014-10-29 2:04 ` Jeff Kirsher
2014-10-29 2:06 ` nick
2014-10-29 5:05 ` Sudip Mukherjee
1 sibling, 1 reply; 28+ messages in thread
From: Jeff Kirsher @ 2014-10-29 2:04 UTC (permalink / raw)
To: kernelnewbies
On Tue, 2014-10-28 at 22:01 -0400, nick wrote:
> Greg,
> That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
> other kernel work.
> Cheers Nick
I am Jeff and I was the one that responded...
>
> On 14-10-28 09:58 PM, Jeff Kirsher wrote:
> > On Tue, 2014-10-28 at 21:49 -0400, nick wrote:
> >> Greg,
> >> Not picked up of yet. I would appreciate if this gets forwarded for me as this may help it get picked up.
> >> Further more this issues I am were causing were not technical but not listening and that's why I decided
> >> to state around and learn how to my patches properly.
> >> Cheers Nick
> >>
> >
> > I saw you updated you patch Nick, thanks. I feel I can safely put my
> > Reviewed-by: on it. Also, if Greg KH (staging maintainer) has not
> > picked up in the next day or so, I will submit your patch to the staging
> > tree for you.
> >
> >>
> >> On 14-10-28 05:31 PM, Greg Donald wrote:
> >>> On Tue, Oct 28, 2014 at 2:52 PM, nick <xerofoify@gmail.com> wrote:
> >>>> I am trying to improve my code as much as possible now, I really am finally understanding
> >>>> how terrible my code was before and I hope never again to make patches that shitty.
> >>>
> >>> I don't think your recent progress has gone unnoticed. Any word on
> >>> your latest patch getting picked up? It looked good to me.
> >>>
> >>> You remind me of John Locke from Lost. "Don't tell me what I can't do!" :)
> >>>
> >>>
> >
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141028/f601c283/attachment.bin
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 2:04 ` Jeff Kirsher
@ 2014-10-29 2:06 ` nick
0 siblings, 0 replies; 28+ messages in thread
From: nick @ 2014-10-29 2:06 UTC (permalink / raw)
To: kernelnewbies
Sorry Jeff,
My fault, mistyped.
Cheers Nick
On 14-10-28 10:04 PM, Jeff Kirsher wrote:
> On Tue, 2014-10-28 at 22:01 -0400, nick wrote:
>> Greg,
>> That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
>> other kernel work.
>> Cheers Nick
>
> I am Jeff and I was the one that responded...
>
>>
>> On 14-10-28 09:58 PM, Jeff Kirsher wrote:
>>> On Tue, 2014-10-28 at 21:49 -0400, nick wrote:
>>>> Greg,
>>>> Not picked up of yet. I would appreciate if this gets forwarded for me as this may help it get picked up.
>>>> Further more this issues I am were causing were not technical but not listening and that's why I decided
>>>> to state around and learn how to my patches properly.
>>>> Cheers Nick
>>>>
>>>
>>> I saw you updated you patch Nick, thanks. I feel I can safely put my
>>> Reviewed-by: on it. Also, if Greg KH (staging maintainer) has not
>>> picked up in the next day or so, I will submit your patch to the staging
>>> tree for you.
>>>
>>>>
>>>> On 14-10-28 05:31 PM, Greg Donald wrote:
>>>>> On Tue, Oct 28, 2014 at 2:52 PM, nick <xerofoify@gmail.com> wrote:
>>>>>> I am trying to improve my code as much as possible now, I really am finally understanding
>>>>>> how terrible my code was before and I hope never again to make patches that shitty.
>>>>>
>>>>> I don't think your recent progress has gone unnoticed. Any word on
>>>>> your latest patch getting picked up? It looked good to me.
>>>>>
>>>>> You remind me of John Locke from Lost. "Don't tell me what I can't do!" :)
>>>>>
>>>>>
>>>
>>>
>
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 2:01 ` nick
2014-10-29 2:04 ` Jeff Kirsher
@ 2014-10-29 5:05 ` Sudip Mukherjee
2014-10-29 6:08 ` Scott Lovenberg
1 sibling, 1 reply; 28+ messages in thread
From: Sudip Mukherjee @ 2014-10-29 5:05 UTC (permalink / raw)
To: kernelnewbies
On Wed, Oct 29, 2014 at 7:31 AM, nick <xerofoify@gmail.com> wrote:
> Greg,
> That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
> other kernel work.
it might take a long long time. i think he is very busy now. I have
not seen his replies to patches in the kernel list for atleast last 3
weeks.
> Cheers Nick
>
> On 14-10-28 09:58 PM, Jeff Kirsher wrote:
>> On Tue, 2014-10-28 at 21:49 -0400, nick wrote:
>>> Greg,
>>> Not picked up of yet. I would appreciate if this gets forwarded for me as this may help it get picked up.
>>> Further more this issues I am were causing were not technical but not listening and that's why I decided
>>> to state around and learn how to my patches properly.
>>> Cheers Nick
>>>
>>
>> I saw you updated you patch Nick, thanks. I feel I can safely put my
>> Reviewed-by: on it. Also, if Greg KH (staging maintainer) has not
>> picked up in the next day or so, I will submit your patch to the staging
>> tree for you.
>>
>>>
>>> On 14-10-28 05:31 PM, Greg Donald wrote:
>>>> On Tue, Oct 28, 2014 at 2:52 PM, nick <xerofoify@gmail.com> wrote:
>>>>> I am trying to improve my code as much as possible now, I really am finally understanding
>>>>> how terrible my code was before and I hope never again to make patches that shitty.
>>>>
>>>> I don't think your recent progress has gone unnoticed. Any word on
>>>> your latest patch getting picked up? It looked good to me.
>>>>
>>>> You remind me of John Locke from Lost. "Don't tell me what I can't do!" :)
>>>>
>>>>
>>
>>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 5:05 ` Sudip Mukherjee
@ 2014-10-29 6:08 ` Scott Lovenberg
2014-10-29 6:48 ` Sudip Mukherjee
0 siblings, 1 reply; 28+ messages in thread
From: Scott Lovenberg @ 2014-10-29 6:08 UTC (permalink / raw)
To: kernelnewbies
On Wed, Oct 29, 2014 at 12:05 AM, Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:
>
> On Wed, Oct 29, 2014 at 7:31 AM, nick <xerofoify@gmail.com> wrote:
> > Greg,
> > That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
> > other kernel work.
>
> it might take a long long time. i think he is very busy now. I have
> not seen his replies to patches in the kernel list for atleast last 3
> weeks.
>
[snip]
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Nah. Greg KH is a robot. I'm firmly convinced that man doesn't
sleep. If I didn't know better, I'd think he's a Cylon.
On a serious note; realistically, a two week window isn't unheard of
for getting your patches to mainline. So long as you're not trying to
sneak in right as the merge window is closing, you'll make the next
release. In fact, if you submit early enough, you can almost forget
that you have a patch in a kernel when it's released 2 months later.
Nothing like reading the release notes and finding your own patches
that you've forgotten about over your morning coffee. :)
--
Peace and Blessings,
-Scott.
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 6:08 ` Scott Lovenberg
@ 2014-10-29 6:48 ` Sudip Mukherjee
2014-10-29 8:45 ` Scott Lovenberg
0 siblings, 1 reply; 28+ messages in thread
From: Sudip Mukherjee @ 2014-10-29 6:48 UTC (permalink / raw)
To: kernelnewbies
On Wed, Oct 29, 2014 at 11:38 AM, Scott Lovenberg
<scott.lovenberg@gmail.com> wrote:
> On Wed, Oct 29, 2014 at 12:05 AM, Sudip Mukherjee
> <sudipm.mukherjee@gmail.com> wrote:
>>
>> On Wed, Oct 29, 2014 at 7:31 AM, nick <xerofoify@gmail.com> wrote:
>> > Greg,
>> > That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
>> > other kernel work.
>>
>> it might take a long long time. i think he is very busy now. I have
>> not seen his replies to patches in the kernel list for atleast last 3
>> weeks.
>>
> [snip]
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
> Nah. Greg KH is a robot. I'm firmly convinced that man doesn't
> sleep. If I didn't know better, I'd think he's a Cylon.
well said.
> On a serious note; realistically, a two week window isn't unheard of
> for getting your patches to mainline. So long as you're not trying to
mine is three weeks going on now. somehow i have managed to send my
patches just at the beginning of the merge window. :(
yesterday i saw Greg K-H releasing the stable patches , so i guess now
he will be seeing the pending staging patches.
> sneak in right as the merge window is closing, you'll make the next
> release. In fact, if you submit early enough, you can almost forget
> that you have a patch in a kernel when it's released 2 months later.
> Nothing like reading the release notes and finding your own patches
> that you've forgotten about over your morning coffee. :)
>
> --
> Peace and Blessings,
> -Scott.
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 6:48 ` Sudip Mukherjee
@ 2014-10-29 8:45 ` Scott Lovenberg
2014-10-30 0:04 ` nick
0 siblings, 1 reply; 28+ messages in thread
From: Scott Lovenberg @ 2014-10-29 8:45 UTC (permalink / raw)
To: kernelnewbies
On Wed, Oct 29, 2014 at 1:48 AM, Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:
> On Wed, Oct 29, 2014 at 11:38 AM, Scott Lovenberg
> <scott.lovenberg@gmail.com> wrote:
>> On Wed, Oct 29, 2014 at 12:05 AM, Sudip Mukherjee
>> <sudipm.mukherjee@gmail.com> wrote:
>>>
>>> On Wed, Oct 29, 2014 at 7:31 AM, nick <xerofoify@gmail.com> wrote:
>>> > Greg,
>>> > That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
>>> > other kernel work.
>>>
>>> it might take a long long time. i think he is very busy now. I have
>>> not seen his replies to patches in the kernel list for atleast last 3
>>> weeks.
>>>
>> [snip]
>>>
>>> _______________________________________________
>>> Kernelnewbies mailing list
>>> Kernelnewbies at kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>>
>> Nah. Greg KH is a robot. I'm firmly convinced that man doesn't
>> sleep. If I didn't know better, I'd think he's a Cylon.
> well said.
>
>> On a serious note; realistically, a two week window isn't unheard of
>> for getting your patches to mainline. So long as you're not trying to
>
> mine is three weeks going on now. somehow i have managed to send my
> patches just at the beginning of the merge window. :(
> yesterday i saw Greg K-H releasing the stable patches , so i guess now
> he will be seeing the pending staging patches.
It also depends on how many hops you are to the maintainer and how
heavy their workload is. Sometimes you can directly submit to them,
other times your patches will be passed through three trees before
they see mainline. It all depends on what you're working on and who's
in your "circle".
--
Peace and Blessings,
-Scott.
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-29 8:45 ` Scott Lovenberg
@ 2014-10-30 0:04 ` nick
2014-10-30 4:21 ` Sudip Mukherjee
0 siblings, 1 reply; 28+ messages in thread
From: nick @ 2014-10-30 0:04 UTC (permalink / raw)
To: kernelnewbies
I don't mind waiting. I am just honestly trying to improve my rep here and actually(hopefully) get a job
doing this full time.
Cheers Nick
On 14-10-29 04:45 AM, Scott Lovenberg wrote:
> On Wed, Oct 29, 2014 at 1:48 AM, Sudip Mukherjee
> <sudipm.mukherjee@gmail.com> wrote:
>> On Wed, Oct 29, 2014 at 11:38 AM, Scott Lovenberg
>> <scott.lovenberg@gmail.com> wrote:
>>> On Wed, Oct 29, 2014 at 12:05 AM, Sudip Mukherjee
>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>
>>>> On Wed, Oct 29, 2014 at 7:31 AM, nick <xerofoify@gmail.com> wrote:
>>>>> Greg,
>>>>> That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
>>>>> other kernel work.
>>>>
>>>> it might take a long long time. i think he is very busy now. I have
>>>> not seen his replies to patches in the kernel list for atleast last 3
>>>> weeks.
>>>>
>>> [snip]
>>>>
>>>> _______________________________________________
>>>> Kernelnewbies mailing list
>>>> Kernelnewbies at kernelnewbies.org
>>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>>
>>> Nah. Greg KH is a robot. I'm firmly convinced that man doesn't
>>> sleep. If I didn't know better, I'd think he's a Cylon.
>> well said.
>>
>>> On a serious note; realistically, a two week window isn't unheard of
>>> for getting your patches to mainline. So long as you're not trying to
>>
>> mine is three weeks going on now. somehow i have managed to send my
>> patches just at the beginning of the merge window. :(
>> yesterday i saw Greg K-H releasing the stable patches , so i guess now
>> he will be seeing the pending staging patches.
>
> It also depends on how many hops you are to the maintainer and how
> heavy their workload is. Sometimes you can directly submit to them,
> other times your patches will be passed through three trees before
> they see mainline. It all depends on what you're working on and who's
> in your "circle".
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-30 0:04 ` nick
@ 2014-10-30 4:21 ` Sudip Mukherjee
2014-10-30 10:14 ` nick
0 siblings, 1 reply; 28+ messages in thread
From: Sudip Mukherjee @ 2014-10-30 4:21 UTC (permalink / raw)
To: kernelnewbies
On Thu, Oct 30, 2014 at 5:34 AM, nick <xerofoify@gmail.com> wrote:
> I don't mind waiting. I am just honestly trying to improve my rep here and actually(hopefully) get a job
> doing this full time.
great , even if i want to get into a job where i can do this full time
, and hopefully everyone here does,
I dont want to discourage you , but considering your reputation (all
over the world - maybe even outside this world) , that might be
difficult.
> Cheers Nick
>
> On 14-10-29 04:45 AM, Scott Lovenberg wrote:
>> On Wed, Oct 29, 2014 at 1:48 AM, Sudip Mukherjee
>> <sudipm.mukherjee@gmail.com> wrote:
>>> On Wed, Oct 29, 2014 at 11:38 AM, Scott Lovenberg
>>> <scott.lovenberg@gmail.com> wrote:
>>>> On Wed, Oct 29, 2014 at 12:05 AM, Sudip Mukherjee
>>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>>
>>>>> On Wed, Oct 29, 2014 at 7:31 AM, nick <xerofoify@gmail.com> wrote:
>>>>>> Greg,
>>>>>> That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
>>>>>> other kernel work.
>>>>>
>>>>> it might take a long long time. i think he is very busy now. I have
>>>>> not seen his replies to patches in the kernel list for atleast last 3
>>>>> weeks.
>>>>>
>>>> [snip]
>>>>>
>>>>> _______________________________________________
>>>>> Kernelnewbies mailing list
>>>>> Kernelnewbies at kernelnewbies.org
>>>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>>
>>>>
>>>>
>>>> Nah. Greg KH is a robot. I'm firmly convinced that man doesn't
>>>> sleep. If I didn't know better, I'd think he's a Cylon.
>>> well said.
>>>
>>>> On a serious note; realistically, a two week window isn't unheard of
>>>> for getting your patches to mainline. So long as you're not trying to
>>>
>>> mine is three weeks going on now. somehow i have managed to send my
>>> patches just at the beginning of the merge window. :(
>>> yesterday i saw Greg K-H releasing the stable patches , so i guess now
>>> he will be seeing the pending staging patches.
>>
>> It also depends on how many hops you are to the maintainer and how
>> heavy their workload is. Sometimes you can directly submit to them,
>> other times your patches will be passed through three trees before
>> they see mainline. It all depends on what you're working on and who's
>> in your "circle".
>>
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch
2014-10-30 4:21 ` Sudip Mukherjee
@ 2014-10-30 10:14 ` nick
0 siblings, 0 replies; 28+ messages in thread
From: nick @ 2014-10-30 10:14 UTC (permalink / raw)
To: kernelnewbies
I am trying to improve my rep first through.
Cheers Nick
On 14-10-30 12:21 AM, Sudip Mukherjee wrote:
> On Thu, Oct 30, 2014 at 5:34 AM, nick <xerofoify@gmail.com> wrote:
>> I don't mind waiting. I am just honestly trying to improve my rep here and actually(hopefully) get a job
>> doing this full time.
>
> great , even if i want to get into a job where i can do this full time
> , and hopefully everyone here does,
> I dont want to discourage you , but considering your reputation (all
> over the world - maybe even outside this world) , that might be
> difficult.
>
>> Cheers Nick
>>
>> On 14-10-29 04:45 AM, Scott Lovenberg wrote:
>>> On Wed, Oct 29, 2014 at 1:48 AM, Sudip Mukherjee
>>> <sudipm.mukherjee@gmail.com> wrote:
>>>> On Wed, Oct 29, 2014 at 11:38 AM, Scott Lovenberg
>>>> <scott.lovenberg@gmail.com> wrote:
>>>>> On Wed, Oct 29, 2014 at 12:05 AM, Sudip Mukherjee
>>>>> <sudipm.mukherjee@gmail.com> wrote:
>>>>>>
>>>>>> On Wed, Oct 29, 2014 at 7:31 AM, nick <xerofoify@gmail.com> wrote:
>>>>>>> Greg,
>>>>>>> That's fine, I was wondering how long Greg KH takes to get around to picking this up as he is very busy with
>>>>>>> other kernel work.
>>>>>>
>>>>>> it might take a long long time. i think he is very busy now. I have
>>>>>> not seen his replies to patches in the kernel list for atleast last 3
>>>>>> weeks.
>>>>>>
>>>>> [snip]
>>>>>>
>>>>>> _______________________________________________
>>>>>> Kernelnewbies mailing list
>>>>>> Kernelnewbies at kernelnewbies.org
>>>>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>>>
>>>>>
>>>>>
>>>>> Nah. Greg KH is a robot. I'm firmly convinced that man doesn't
>>>>> sleep. If I didn't know better, I'd think he's a Cylon.
>>>> well said.
>>>>
>>>>> On a serious note; realistically, a two week window isn't unheard of
>>>>> for getting your patches to mainline. So long as you're not trying to
>>>>
>>>> mine is three weeks going on now. somehow i have managed to send my
>>>> patches just at the beginning of the merge window. :(
>>>> yesterday i saw Greg K-H releasing the stable patches , so i guess now
>>>> he will be seeing the pending staging patches.
>>>
>>> It also depends on how many hops you are to the maintainer and how
>>> heavy their workload is. Sometimes you can directly submit to them,
>>> other times your patches will be passed through three trees before
>>> they see mainline. It all depends on what you're working on and who's
>>> in your "circle".
>>>
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2014-10-30 10:14 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26 19:52 [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch Nicholas Krause
2014-10-28 8:24 ` Jeff Kirsher
2014-10-28 16:50 ` Greg Freemyer
2014-10-28 17:39 ` Greg Donald
2014-10-28 17:53 ` Nick Krause
2014-10-28 18:06 ` Greg Donald
2014-10-28 19:52 ` nick
2014-10-28 21:31 ` Greg Donald
2014-10-29 1:49 ` nick
2014-10-29 1:58 ` Jeff Kirsher
2014-10-29 2:01 ` nick
2014-10-29 2:04 ` Jeff Kirsher
2014-10-29 2:06 ` nick
2014-10-29 5:05 ` Sudip Mukherjee
2014-10-29 6:08 ` Scott Lovenberg
2014-10-29 6:48 ` Sudip Mukherjee
2014-10-29 8:45 ` Scott Lovenberg
2014-10-30 0:04 ` nick
2014-10-30 4:21 ` Sudip Mukherjee
2014-10-30 10:14 ` nick
2014-10-28 18:07 ` Jeff Haran
2014-10-28 18:20 ` Mandeep Sandhu
2014-10-28 20:59 ` Greg Donald
2014-10-28 18:42 ` Valdis.Kletnieks at vt.edu
2014-10-28 19:04 ` John de la Garza
2014-10-28 20:55 ` Greg Donald
2014-10-28 21:33 ` John de la Garza
-- strict thread matches above, loose matches on Subject: below --
2014-10-28 13:27 Nicholas Krause
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).