staging: tidspbridge: fix build error for missing variable
PATCH 1/1 staging: tidspbridge: fix build error for missing variable
Commit:
staging: tidspbridge: gen: simplify and clean up
There is recently added hex_to_bin() kernel's method which we could use instead of custom long function.
Introduced usage of hex_to_bin without defining the temp variable.
this causes the build error:drivers/staging/tidspbridge/gen/uuidutil.c: In function 'uuid_hex_to_bin':drivers/staging/tidspbridge/gen/uuidutil.c:63: error: 'value' undeclared (first use in this function) drivers/staging/tidspbridge/gen/uuidutil.c:63: error: (Each undeclared identifier is reported only once drivers/staging/tidspbridge/gen/uuidutil.c:63: error: for each function it appears in.)
introduce variable value to fix the error.
--- drivers/staging/tidspbridge/gen/uuidutil.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/tidspbridge/gen/uuidutil.c +1 -0
@@ -58,6 +58,7 @@ static s32 uuid_hex_to_bin(char *buf, s32 len) {s32 i;s32 result =0 ; +int value;for (i =0 ; i < len; i++) { value =hex_to_bin (*buf++);
Signature · 1 line
1.6.3.3
Menon, Nishanth had written, on 07/12/2010 05:56 PM, the following:
Quoted 24 lines
Commit:
staging: tidspbridge: gen: simplify and clean up
There is recently addedhex_to_bin()kernel's method which we could use instead of custom long function.Introduced usage of
hex_to_binwithout defining the temp variable.
this causes the build error:drivers/staging/tidspbridge/gen/uuidutil.c: In function 'uuid_hex_to_bin':drivers/staging/tidspbridge/gen/uuidutil.c:63: error: 'value' undeclared (first use in this function)drivers/staging/tidspbridge/gen/uuidutil.c:63: error: (Each undeclared identifier is reported only oncedrivers/staging/tidspbridge/gen/uuidutil.c:63: error: for each function it appears in.)introduce variable value to fix the error.
Signed-off-by Nishanth Menon <[email protected]>--- drivers/staging/tidspbridge/gen/uuidutil.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/staging/tidspbridge/gen/uuidutil.c +0
-0
drivers/staging/tidspbridge/gen/uuidutil.c static s32 uuid_hex_to_bin(char *buf, s32 len) · line 64
Quoted 7 lines
drivers/staging/tidspbridge/gen/uuidutil.c +1
-0@@ -58,6 +58,7 @@ static s32 uuid_hex_to_bin(char *buf, s32 len) {s32 i;s32 result =0 ; +int value;for (i =0 ; i < len; i++) { value =hex_to_bin (*buf++);
arrgh.. just saw https://patchwork.kernel.org/patch/111141/ - please consider the same and drop this patch. apologies on the noise.
Signature · 2 lines
Regards, Nishanth Menon