OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Use standard C string APIs in FDT helper
@ 2020-07-23  1:54 Abner Chang
  2020-07-23  1:54 ` [PATCH 1/3] " Abner Chang
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Abner Chang @ 2020-07-23  1:54 UTC (permalink / raw)
  To: opensbi

Use strncmp instead of using sbi_strcmp directly in fdthelp.c.
- This keeps the consistency with lidfdt implementation and utilizing
  libfdt_evn.h for the different build environment even fdlhelp.c is not
  part of standard fdt library.
- In libfdt_evn.h, a macro overrides strncmp with sbi_strncmp.
- For edk2 firmware solution, similar macro is used to repalce strncmp with
  EDK2 string API.
- Use strncmp instead of strcmp, which is much safer.

Abner Chang (3):
  Use standard C string APIs in FDT helper
  Use standard C string APIs in FDT helper
  Use standard C string APIs in FDT helper

 include/sbi/sbi_string.h      | 2 +-
 lib/sbi/sbi_string.c          | 4 ++--
 lib/utils/fdt/fdt_helper.c    | 2 +-
 lib/utils/libfdt/libfdt_env.h | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.25.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-07-25  9:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-23  1:54 [PATCH 0/3] Use standard C string APIs in FDT helper Abner Chang
2020-07-23  1:54 ` [PATCH 1/3] " Abner Chang
2020-07-24  4:37   ` Anup Patel
2020-07-24  5:38     ` Chang, Abner
2020-07-25  5:21       ` Atish Patra
2020-07-25  5:22         ` Atish Patra
2020-07-25  9:20         ` Chang, Abner
2020-07-23  1:54 ` [PATCH 2/3] " Abner Chang
2020-07-24  4:38   ` Anup Patel
2020-07-23  1:54 ` [PATCH 3/3] " Abner Chang
2020-07-24  4:40   ` Anup Patel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox