LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: "Mike Frysinger" <vapier.adi@gmail.com>
Cc: "John Linville" <linville@tuxdriver.com>,
"Mike Frysinger" <vapier@gentoo.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ssb: Fix DMA-API compilation for non-PCI systems
Date: Thu, 6 Nov 2008 22:23:09 +0100 [thread overview]
Message-ID: <200811062223.09400.mb@bu3sch.de> (raw)
In-Reply-To: <8bd0f97a0811061316u6b9a330dy279cb7dca679ab73@mail.gmail.com>
On Thursday 06 November 2008 22:16:00 Mike Frysinger wrote:
> On Thu, Nov 6, 2008 at 15:49, Michael Buesch wrote:
> > --- wireless-testing.orig/include/linux/ssb/ssb.h 2008-08-01 17:26:05.000000000 +0200
> > +++ wireless-testing/include/linux/ssb/ssb.h 2008-11-06 21:45:37.000000000 +0100
> > @@ -427,12 +427,16 @@ static inline int ssb_dma_mapping_error(
> > {
> > switch (dev->bus->bustype) {
> > case SSB_BUSTYPE_PCI:
> > +#ifdef CONFIG_SSB_PCIHOST
> > return pci_dma_mapping_error(dev->bus->host_pci, addr);
> > +#endif
> > + break;
> > case SSB_BUSTYPE_SSB:
> > return dma_mapping_error(dev->dev, addr);
> > default:
> > - __ssb_dma_not_implemented(dev);
> > + break;
> > }
>
> all these functions now read:
> default: break;
> seems kind of pointless ... why not just drop that case completely
Because the compiler complains "not handled all cases...".
And yes, we do want to trigger __ssb_dma_not_implemented() for
these cases.
--
Greetings Michael.
next prev parent reply other threads:[~2008-11-06 21:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-06 20:49 [PATCH] ssb: Fix DMA-API compilation for non-PCI systems Michael Buesch
2008-11-06 21:16 ` Mike Frysinger
2008-11-06 21:23 ` Michael Buesch [this message]
2008-11-12 0:26 ` Andrew Morton
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=200811062223.09400.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
--cc=vapier.adi@gmail.com \
--cc=vapier@gentoo.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;
as well as URLs for NNTP newsgroup(s).