Re: false positive in checkpatch.pl (complex macro values)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Frysinger
Date: Friday, August 24, 2007 - 6:24 am

On 8/24/07, SL Baur <steve@xemacs.org> wrote:

the way we came across it was in code that hasnt been pushed to
mainline yet ... we run the code on our tree

however, there are plenty of cases in the tree right now ... a quick
grep picks out sound/pci/ice1712/aureon.h as the first offender

$ diff -Nu /dev/null ./sound/pci/ice1712/aureon.h | perl
./scripts/checkpatch.pl -
ERROR: Macros with complex values should be enclosed in parenthesis
#31: FILE: sound/pci/ice1712/aureon.h:28:
+#define  AUREON_DEVICE_DESC           "{Terratec,Aureon 5.1 Sky},"\

$ grep AUREON_DEVICE_DESC ./sound/pci/ice1712/aureon.h -A 5
#define  AUREON_DEVICE_DESC            "{Terratec,Aureon 5.1 Sky},"\
                                       "{Terratec,Aureon 7.1 Space},"\
                                       "{Terratec,Aureon 7.1 Universe}," \
                                        "{AudioTrak,Prodigy 7.1}," \
                                        "{AudioTrak,Prodigy 7.1 LT},"\
                                        "{AudioTrak,Prodigy 7.1 XT},"

seems like perfectly valid usage to me
-mike
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
false positive in checkpatch.pl (complex macro values), Mike Frysinger, (Fri Aug 24, 12:51 am)
Re: false positive in checkpatch.pl (complex macro values), Andy Whitcroft, (Fri Aug 24, 4:41 am)
Re: false positive in checkpatch.pl (complex macro values), Mike Frysinger, (Fri Aug 24, 6:24 am)
Re: false positive in checkpatch.pl (complex macro values), Olivier Galibert, (Fri Aug 24, 10:22 am)
Re: false positive in checkpatch.pl (complex macro values), Mike Frysinger, (Fri Aug 24, 12:10 pm)