lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070925221333.bb722dc4.randy.dunlap@oracle.com>
Date:	Tue, 25 Sep 2007 22:13:33 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	akepner@....com
Cc:	Grant Grundler <grundler@...isc-linux.org>,
	Jesse Barnes <jbarnes@...tuousgeek.org>,
	Jes Sorensen <jes@....com>, David Miller <davem@...emloft.net>,
	Roland Dreier <rdreier@...co.com>,
	linux-kernel@...r.kernel.org, jejb <james.bottomley@...eleye.com>
Subject: Re: [PATCH 1/4] dma: add dma_flags_set_dmaflush() to dma interface

On Tue, 25 Sep 2007 17:00:57 -0700 akepner@....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@....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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