Re: [PATCH v2 01/75] staging: ks7010: Use the ARRAY_SIZE() macro to calculate array sizes.

2018-03-30 Thread Joe Perches
On Fri, 2018-03-30 at 23:07 -0700, Quytelda Kahja wrote: > This macro, provided in 'linux/kernel.h', will calculate the size > more succinctly than a division operation. It's nice that you send patches, but please try to send a cover letter with your patch series. Also, 75 patches is quite a lot

[PATCH v2 06/75] staging: ks7010: Remove unused 'struct hostif_data_indication_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_data_indication_t' is not used in this driver. Remove 'struct hostif_data_indication_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_h

[PATCH v2 05/75] staging: ks7010: Remove trailing _t from 'struct hostif_data_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_data_request_t' with 'struct hostif_data_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hos

[PATCH v2 02/75] staging: ks7010: Remove trailing _t from 'struct wpa_suite_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct wpa_suite_t' with 'struct wpa_suite'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- 1 fi

[PATCH v2 01/75] staging: ks7010: Use the ARRAY_SIZE() macro to calculate array sizes.

2018-03-30 Thread Quytelda Kahja
This macro, provided in 'linux/kernel.h', will calculate the size more succinctly than a division operation. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan_net.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/d

[PATCH v2 03/75] staging: ks7010: Remove trailing _t from 'struct rsn_mode_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct rsn_mode_t' with 'struct rsn_mode'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- 1 file

[PATCH v2 09/75] staging: ks7010: Remove trailing _t from 'struct hostif_mib_value_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_mib_value_t' with 'struct hostif_mib_value'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h

[PATCH v2 10/75] staging: ks7010: Remove unused 'struct hostif_mib_get_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_mib_get_confirm_t' is not used in this driver. Remove 'struct hostif_mib_get_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_ho

[PATCH v2 04/75] staging: ks7010: Remove trailing _t from 'struct pmk_cache_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct pmk_cache_t' with 'struct pmk_cache'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 2 +- 1 file

[PATCH v2 08/75] staging: ks7010: Remove trailing _t from 'struct hostif_mib_get_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_mib_get_request_t' with 'struct hostif_mib_get_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/

[PATCH v2 11/75] staging: ks7010: Remove trailing _t from 'struct hostif_mib_set_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_mib_set_request_t' with 'struct hostif_mib_set_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/

[PATCH v2 07/75] staging: ks7010: Remove trailing _t from 'struct channel_list_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct channel_list_t' with 'struct channel_list'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 8

[PATCH v2 14/75] staging: ks7010: Remove unused 'struct hostif_power_mgmt_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_power_mgmt_confirm_t' is not used in this driver. Remove 'struct hostif_power_mgmt_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/

[PATCH v2 16/75] staging: ks7010: Remove unused 'struct hostif_start_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_start_confirm_t' is not used in this driver. Remove 'struct hostif_start_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.

[PATCH v2 15/75] staging: ks7010: Remove trailing _t from 'struct hostif_start_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_start_request_t' with 'struct hostif_start_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_h

[PATCH v2 12/75] staging: ks7010: Remove unused 'struct hostif_mib_set_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_mib_set_confirm_t' is not used in this driver. Remove 'struct hostif_mib_set_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_ho

[PATCH v2 18/75] staging: ks7010: Remove trailing _t from 'struct rate_set8_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct rate_set8_t' with 'struct rate_set8'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 6 +++--- 1

[PATCH v2 13/75] staging: ks7010: Remove trailing _t from 'struct hostif_power_mgmt_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_power_mgmt_request_t' with 'struct hostif_power_mgmt_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/k

[PATCH v2 19/75] staging: ks7010: Remove trailing _t from 'struct fh_parms_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct fh_parms_t' with 'struct fh_parms'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 4 ++-- 1 file

[PATCH v2 22/75] staging: ks7010: Remove trailing _t from 'struct ibss_parms_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct ibss_parms_t' with 'struct ibss_parms'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 4 ++-- 1

[PATCH v2 17/75] staging: ks7010: Remove trailing _t from 'struct ssid_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct ssid_t' with 'struct ssid'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 10 +- 1 file

[PATCH v2 23/75] staging: ks7010: Remove unused 'struct rsn_t'.

2018-03-30 Thread Quytelda Kahja
'struct rsn_t' is not used in this driver. Remove 'struct rsn_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h index a3c686c1289c..091bc82a99c4

