-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Edgecore][device][platform] Fixed Semgrep check error 1.
Signed-off-by: michael_shih <[email protected]>
- Loading branch information
1 parent
cb06ad5
commit 4a47dd0
Showing
3 changed files
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,8 @@ | |
#include <linux/delay.h> | ||
#include <linux/pci.h> | ||
#include <linux/time64.h> | ||
#define __STDC_WANT_LIB_EXT1__ 1 | ||
#include <linux/string.h> | ||
|
||
/*********************************************** | ||
* variable define | ||
|
@@ -1079,7 +1081,11 @@ static char *show_date_time(void) | |
struct timespec64 tv; | ||
struct tm tm_val; | ||
|
||
#ifdef __STDC_LIB_EXT1__ | ||
memset_s(dmamem, DATETIME_LEN, 0, DATETIME_LEN); | ||
#else | ||
memset(g_datetime, 0, DATETIME_LEN); | ||
#endif | ||
|
||
ktime_get_real_ts64(&tv); | ||
time64_to_tm(tv.tv_sec, 0, &tm_val); | ||
|
@@ -2511,3 +2517,4 @@ module_exit(as9736_64d_pcie_fpga_exit); | |
MODULE_AUTHOR("Michael Shih <[email protected]>"); | ||
MODULE_DESCRIPTION("AS9734-64D READ EEPROM From FPGA via PCIE"); | ||
MODULE_LICENSE("GPL"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters