public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: akepner@sgi.com
Cc: Grant Grundler <grundler@parisc-linux.org>,
	Jesse Barnes <jbarnes@virtuousgeek.org>,
	Jes Sorensen <jes@sgi.com>, David Miller <davem@davemloft.net>,
	Roland Dreier <rdreier@cisco.com>,
	linux-kernel@vger.kernel.org, jejb <james.bottomley@steeleye.com>
Subject: Re: [PATCH 1/4] dma: add dma_flags_set_dmaflush() to dma interface
Date: Tue, 25 Sep 2007 22:13:33 -0700	[thread overview]
Message-ID: <20070925221333.bb722dc4.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20070926000057.GL30013@sgi.com>

On Tue, 25 Sep 2007 17:00:57 -0700 akepner@sgi.com wrote:

[adding James Bottomley to cc: since I think he's interested in
all of these patches]


> Introduce the dma_flags_set_dmaflush() interface and give it
> a default no-op implementation.
> 
> Signed-off-by: Arthur Kepner <akepner@sgi.com>
> -- 
> 
>  dma-mapping.h |    7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
> index 2dc21cb..a0f27b9 100644
> --- a/include/linux/dma-mapping.h
> +++ b/include/linux/dma-mapping.h
> @@ -99,4 +99,11 @@ static inline void dmam_release_declared_memory(struct device *dev)
>  }
>  #endif /* ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY */
>  
> +#ifndef ARCH_CAN_REORDER_DMA
> +static inline int
> +dma_flags_set_dmaflush(int dir) {
> +	return (dir);
> +}
> +#endif /* ARCH_CAN_REORDER_DMA */
> +
>  #endif


1.  Function signature should be on one line if possible (and it is).
Aw crud, I looked at dma-mapping.h and it uses this format sometimes.
Well, it's undesirable, so please don't propagate it.

2.  No parens on return: it's not a function.

static inline int dma_flags_set_dmaflush(int dir)
{
	return dir;
}


Similar comments for patch 2/4: sn-ia64.

---
~Randy
Phaedrus says that Quality is about caring.

  reply	other threads:[~2007-09-26  5:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26  0:00 [PATCH 1/4] dma: add dma_flags_set_dmaflush() to dma interface akepner
2007-09-26  5:13 ` Randy Dunlap [this message]
2007-09-28  0:20   ` akepner

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=20070925221333.bb722dc4.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=akepner@sgi.com \
    --cc=davem@davemloft.net \
    --cc=grundler@parisc-linux.org \
    --cc=james.bottomley@steeleye.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=jes@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdreier@cisco.com \
    /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