[PATCH v2 24/75] staging: ks7010: Remove trailing _t from 'struct erp_params_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct erp_params_t' with 'struct erp_params'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 4 ++-- 1

[PATCH v2 25/75] staging: ks7010: Remove trailing _t from 'struct rate_set16_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct rate_set16_t' with 'struct rate_set16'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 4 ++-- 1

[PATCH v2 30/75] staging: ks7010: Remove unused 'struct hostif_stop_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_stop_confirm_t' is not used in this driver. Remove 'struct hostif_stop_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h

[PATCH v2 21/75] staging: ks7010: Remove trailing _t from 'struct cf_parms_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct cf_parms_t' with 'struct cf_parms'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 4 ++-- 1 file

[PATCH v2 20/75] staging: ks7010: Remove trailing _t from 'struct ds_parms_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct ds_parms_t' with 'struct ds_parms'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 4 ++-- 1 file

[PATCH v2 31/75] staging: ks7010: Remove trailing _t from 'struct hostif_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_request_t' with 'struct hostif_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 2

[PATCH v2 28/75] staging: ks7010: Remove unused 'struct hostif_connect_indication_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_connect_indication_t' is not used in this driver. Remove 'struct hostif_connect_indication_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/

[PATCH v2 33/75] staging: ks7010: Remove unused 'struct hostif_ps_adhoc_set_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_ps_adhoc_set_confirm_t' is not used in this driver. Remove 'struct hostif_ps_adhoc_set_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7

[PATCH v2 32/75] staging: ks7010: Remove trailing _t from 'struct hostif_ps_adhoc_set_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_ps_adhoc_set_request_t' with 'struct hostif_ps_adhoc_set_request'. Signed-off-by: Quytelda Kahja --- drivers/stagi

[PATCH v2 34/75] staging: ks7010: Remove trailing _t from 'struct hostif_infrastructure_set_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_infrastructure_set_request_t' with 'struct hostif_infrastructure_set_request'. Signed-off-by: Quytelda Kahja --- d

[PATCH v2 35/75] staging: ks7010: Remove unused 'struct hostif_infrastructure_set_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_infrastructure_set_confirm_t' is not used in this driver. Remove 'struct hostif_infrastructure_set_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers

[PATCH v2 36/75] staging: ks7010: Remove trailing _t from 'struct hostif_adhoc_set_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_adhoc_set_request_t' with 'struct hostif_adhoc_set_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7

[PATCH v2 29/75] staging: ks7010: Remove trailing _t from 'struct hostif_stop_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_stop_request_t' with 'struct hostif_stop_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks7010

[PATCH v2 38/75] staging: ks7010: Remove unused 'struct hostif_adhoc_set_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_adhoc_set_confirm_t' is not used in this driver. Remove 'struct hostif_adhoc_set_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks

[PATCH v2 41/75] staging: ks7010: Remove trailing _t from 'struct association_response_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct association_response_t' with 'struct association_response'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_h

[PATCH v2 37/75] staging: ks7010: Remove trailing _t from 'struct hostif_adhoc_set2_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_adhoc_set2_request_t' with 'struct hostif_adhoc_set2_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/k

[PATCH v2 42/75] staging: ks7010: Remove unused 'struct hostif_associate_indication_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_associate_indication_t' is not used in this driver. Remove 'struct hostif_associate_indication_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/

[PATCH v2 26/75] staging: ks7010: Remove trailing _t from 'struct ap_info_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct ap_info_t' with 'struct ap_info'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 8 driv

[PATCH v2 40/75] staging: ks7010: Remove trailing _t from 'struct association_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct association_request_t' with 'struct association_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hos

[PATCH v2 39/75] staging: ks7010: Remove unused 'struct last_associate_t'.

2018-03-30 Thread Quytelda Kahja
'struct last_associate_t' is not used in this driver. Remove 'struct last_associate_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h index ce9f

Re: [Cocci] [PATCH] crypto: cavium: zip: Remove unnecessary parentheses

2018-03-30 Thread Julia Lawall
On Thu, 29 Mar 2018, Varsha Rao wrote: > On Wed, Mar 28, 2018 at 11:41 PM, Joe Perches wrote: > > > > On Wed, 2018-03-28 at 23:27, Varsha Rao wrote: > > > This patch fixes the clang warning of extraneous parentheses, with the > > > following coccinelle script. > > > > > > @@ > > > identifier i;

