leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
Subsystems (2)
PATCH 1/1 leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
Fix the uninitialized symbol 'ret' in the function mt6370_mc_pattern_clear to resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604 mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.
--- drivers/leds/rgb/leds-mt6370-rgb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/rgb/leds-mt6370-rgb.c +1 -1
@@ -587,7 +587,7 @@ static inline int mt6370_mc_pattern_clear(struct led_classdev *lcdev) struct mt6370_led *led = container_of(mccdev, struct mt6370_led, mc);struct mt6370_priv *priv = led->priv;struct mc_subled *subled; -int i, ret; +int i, ret =0 ;mutex_lock (&led->priv->lock);
Signature · 1 line
2.34.1
Lee Jones
maintainerQuoted 8 lines · On Sun, 06 Oct 2024, SurajSonawane2415 wrote:
Fix the uninitialized symbol 'ret' in the function
mt6370_mc_pattern_clearto resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.Signed-off-by SurajSonawane2415 <[email protected]>
Real names only. Please update your .gitconfig.
Quoted 20 lines
--- drivers/leds/rgb/leds-mt6370-rgb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/leds/rgb/leds-mt6370-rgb.c +1
-1@@ -587,7 +587,7 @@ static inline int mt6370_mc_pattern_clear(struct led_classdev *lcdev) struct mt6370_led *led = container_of(mccdev, struct mt6370_led, mc);struct mt6370_priv *priv = led->priv;struct mc_subled *subled; -int i, ret; +int i, ret =0 ;mutex_lock (&led->priv->lock);Signature · 1 line
2.34.1
Signature · 1 line
Lee Jones [李琼斯]
Quoted 28 lines · Lee Jones
Quoted 8 lines · On Sun, 06 Oct 2024, SurajSonawane2415 wrote:
Fix the uninitialized symbol 'ret' in the function
mt6370_mc_pattern_clearto resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.Signed-off-by SurajSonawane2415 <[email protected]>Real names only. Please update your .gitconfig.
Quoted 15 lines
--- drivers/leds/rgb/leds-mt6370-rgb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/leds/rgb/leds-mt6370-rgb.c +1
-1@@ -587,7 +587,7 @@ static inline int mt6370_mc_pattern_clear(struct led_classdev *lcdev) struct mt6370_led *led = container_of(mccdev, struct mt6370_led, mc);struct mt6370_priv *priv = led->priv;struct mc_subled *subled; -int i, ret; +int i, ret =0 ;
Quoted 6 lines
Quoted 5 lines
drivers/leds/rgb/leds-mt6370-rgb.c +0
-0mutex_lock (&led->priv->lock);Signature · 1 line
2.34.1
Thanks for the feedback. I'll update my .gitconfig to use my real name for future patches.
Best regards,
Suraj Sonawane
Re: (subset) [PATCH] leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
In reply to SurajSonawane2415Quoted 8 lines · On Sun, 06 Oct 2024 18:43:37 +0530, SurajSonawane2415 wrote:
Fix the uninitialized symbol 'ret' in the function
mt6370_mc_pattern_clearto resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.[...]
Applied, thanks!
[1/1] leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
commit: b5a5659aebfffbcddb81abafe042fb4044b6ff9e
--
Lee Jones [李琼斯]
Re: (subset) [PATCH] leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
Quoted 10 lines · Lee Jones
Quoted 8 lines · On Sun, 06 Oct 2024 18:43:37 +0530, SurajSonawane2415 wrote:
Fix the uninitialized symbol 'ret' in the function
mt6370_mc_pattern_clearto resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.[...]
Quoted 8 lines
Applied, thanks!
[1/1] leds: Fix uninitialized variable 'ret' in
mt6370_mc_pattern_clearcommit: b5a5659aebfffbcddb81abafe042fb4044b6ff9e--
Lee Jones [李琼斯]
Thank you! I'm glad the patch was applied. I'll ensure future patches follow the necessary guidelines.
Best regards,
Suraj Sonawane
Lee Jones
maintainerRe: (subset) [PATCH] leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
Quoted 13 lines · Suraj Sonawane
Quoted 12 lines · Lee Jones
Quoted 8 lines · On Sun, 06 Oct 2024 18:43:37 +0530, SurajSonawane2415 wrote:
Fix the uninitialized symbol 'ret' in the function
mt6370_mc_pattern_clearto resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.[...]
Applied, thanks!
Quoted 8 lines
Quoted 6 lines
[1/1] leds: Fix uninitialized variable 'ret' in
mt6370_mc_pattern_clearcommit: b5a5659aebfffbcddb81abafe042fb4044b6ff9e--
Lee Jones [李琼斯]Thank you! I'm glad the patch was applied. I'll ensure future patches follow the necessary guidelines.
Sorry, this is a tooling error. The patch was not meant to be applied.
Please resubmit it using your updated .gitconfig file.
Signature · 1 line
Lee Jones [李琼斯]
PATCH v2 1/1 leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
Fix the uninitialized symbol 'ret' in the function mt6370_mc_pattern_clear to resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604 mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.
---
V1 : https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
V2 : Updated .gitconfig to use the real name "Suraj Sonawane" as per the feedback.
drivers/leds/rgb/leds-mt6370-rgb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/rgb/leds-mt6370-rgb.c +1 -1
@@ -587,7 +587,7 @@ static inline int mt6370_mc_pattern_clear(struct led_classdev *lcdev) struct mt6370_led *led = container_of(mccdev, struct mt6370_led, mc);struct mt6370_priv *priv = led->priv;struct mc_subled *subled; -int i, ret; +int i, ret =0 ;mutex_lock (&led->priv->lock);
Signature · 1 line
2.34.1
Re: (subset) [PATCH v2] leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
Quoted 8 lines · Suraj Sonawane
Fix the uninitialized symbol 'ret' in the function
mt6370_mc_pattern_clearto resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.[...]
Applied, thanks!
[1/1] leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
commit: 6cbf5c99541ac681cf5c6155b582dfbcd879eae3
--
Lee Jones [李琼斯]
Re: (subset) [PATCH v2] leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
Quoted 10 lines · Lee Jones
Quoted 8 lines · Suraj Sonawane
Fix the uninitialized symbol 'ret' in the function
mt6370_mc_pattern_clearto resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.[...]
Quoted 8 lines
Applied, thanks!
[1/1] leds: Fix uninitialized variable 'ret' in
mt6370_mc_pattern_clearcommit: 6cbf5c99541ac681cf5c6155b582dfbcd879eae3--
Lee Jones [李琼斯]
Thanks a lot!
Re: (subset) [PATCH] leds: Fix uninitialized variable 'ret' in mt6370_mc_pattern_clear
In reply to Lee JonesQuoted 15 lines · Lee Jones
Quoted 15 lines · Lee Jones
Quoted 14 lines · On Sun, 06 Oct 2024 18:43:37 +0530, SurajSonawane2415 wrote:
Quoted 8 lines
Fix the uninitialized symbol 'ret' in the function
mt6370_mc_pattern_clearto resolve the following warning:drivers/leds/rgb/leds-mt6370-rgb.c:604mt6370_mc_pattern_clear()
error: uninitialized symbol 'ret'.
Initialize 'ret' to 0 to prevent undefined behavior from uninitialized access.[...]
Applied, thanks!
[1/1] leds: Fix uninitialized variable 'ret' in
mt6370_mc_pattern_clearcommit: b5a5659aebfffbcddb81abafe042fb4044b6ff9e
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
--
Lee Jones [李琼斯]Thank you! I'm glad the patch was applied. I'll ensure future patches follow the necessary guidelines.
Sorry, this is a tooling error. The patch was not meant to be applied.
Please resubmit it using your updated .gitconfig file.
Thank you. I have updated my .gitconfig to use my real name "Suraj Sonawane" as requested and have resubmitted the patch.
Best regards,
Suraj Sonawane