From: Marin Mitov <mitov@issp.bas.bg>
To: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org
Subject: DECLARE_PCI_UNMAP_{ADDR,LEN} question
Date: Sun, 25 May 2008 07:48:38 +0300 [thread overview]
Message-ID: <200805250748.38163.mitov@issp.bas.bg> (raw)
Hi all,
In Documentation/DMA-mapping.txt is written:
NOTE: DO NOT put a semicolon at the end of the
DECLARE_PCI_UNMAP_{ADDR,LEN}() macro.
While the output of
grep DECLARE_PCI_UNMAP_ drivers/net/*
contains lines with and without semicolon:
drivers/net/acenic.h: DECLARE_PCI_UNMAP_ADDR(mapping)
drivers/net/acenic.h: DECLARE_PCI_UNMAP_ADDR(mapping)
drivers/net/acenic.h: DECLARE_PCI_UNMAP_LEN(maplen)
drivers/net/bnx2.h: DECLARE_PCI_UNMAP_ADDR(mapping)
drivers/net/bnx2.h: DECLARE_PCI_UNMAP_ADDR(mapping)
drivers/net/bnx2x.h: DECLARE_PCI_UNMAP_ADDR(mapping)
drivers/net/qla3xxx.h: DECLARE_PCI_UNMAP_ADDR(mapaddr);
drivers/net/qla3xxx.h: DECLARE_PCI_UNMAP_LEN(maplen);
drivers/net/qla3xxx.h: DECLARE_PCI_UNMAP_ADDR(mapaddr);
drivers/net/qla3xxx.h: DECLARE_PCI_UNMAP_LEN(maplen);
drivers/net/skge.h: DECLARE_PCI_UNMAP_ADDR(mapaddr);
drivers/net/skge.h: DECLARE_PCI_UNMAP_LEN(maplen);
drivers/net/sky2.h: DECLARE_PCI_UNMAP_ADDR(mapaddr);
drivers/net/sky2.h: DECLARE_PCI_UNMAP_ADDR(maplen);
drivers/net/sky2.h: DECLARE_PCI_UNMAP_ADDR(data_size);
drivers/net/tg3.h: DECLARE_PCI_UNMAP_ADDR(mapping)
drivers/net/tg3.h: DECLARE_PCI_UNMAP_ADDR(mapping)
My question is:
Why one should NOT put semicolon at the end of the macro?
If it is _really_ important, should it be removed/patched?
Thank you for your answers.
Regards
Marin Mitov
reply other threads:[~2008-05-25 4:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200805250748.38163.mitov@issp.bas.bg \
--to=mitov@issp.bas.bg \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®