Re: [Cocci] [PATCH] crypto: cavium: zip: Remove unnecessary parentheses

2018-03-30 Thread Julia Lawall
On Fri, 30 Mar 2018, Joe Perches wrote: > On Thu, 2018-03-29 at 21:03 +0530, Varsha Rao wrote: > > On Wed, Mar 28, 2018 at 11:41 PM, Joe Perches wrote: > > > > > > On Wed, 2018-03-28 at 23:27, Varsha Rao wrote: > > > > This patch fixes the clang warning of extraneous parentheses, with the > > >

Re: [PATCH] mt7601u: phy: mark expected switch fall-through

2018-03-30 Thread Jakub Kicinski
On Fri, 30 Mar 2018 16:12:23 -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva Acked-by: Jakub Kicinski

[PATCH v2 43/75] staging: ks7010: Remove trailing _t from 'struct hostif_bss_scan_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_bss_scan_request_t' with 'struct hostif_bss_scan_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks701

Re: [PATCH v3 1/1] security: Add mechanism to safely (un)load LSMs after boot time

2018-03-30 Thread Sargun Dhillon
On Fri, Mar 30, 2018 at 2:39 PM, Casey Schaufler wrote: > On 3/29/2018 7:33 PM, Sargun Dhillon wrote: >> On Thu, Mar 29, 2018 at 02:37:10PM -0700, Casey Schaufler wrote: >>> On 3/29/2018 2:14 PM, Sargun Dhillon wrote: This patch introduces a mechanism to add mutable hooks and immutable h

[PATCH v2 44/75] staging: ks7010: Remove unused 'struct hostif_bss_scan_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_bss_scan_confirm_t' is not used in this driver. Remove 'struct hostif_bss_scan_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_

[PATCH v2 45/75] staging: ks7010: Remove trailing _t from 'struct hostif_phy_information_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_phy_information_request_t' with 'struct hostif_phy_information_request'. Signed-off-by: Quytelda Kahja --- drivers

[PATCH v2 50/75] staging: ks7010: Remove unused 'struct hostif_mic_failure_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_mic_failure_confirm_t' is not used in this driver. Remove 'struct hostif_mic_failure_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks701

[PATCH v2 53/75] staging: ks7010: Remove trailing _t from 'struct wps_ie_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct wps_ie_t' with 'struct wps_ie'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++-- 1 file chang

[PATCH v2 49/75] staging: ks7010: Remove trailing _t from 'struct hostif_mic_failure_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_mic_failure_request_t' with 'struct hostif_mic_failure_request'. Signed-off-by: Quytelda Kahja --- drivers/staging

[PATCH v2 47/75] staging: ks7010: Remove trailing _t from 'struct hostif_sleep_request_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostif_sleep_request_t' with 'struct hostif_sleep_request'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_h

[PATCH v2 51/75] staging: ks7010: Remove trailing _t from 'struct hostt_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct hostt_t' with 'struct hostt'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++-- 1 file changed

[PATCH v2 52/75] staging: ks7010: Remove trailing _t from 'struct rsn_ie_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct rsn_ie_t' with 'struct rsn_ie'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 6 +++--- 1 file cha

[PATCH v2 54/75] staging: ks7010: Remove trailing _t from 'struct local_ap_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct local_ap_t' with 'struct local_ap'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 10 +

[PATCH v2 48/75] staging: ks7010: Remove unused 'struct hostif_sleep_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_sleep_confirm_t' is not used in this driver. Remove 'struct hostif_sleep_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.

[PATCH v2 55/75] staging: ks7010: Remove trailing _t from 'struct local_aplist_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct local_aplist_t' with 'struct local_aplist'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++--

[PATCH v2 58/75] staging: ks7010: Remove trailing _t from 'struct power_save_status_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct power_save_status_t' with 'struct power_save_status'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h

[PATCH v2 56/75] staging: ks7010: Remove trailing _t from 'struct local_gain_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct local_gain_t' with 'struct local_gain'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++-- 1 fi

[PATCH v2 61/75] staging: ks7010: Remove trailing _t from 'struct wpa_key_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct wpa_key_t' with 'struct wpa_key'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 2 +- drivers/

[PATCH v2 60/75] staging: ks7010: Remove trailing _t from 'struct scan_ext_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct scan_ext_t' with 'struct scan_ext'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++-- 1 file c

[PATCH v2 57/75] staging: ks7010: Remove trailing _t from 'struct local_eeprom_sum_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct local_eeprom_sum_t' with 'struct local_eeprom_sum'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h |

[PATCH v2 67/75] staging: ks7010: Remove trailing _t from 'struct michael_mic_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct michael_mic_t' with 'struct michael_mic'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 4 ++-

[PATCH v2 64/75] staging: ks7010: Remove trailing _t from 'struct pmk_list_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct pmk_list_t' with 'struct pmk_list'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++-- 1 file c

[PATCH v2 59/75] staging: ks7010: Remove trailing _t from 'struct sleep_status_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct sleep_status_t' with 'struct sleep_status'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++--

[PATCH v2 63/75] staging: ks7010: Remove trailing _t from 'struct wpa_status_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct wpa_status_t' with 'struct wpa_status'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++-- 1 fi

[PATCH v2 66/75] staging: ks7010: Remove trailing _t from 'struct wps_status_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct wps_status_t' with 'struct wps_status'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 4 ++-- 1 fi

[PATCH v2 62/75] staging: ks7010: Remove trailing _t from 'struct mic_failure_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct mic_failure_t' with 'struct mic_failure'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 2 +- dr

[PATCH v2 65/75] staging: ks7010: Remove trailing _t from 'struct pmk_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct pmk_t' with 'struct pmk'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 2 +- drivers/staging/

[PATCH v2 70/75] staging: ks7010: Rename ks_wlan_set_multicast_list()

2018-03-30 Thread Quytelda Kahja
All of the net_device_ops callbacks are named after their counterparts in the kernel's 'struct net_device_ops', except ks_wlan_set_multicast_list(). Rename it to ks_wlan_set_rx_mode() for greater consistency. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan_net.c | 6 +++--- 1 f

[PATCH v2 71/75] staging: ks7010: Remove dummy address set.

2018-03-30 Thread Quytelda Kahja
Setting a dummy address during the driver probe is not necessary. The dev_addr field is already zeroed out from alloc_etherdev(). Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan_net.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c

[PATCH v2 72/75] staging: ks7010: Change 'device_open_status' to a bool.

2018-03-30 Thread Quytelda Kahja
The 'device_open_status' member of 'struct ks_wlan_private' is only ever set to zero or one, so it makes more sense for it to be a bool instead of an int. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan.h | 2 +- drivers/staging/ks7010/ks_wlan_net.c | 5 ++--- 2 files change

[PATCH v2 69/75] staging: ks7010: Remove extra blank line between functions.

2018-03-30 Thread Quytelda Kahja
Remove an extra blank line indicated by checkpatch. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks7010_sdio.c | 3 ++- drivers/staging/ks7010/ks_hostif.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/k

[PATCH v2 73/75] staging: ks7010: Remove unnecessary casts in 'struct ks_wlan_handler_def'.

2018-03-30 Thread Quytelda Kahja
The casts used when initializing members of this data structure mirror the types the variables already have. Remove the casts. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_wlan_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ks7010/

[PATCH v2 68/75] staging: ks7010: Replace manual array copy with ether_addr_copy().

2018-03-30 Thread Quytelda Kahja
Copying the dummy HW address into the struct net_device doesn't need to be done byte by byte; use ether_addr_copy() instead. Additionally, dev->dev_addr is not eight bytes long. ether_setup() sets the dev->addr_len to ETH_ALEN (defined as 6) in the net core code. Signed-off-by: Quytelda Kahja ---

[PATCH v2 75/75] staging: ks7010: Replace memcpy() with ether_addr_copy().

2018-03-30 Thread Quytelda Kahja
ether_addr_copy() is the function for copying a hardware address, so replace the manual memcpy() operation with ether_addr_copy(). Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_ho

[PATCH v2 74/75] staging: ks7010: Replace memcmp() with ether_addr_equal().

2018-03-30 Thread Quytelda Kahja
ether_addr_equal() is the function for comparing HW addresses, so remove the manual memcmp operation and replace it with ether_addr_equals(). Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/stagi

[PATCH v2 27/75] staging: ks7010: Remove trailing _t from 'struct link_ap_info_t'.

2018-03-30 Thread Quytelda Kahja
The "_t" suffix is not needed for structure names in this driver, and is a reflection of an older typedef system that is no longer in place. Replace all occurences of 'struct link_ap_info_t' with 'struct link_ap_info'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 4 ++--

