* Re: [PATCH] iommu: Add void declarations in zero-arg functions.
[not found] ` <1404392581-14507-1-git-send-email-fempsci-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-07-04 11:23 ` Joerg Roedel
0 siblings, 0 replies; only message in thread
From: Joerg Roedel @ 2014-07-04 11:23 UTC (permalink / raw)
To: Chi Pham; +Cc: Varun Sethi, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
On Thu, Jul 03, 2014 at 03:03:01PM +0200, Chi Pham wrote:
> Added explicit void declarations to zero-argument function headers.
> The following coccinelle script was used:
> @addvoid@
> identifier f;
> @@
>
> f(
> + void
> ) { ... }
>
> Signed-off-by: Chi Pham <fempsci-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>a
Applied, thanks.
> ---
> drivers/iommu/fsl_pamu.c | 2 +-
> drivers/iommu/fsl_pamu_domain.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c
> index b99dd88..5c9b424 100644
> --- a/drivers/iommu/fsl_pamu.c
> +++ b/drivers/iommu/fsl_pamu.c
> @@ -92,7 +92,7 @@ struct gen_pool *spaace_pool;
> * subwindow count per liodn.
> *
> */
> -u32 pamu_get_max_subwin_cnt()
> +u32 pamu_get_max_subwin_cnt(void)
> {
> return max_subwindow_count;
> }
> diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c
> index 93072ba..0ead81c 100644
> --- a/drivers/iommu/fsl_pamu_domain.c
> +++ b/drivers/iommu/fsl_pamu_domain.c
> @@ -1157,7 +1157,7 @@ static struct iommu_ops fsl_pamu_ops = {
> .remove_device = fsl_pamu_remove_device,
> };
>
> -int pamu_domain_init()
> +int pamu_domain_init(void)
> {
> int ret = 0;
>
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-04 11:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1404392581-14507-1-git-send-email-fempsci@gmail.com>
[not found] ` <1404392581-14507-1-git-send-email-fempsci-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-07-04 11:23 ` [PATCH] iommu: Add void declarations in zero-arg functions Joerg Roedel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.