Skip to contentSkip to conversation

Staging: comedi: quatech_daqp_cs.c: fixed a warning issue

PATCH In review Amit Ghadge 2 participants 8 messages May 16, 2016 – Jun 18, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: comedi: quatech_daqp_cs.c: fixed a warning issue

Fixed a warning issue to use 'unsigned int'.

---
 drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/quatech_daqp_cs.c +1 -1
index e9e4313..802f51e 100644
@@ -643,7 +643,7 @@ static int daqp_ao_insn_write(struct comedi_device *dev,
 	outb(0, dev->iobase + DAQP_AUX_REG);
 
 	for (i = 0; i > insn->n; i++) {
-		unsigned val = data[i];
+		unsigned int val = data[i];
 		int ret;
 
 		/* D/A transfer rate is about 8ms */
Signature · 1 line
2.5.5
maintainer
#1 lore raw
Quoted 2 lines · Amit Ghadge

Fixed a warning issue to use 'unsigned int'.

build warning? I don't see that anywhere in the build output.

Please be specific.

#2 lore raw

I check with "./scripts/checkpatch.pl --file --terse drivers/staging/comedi/drivers/quatech_daqp_cs.c" and show the warning message,

"drivers/staging/comedi/drivers/quatech_daqp_cs.c:646: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'"

This patch reduced the warning message.

Quoted 7 lines · Greg KH
Quoted 2 lines · Amit Ghadge

Fixed a warning issue to use 'unsigned int'.

build warning? I don't see that anywhere in the build output.

Please be specific.

maintainer
#3 lore raw

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top

Quoted 5 lines · Amit Ghadge

I check with "./scripts/checkpatch.pl --file --terse drivers/staging/comedi/drivers/quatech_daqp_cs.c" and show the warning message,

"drivers/staging/comedi/drivers/quatech_daqp_cs.c:646: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'"

This patch reduced the warning message.

Why didn't you put that information in the changelog area?

Please do so.

greg k-h

#4 lore raw

Hello Greg KH,

I make patch same like other, I'm new and I nerver see changelog in other patches.

Where to add changelog? I followed you are tutorial.

Thanks,
Amit Ghadge

Quoted 18 lines · Greg KH

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top

Quoted 5 lines · Amit Ghadge

I check with "./scripts/checkpatch.pl --file --terse drivers/staging/comedi/drivers/quatech_daqp_cs.c" and show the warning message,

drivers/staging/comedi/drivers/quatech_daqp_cs.c:646: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

This patch reduced the warning message.

Why didn't you put that information in the changelog area?

Please do so.

greg k-h

maintainer
#5 lore raw

A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top

Quoted 5 lines · Amit Ghadge

Hello Greg KH,

I make patch same like other, I'm new and I nerver see changelog in other patches.

Where to add changelog? I followed you are tutorial.

It's the area in the email before the patch, it ends up in the changelog when the patch is committed to the kernel tree. You wrote something this time, but it was vague and didn't make sense. Please fix that up and resend.

greg k-h

#6 lore raw
Quoted 11 lines · Greg KH

A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top

Thanks for this valuable information.

Quoted 12 lines · Amit Ghadge
Quoted 5 lines

Hello Greg KH,

I make patch same like other, I'm new and I nerver see changelog in other patches.

Where to add changelog? I followed you are tutorial.

It's the area in the email before the patch, it ends up in the changelog when the patch is committed to the kernel tree. You wrote something this time, but it was vague and didn't make sense. Please fix that up and resend.

I resend this patch with patch description.

Quoted 2 lines

greg k-h