Skip to contentSkip to conversation

bcm2835-audio: Fix checkpatch errors

PATCH In review Man Choy 2 participants 5 messages Feb 11, 2017 – Feb 14, 2017

Subsystems (3)
lore
Share & tools
lore

Man Choy

author
#0 lore raw

PATCH 1/1 bcm2835-audio: Fix checkpatch errors

Fix following errors:

ERROR: do not initialise statics to NULL
+static struct snd_card *g_card = NULL;

ERROR: do not initialise statics to NULL
+static struct bcm2835_chip *g_chip = NULL;

---
 drivers/staging/bcm2835-audio/bcm2835.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/bcm2835-audio/bcm2835.c +2 -2
index a84d74d..265fe55 100644
@@ -28,8 +28,8 @@
  * to debug if we run into issues
  */
 
-static struct snd_card *g_card = NULL;
-static struct bcm2835_chip *g_chip = NULL;
+static struct snd_card *g_card;
+static struct bcm2835_chip *g_chip;
 
 static int snd_bcm2835_free(struct bcm2835_chip *chip)
 {
Signature · 1 line
2.7.4
#1 lore raw
Quoted 18 lines · Man Choy

Fix following errors:

ERROR: do not initialise statics to NULL
+static struct snd_card *g_card = NULL;

ERROR: do not initialise statics to NULL
+static struct bcm2835_chip *g_chip = NULL;

---
 drivers/staging/bcm2835-audio/bcm2835.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/bcm2835-audio/bcm2835.c +0 -0
index a84d74d..265fe55 100644

drivers/staging/bcm2835-audio/bcm2835.c line 35

Quoted 10 lines
drivers/staging/bcm2835-audio/bcm2835.c +2 -2
@@ -28,8 +28,8 @@
  * to debug if we run into issues
  */
 
-static struct snd_card *g_card = NULL;
-static struct bcm2835_chip *g_chip = NULL;
+static struct snd_card *g_card;
+static struct bcm2835_chip *g_chip;
 
 static int snd_bcm2835_free(struct bcm2835_chip *chip)
 {

Someone sent this same fix in before you did, a few days ago. Be sure to always use the most up-to-date tree.

sorry,

greg k-h

author
#2 lore raw
Quoted 33 lines · Greg Kroah-Hartman
Quoted 18 lines · Man Choy

Fix following errors:

ERROR: do not initialise statics to NULL
+static struct snd_card *g_card = NULL;

ERROR: do not initialise statics to NULL
+static struct bcm2835_chip *g_chip = NULL;

---
 drivers/staging/bcm2835-audio/bcm2835.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/bcm2835-audio/bcm2835.c +0 -0
index a84d74d..265fe55 100644

drivers/staging/bcm2835-audio/bcm2835.c line 35

Quoted 10 lines
drivers/staging/bcm2835-audio/bcm2835.c +2 -2
@@ -28,8 +28,8 @@
  * to debug if we run into issues
  */
 
-static struct snd_card *g_card = NULL;
-static struct bcm2835_chip *g_chip = NULL;
+static struct snd_card *g_card;
+static struct bcm2835_chip *g_chip;
 
 static int snd_bcm2835_free(struct bcm2835_chip *chip)
 {

Someone sent this same fix in before you did, a few days ago. Be sure to always use the most up-to-date tree.

Quoted 3 lines

sorry,

greg k-h

Please ignore previous email. It contains HTML.

Noted and thanks Greg.

A quick question, I just updated my linux-next tree last night, checkout tag "next-20170210" and working on the cleanup. How do I double check my current working file already been updated by someone else to avoid the duplicate work? As of now, the latest linux-next tree tag is still "next-20170210"

I am on eudyptula challenge and this is my first attempt to send kernel patch, sorry about the silly question ;)

MC

#3 lore raw
Quoted 5 lines · Man Choy

A quick question, I just updated my linux-next tree last night, checkout tag "next-20170210" and working on the cleanup. How do I double check my current working file already been updated by someone else to avoid the duplicate work? As of now, the latest linux-next tree tag is still "next-20170210"

linux-next is usually a day or so behind my tree, due to the time differences when it is created and why I usually do work.

You can work off of my staging-next branch in my staging.git tree on git.kernel.org, that is the most up-to-date branch that ends up in linux-next. I also use staging-testing, to test things, but I would not recommend that for you as it can be rebased and would be a pain to work against.

It's ok that conflicts happen, that's how kernel development works, sometimes people send in the same change minutes from each other, so I have to take the one that was sent first. It's ok, just move on and work on something else if you really want to.

Quoted 2 lines

I am on eudyptula challenge and this is my first attempt to send kernel patch, sorry about the silly question ;)

It's not silly, it comes up all the time.

good luck!

greg k-h

author
#4 lore raw
Quoted 21 lines · Greg Kroah-Hartman
Quoted 5 lines · Man Choy

A quick question, I just updated my linux-next tree last night, checkout tag "next-20170210" and working on the cleanup. How do I double check my current working file already been updated by someone else to avoid the duplicate work? As of now, the latest linux-next tree tag is still "next-20170210"

linux-next is usually a day or so behind my tree, due to the time differences when it is created and why I usually do work.

You can work off of my staging-next branch in my staging.git tree on git.kernel.org, that is the most up-to-date branch that ends up in linux-next. I also use staging-testing, to test things, but I would not recommend that for you as it can be rebased and would be a pain to work against.

It's ok that conflicts happen, that's how kernel development works, sometimes people send in the same change minutes from each other, so I have to take the one that was sent first. It's ok, just move on and work on something else if you really want to.

Quoted 8 lines
Quoted 2 lines

I am on eudyptula challenge and this is my first attempt to send kernel patch, sorry about the silly question ;)

It's not silly, it comes up all the time.

good luck!

greg k-h

Thanks for the kind advice.

I will look up your staging-next branch and do something about it.

Talk to you soon.

- MC