[PATCH] test: cmd: mbr: Fix Smatch static checker warning

2024-02-02 Thread Alexander Gendin
This patch fixes Smatch static checker warning: test/cmd/mbr.c:243 mbr_test_run() warn: sizeof(NUMBER)? Reported-by: Dan Carpenter Signed-off-by: Alexander Gendin --- test/cmd/mbr.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/cmd/mbr.c b/test

[PATCH] drivers: misc: Kconfig: Fix SPL_FS_LOADER prompt

2023-11-20 Thread Alexander Gendin
Both FS_LOADER and SPL_FS_LOADER have the same menu prompt. To avoid confusion, make prompt for SPL_FS_LOADER different. Signed-off-by: Alexander Gendin --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index

Re: [tom.r...@gmail.com: Fwd: New Defects reported by Coverity Scan for Das U-Boot]

2023-11-07 Thread Alexander Gendin
On Mon, Nov 06, 2023 at 03:27:52PM -0500, Tom Rini wrote: > Hey all, > > Here's the latest report. I _think_ I passed the right options to > get_maintainer.pl such that it would only look far enough back in git to > find the likely authors (along with listed maintainers of the files). > >

[PATCH] test: cmd: mbr: Remove unreachable code

2023-11-07 Thread Alexander Gendin
Fix Coverity (CID 467404): Control flow issues (DEADCODE). Fix code indentation. Reported-by: Coverity (CID 467404) Signed-off-by: Alexander Gendin --- test/cmd/mbr.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test/cmd/mbr.c b/test/cmd/mbr.c index

[PATCH v2] cmd: mbr: Allow 4 MBR partitions without need for extended

2023-10-08 Thread Alexander Gendin
h(struct unit_test_state *uts) found = 0; blk_foreach_probe(BLKF_REMOVABLE, dev) found |= 1 << dectoul(>name[3], NULL); - ut_asserteq(3, found); - ut_asserteq(2, blk_count_devices(BLKF_REMOVABLE)); + ut_asserteq(0x43, found); +

[PATCH] cmd: mbr: Allow 4 MBR partitions without need for extended

2023-10-06 Thread Alexander Gendin
Current code allows up to 3 MBR partitions without extended one. If more than 3 partitions are required, then extended partition(s) must be used. This commit allows up to 4 primary MBR partitions without the need for extended partition. Add mbr test unit. In order to use the test, mmc1.img file