[PATCH v2 46/75] staging: ks7010: Remove unused 'struct hostif_phy_information_confirm_t'.

2018-03-30 Thread Quytelda Kahja
'struct hostif_phy_information_confirm_t' is not used in this driver. Remove 'struct hostif_phy_information_confirm_t'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 12 1 file changed, 12 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/driv

Re: [PATCH v1] kernel/trace:check the val against the available mem

2018-03-30 Thread Joel Fernandes
On Fri, Mar 30, 2018 at 8:07 PM, Steven Rostedt wrote: > On Fri, 30 Mar 2018 19:18:57 -0700 > Matthew Wilcox wrote: > >> Again though, this is the same pattern as vmalloc. There are any number >> of places where userspace can cause an arbitrarily large vmalloc to be >> attempted (grep for kvmall

Re: [PATCH 00/11] Use global pages with PTI

2018-03-30 Thread Ingo Molnar
* Dave Hansen wrote: > On 03/30/2018 01:32 PM, Thomas Gleixner wrote: > > On Fri, 30 Mar 2018, Dave Hansen wrote: > > > >> On 03/30/2018 05:17 AM, Ingo Molnar wrote: > >>> BTW., the expectation on !PCID Intel hardware would be for global pages > >>> to help > >>> even more than the 0.6% and 1

Re: [PATCH v6] kernel.h: Retain constant expression output for max()/min()

2018-03-30 Thread Ingo Molnar
* Kees Cook wrote: > On Mon, Mar 26, 2018 at 10:47 PM, Ingo Molnar wrote: > > > > * Kees Cook wrote: > > > >> In the effort to remove all VLAs from the kernel[1], it is desirable to > >> build with -Wvla. However, this warning is overly pessimistic, in that > >> it is only happy with stack arr

Re: [03/10] genksyms: generate lexer and parser during build instead of shipping

2018-03-30 Thread Andrei Vagin
On Sat, Mar 31, 2018 at 11:20:22AM +0900, Masahiro Yamada wrote: > 2018-03-31 7:21 GMT+09:00 Andrei Vagin : > > On Fri, Mar 30, 2018 at 10:40:22AM -0700, Andrei Vagin wrote: > >> On Fri, Mar 23, 2018 at 10:04:32PM +0900, Masahiro Yamada wrote: > >> > Now that the kernel build supports flex and biso

Re: [PATCH v6] kernel.h: Retain constant expression output for max()/min()

2018-03-30 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:47 PM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> In the effort to remove all VLAs from the kernel[1], it is desirable to >> build with -Wvla. However, this warning is overly pessimistic, in that >> it is only happy with stack array sizes that are declared as consta

Re: [PATCH v4 01/14] soc: qcom: Separate kryo l2 accessors from PMU driver

2018-03-30 Thread kbuild test robot
Hi Ilia, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.16-rc7 next-20180329] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/com

Re: [kbuild-all] [PATCH] OPTIONAL: cpufreq/intel_pstate: fix debugfs_simple_attr.cocci warnings

2018-03-30 Thread Nicolai Stange
Julia Lawall writes: > On Fri, 30 Mar 2018, Nicolai Stange wrote: > >> Julia Lawall writes: >> >> > On Thu, 29 Mar 2018, Fabio Estevam wrote: >> > >> >> Hi Julia, >> >> >> >> On Thu, Mar 29, 2018 at 4:12 PM, Julia Lawall >> >> wrote: >> >> > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIM

[PATCH v8 03/18] block, dax: remove dead code in blkdev_writepages()

2018-03-30 Thread Dan Williams
Block device inodes never have S_DAX set, so kill the check for DAX and diversion to dax_writeback_mapping_range(). Cc: Jeff Moyer Cc: Ross Zwisler Cc: Matthew Wilcox Cc: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Jan Kara Signed-off-by: Dan Williams --- fs/block_dev.c |5

[PATCH v8 05/18] ext4, dax: introduce ext4_dax_aops

2018-03-30 Thread Dan Williams
In preparation for the dax implementation to start associating dax pages to inodes via page->mapping, we need to provide a 'struct address_space_operations' instance for dax. Otherwise, direct-I/O triggers incorrect page cache assumptions and warnings. Cc: "Theodore Ts'o" Cc: Andreas Dilger Cc:

