diff mbox series

[v2,net-next] sfc: fix ia64 builds without CONFIG_RTC_LIB

Message ID 20230217170348.7402-1-alejandro.lucero-palau@amd.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series [v2,net-next] sfc: fix ia64 builds without CONFIG_RTC_LIB | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 9 of 9 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Lucero Palau, Alejandro Feb. 17, 2023, 5:03 p.m. UTC
From: Alejandro Lucero <alejandro.lucero-palau@amd.com>

Add an embarrasingly missed semicolon breaking kernel building
in ia64 configs.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202302170047.EjCPizu3-lkp@intel.com/
Fixes: 14743ddd2495 ("sfc: add devlink info support for ef100")
Signed-off-by: Alejandro Lucero <alejandro.lucero-palau@amd.com>
---
 drivers/net/ethernet/sfc/efx_devlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ammar Faizi Feb. 17, 2023, 5:41 p.m. UTC | #1
On 2/18/23 12:03 AM, alejandro.lucero-palau@amd.com wrote:
> -		memset(&build_date, 0, sizeof(build_date)
> +		memset(&build_date, 0, sizeof(build_date);

Missing ")" for the memset.
Paolo Abeni Feb. 17, 2023, 5:46 p.m. UTC | #2
On Fri, 2023-02-17 at 17:03 +0000, alejandro.lucero-palau@amd.com
wrote:
> From: Alejandro Lucero <alejandro.lucero-palau@amd.com>
> 
> Add an embarrasingly missed semicolon breaking kernel building
> in ia64 configs.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Link: https://lore.kernel.org/oe-kbuild-all/202302170047.EjCPizu3-lkp@intel.com/
> Fixes: 14743ddd2495 ("sfc: add devlink info support for ef100")
> Signed-off-by: Alejandro Lucero <alejandro.lucero-palau@amd.com>
> ---
>  drivers/net/ethernet/sfc/efx_devlink.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/sfc/efx_devlink.c b/drivers/net/ethernet/sfc/efx_devlink.c
> index d2eb6712ba35..3eb355fd4282 100644
> --- a/drivers/net/ethernet/sfc/efx_devlink.c
> +++ b/drivers/net/ethernet/sfc/efx_devlink.c
> @@ -323,7 +323,7 @@ static void efx_devlink_info_running_v2(struct efx_nic *efx,
>  				    GET_VERSION_V2_OUT_SUCFW_BUILD_DATE);
>  		rtc_time64_to_tm(tstamp, &build_date);
>  #else
> -		memset(&build_date, 0, sizeof(build_date)
> +		memset(&build_date, 0, sizeof(build_date);

You missed the feedback on previous version from Manank reporting you
should also add a final ')' above. Should be:

+		memset(&build_date, 0, sizeof(build_date));

Please try to build test the next version before submitting it, thanks!

Paolo
Lucero Palau, Alejandro Feb. 17, 2023, 7:17 p.m. UTC | #3
On 2/17/23 17:46, Paolo Abeni wrote:
> On Fri, 2023-02-17 at 17:03 +0000, alejandro.lucero-palau@amd.com
> wrote:
>> From: Alejandro Lucero <alejandro.lucero-palau@amd.com>
>>
>> Add an embarrasingly missed semicolon breaking kernel building
>> in ia64 configs.
>>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Link: https://lore.kernel.org/oe-kbuild-all/202302170047.EjCPizu3-lkp@intel.com/
>> Fixes: 14743ddd2495 ("sfc: add devlink info support for ef100")
>> Signed-off-by: Alejandro Lucero <alejandro.lucero-palau@amd.com>
>> ---
>>   drivers/net/ethernet/sfc/efx_devlink.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/sfc/efx_devlink.c b/drivers/net/ethernet/sfc/efx_devlink.c
>> index d2eb6712ba35..3eb355fd4282 100644
>> --- a/drivers/net/ethernet/sfc/efx_devlink.c
>> +++ b/drivers/net/ethernet/sfc/efx_devlink.c
>> @@ -323,7 +323,7 @@ static void efx_devlink_info_running_v2(struct efx_nic *efx,
>>   				    GET_VERSION_V2_OUT_SUCFW_BUILD_DATE);
>>   		rtc_time64_to_tm(tstamp, &build_date);
>>   #else
>> -		memset(&build_date, 0, sizeof(build_date)
>> +		memset(&build_date, 0, sizeof(build_date);
> You missed the feedback on previous version from Manank reporting you
> should also add a final ')' above. Should be:
>
> +		memset(&build_date, 0, sizeof(build_date));
>
> Please try to build test the next version before submitting it, thanks!

I thought I did so, but obviously wrongly. The shortcut for configuring 
the kernel without CONFIG_RTC_LIC did not work but I did not notice.

It will not happen again.

Thanks

> Paolo
>
Lucero Palau, Alejandro Feb. 17, 2023, 7:29 p.m. UTC | #4
On 2/17/23 17:46, Paolo Abeni wrote:
> On Fri, 2023-02-17 at 17:03 +0000, alejandro.lucero-palau@amd.com
> wrote:
>> From: Alejandro Lucero <alejandro.lucero-palau@amd.com>
>>
>> Add an embarrasingly missed semicolon breaking kernel building
>> in ia64 configs.
>>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Link: https://lore.kernel.org/oe-kbuild-all/202302170047.EjCPizu3-lkp@intel.com/
>> Fixes: 14743ddd2495 ("sfc: add devlink info support for ef100")
>> Signed-off-by: Alejandro Lucero <alejandro.lucero-palau@amd.com>
>> ---
>>   drivers/net/ethernet/sfc/efx_devlink.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/sfc/efx_devlink.c b/drivers/net/ethernet/sfc/efx_devlink.c
>> index d2eb6712ba35..3eb355fd4282 100644
>> --- a/drivers/net/ethernet/sfc/efx_devlink.c
>> +++ b/drivers/net/ethernet/sfc/efx_devlink.c
>> @@ -323,7 +323,7 @@ static void efx_devlink_info_running_v2(struct efx_nic *efx,
>>   				    GET_VERSION_V2_OUT_SUCFW_BUILD_DATE);
>>   		rtc_time64_to_tm(tstamp, &build_date);
>>   #else
>> -		memset(&build_date, 0, sizeof(build_date)
>> +		memset(&build_date, 0, sizeof(build_date);
> You missed the feedback on previous version from Manank reporting you
> should also add a final ')' above. Should be:
>
> +		memset(&build_date, 0, sizeof(build_date));
>
> Please try to build test the next version before submitting it, thanks!

I thought I did so, but obviously wrongly. The shortcut for configuring 
the kernel without CONFIG_RTC_LIC did not work but I did not notice.

It will not happen again.

Thanks

> Paolo
>
diff mbox series

Patch

diff --git a/drivers/net/ethernet/sfc/efx_devlink.c b/drivers/net/ethernet/sfc/efx_devlink.c
index d2eb6712ba35..3eb355fd4282 100644
--- a/drivers/net/ethernet/sfc/efx_devlink.c
+++ b/drivers/net/ethernet/sfc/efx_devlink.c
@@ -323,7 +323,7 @@  static void efx_devlink_info_running_v2(struct efx_nic *efx,
 				    GET_VERSION_V2_OUT_SUCFW_BUILD_DATE);
 		rtc_time64_to_tm(tstamp, &build_date);
 #else
-		memset(&build_date, 0, sizeof(build_date)
+		memset(&build_date, 0, sizeof(build_date);
 #endif
 		build_id = MCDI_DWORD(outbuf, GET_VERSION_V2_OUT_SUCFW_CHIP_ID);