From: Pavel Machek <pavel@ucw.cz>
To: Daniel Walker <dwalker@codeaurora.org>
Cc: linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH 2/2] arm: msm: smd: fix initcall prototype compiler warning
Date: Sat, 24 Apr 2010 07:01:40 +0200 [thread overview]
Message-ID: <20100424050140.GC7561@elf.ucw.cz> (raw)
In-Reply-To: <1272046286-9429-2-git-send-email-dwalker@codeaurora.org>
On Fri 2010-04-23 11:11:26, Daniel Walker wrote:
> This fixes the following warning,
>
> arch/arm/mach-msm/smd_debug.c:240: warning: initialization from incompatible pointer type
>
> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
ACK.
> ---
> arch/arm/mach-msm/smd_debug.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-msm/smd_debug.c b/arch/arm/mach-msm/smd_debug.c
> index 0cc3ef8..3b2dd71 100644
> --- a/arch/arm/mach-msm/smd_debug.c
> +++ b/arch/arm/mach-msm/smd_debug.c
> @@ -221,13 +221,13 @@ static void debug_create(const char *name, mode_t mode,
> debugfs_create_file(name, mode, dent, fill, &debug_ops);
> }
>
> -static void smd_debugfs_init(void)
> +static int smd_debugfs_init(void)
> {
> struct dentry *dent;
>
> dent = debugfs_create_dir("smd", 0);
> if (IS_ERR(dent))
> - return;
> + return 1;
>
> debug_create("ch", 0444, dent, debug_read_ch);
> debug_create("stat", 0444, dent, debug_read_stat);
> @@ -235,6 +235,8 @@ static void smd_debugfs_init(void)
> debug_create("version", 0444, dent, debug_read_version);
> debug_create("tbl", 0444, dent, debug_read_alloc_tbl);
> debug_create("build", 0444, dent, debug_read_build_id);
> +
> + return 0;
> }
>
> late_initcall(smd_debugfs_init);
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2010-04-24 5:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 18:11 [PATCH 1/2] arm: msm: trout: fix build failure without UART Daniel Walker
2010-04-23 18:11 ` [PATCH 2/2] arm: msm: smd: fix initcall prototype compiler warning Daniel Walker
2010-04-24 5:01 ` Pavel Machek [this message]
2010-04-24 4:59 ` [PATCH 1/2] arm: msm: trout: fix build failure without UART Pavel Machek
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=20100424050140.GC7561@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=dwalker@codeaurora.org \
--cc=linux-arm-msm@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 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.