[PATCH v8 04/18] xfs, dax: introduce xfs_dax_aops

2018-03-30 Thread Dan Williams
In preparation for the dax implementation to start associating dax pages to inodes via page->mapping, we need to provide a 'struct address_space_operations' instance for dax. Otherwise, direct-I/O triggers incorrect page cache assumptions and warnings like the following: WARNING: CPU: 27 PID: 178

[PATCH v8 06/18] ext2, dax: introduce ext2_dax_aops

2018-03-30 Thread Dan Williams
In preparation for the dax implementation to start associating dax pages to inodes via page->mapping, we need to provide a 'struct address_space_operations' instance for dax. Otherwise, direct-I/O triggers incorrect page cache assumptions and warnings. Cc: Jan Kara Reported-by: kbuild test robot

[PATCH v8 08/18] dax: introduce CONFIG_DAX_DRIVER

2018-03-30 Thread Dan Williams
In support of allowing device-mapper to compile out idle/dead code when there are no dax providers in the system, introduce the DAX_DRIVER symbol. This is selected by all leaf drivers that device-mapper might be layered on top. This allows device-mapper to conditionally 'select DAX' only when a pro

[PATCH v8 11/18] mm, dax: enable filesystems to trigger dev_pagemap ->page_free callbacks

2018-03-30 Thread Dan Williams
In order to resolve collisions between filesystem operations and DMA to DAX mapped pages we need a callback when DMA completes. With a callback we can hold off filesystem operations while DMA is in-flight and then resume those operations when the last put_page() occurs on a DMA page. Recall that t

[PATCH v8 15/18] mm, fs, dax: handle layout changes to pinned dax mappings

2018-03-30 Thread Dan Williams
Background: get_user_pages() in the filesystem pins file backed memory pages for access by devices performing dma. However, it only pins the memory pages not the page-to-file offset association. If a file is truncated the pages are mapped out of the file and dma may continue indefinitely into a pa

[PATCH v8 16/18] xfs: prepare xfs_break_layouts() to be called with XFS_MMAPLOCK_EXCL

2018-03-30 Thread Dan Williams
In preparation for adding coordination between extent unmap operations and busy dax-pages, update xfs_break_layouts() to permit it to be called with the mmap lock held. This lock scheme will be required for coordinating the break of 'dax layouts' (non-idle dax (ZONE_DEVICE) pages mapped into the fi

[PATCH v8 14/18] memremap: mark devm_memremap_pages() EXPORT_SYMBOL_GPL

2018-03-30 Thread Dan Williams
The devm_memremap_pages() facility is tightly integrated with the kernel's memory hotplug functionality. It injects an altmap argument deep into the architecture specific vmemmap implementation to allow allocating from specific reserved pages, and it has Linux specific assumptions about page struct

[PATCH v8 17/18] xfs: prepare xfs_break_layouts() for another layout type

2018-03-30 Thread Dan Williams
When xfs is operating as the back-end of a pNFS block server, it prevents collisions between local and remote operations by requiring a lease to be held for remotely accessed blocks. Local filesystem operations break those leases before writing or mutating the extent map of the file. A similar mec

[PATCH v8 12/18] memremap: split devm_memremap_pages() and memremap() infrastructure

2018-03-30 Thread Dan Williams
Currently, kernel/memremap.c contains generic code for supporting memremap() (CONFIG_HAS_IOMEM) and devm_memremap_pages() (CONFIG_ZONE_DEVICE). This causes ongoing build maintenance problems as additions to memremap.c, especially for the ZONE_DEVICE case, need to be careful about being placed in if

[PATCH v8 18/18] xfs, dax: introduce xfs_break_dax_layouts()

2018-03-30 Thread Dan Williams
xfs_break_dax_layouts(), similar to xfs_break_leased_layouts(), scans for busy / pinned dax pages and waits for those pages to go idle before any potential extent unmap operation. dax_layout_busy_page() handles synchronizing against new page-busy events (get_user_pages). It invalidates all mapping

[PATCH v8 10/18] dax, dm: introduce ->fs_{claim, release}() dax_device infrastructure

2018-03-30 Thread Dan Williams
In preparation for allowing filesystems to augment the dev_pagemap associated with a dax_device, add an ->fs_claim() callback. The ->fs_claim() callback is leveraged by the device-mapper dax implementation to iterate all member devices in the map and repeat the claim operation across the array. In

  1   2   3   4   5   6   7   8   >