devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jianqun <xjq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
To: Jim Davis <jim.epost-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org,
	linux-next <linux-next-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-kernel
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	perex-/Fr2/VpizcU@public.gmane.org,
	tiwai-l3A5Bk7waGM@public.gmane.org,
	grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: randconfig build error with next-20140710, in sound/soc/rockchip/rockchip_i2s.c
Date: Fri, 11 Jul 2014 08:07:20 +0800	[thread overview]
Message-ID: <53BF2AB8.7050307@rock-chips.com> (raw)
In-Reply-To: <CA+r1ZhgB=BG5jsSaWBLMvRUjZ=X4gKJzv6KysyvPSOtFuUTbng-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Hi Heiko:

Is it caused by the headfile ?
#include <linux/module.h>

Adviced by the maintainers, I tried not to include the headfile one by one, then to compile
driver each time, I found that is success to compile it without module.h, of course
I just compiled driver with command "ARCH=arm".

Look up the codes, I found the functions like
	MODULE_DESCRIPTION
will be defined as
	#define MODULE_DESCRIPTION(x)	/* x */
so the code in rockchip iis driver
	"MODULE_DESCRIPTION("ROCKCHIP IIS ASoC Interface") "
will be defined as
	"ROCKCHIP IIS ASoC Interface"
that should cause the error while robot to compile.

Am I right ?

If it is, do I need to make a new patch or just reply to the mail ? or how ...


On 2014年07月10日 21:53, Jim Davis wrote:
> Building with the attached random configuration file,
> 
> sound/soc/rockchip/rockchip_i2s.c:526:20: error: expected declaration specifiers
>  or ‘...’ before string constant
>  MODULE_DESCRIPTION("ROCKCHIP IIS ASoC Interface");
>                     ^
> sound/soc/rockchip/rockchip_i2s.c:527:15: error: expected declaration specifiers
>  or ‘...’ before string constant
>  MODULE_AUTHOR("jianqun <jay.xu-TNX95d0MmH7DzftRWevZcw@public.gmane.org>");
>                ^
> sound/soc/rockchip/rockchip_i2s.c:528:16: error: expected declaration specifiers
>  or ‘...’ before string constant
>  MODULE_LICENSE("GPL v2");
>                 ^
> sound/soc/rockchip/rockchip_i2s.c:529:14: error: expected declaration specifiers
>  or ‘...’ before string constant
>  MODULE_ALIAS("platform:" DRV_NAME);
>               ^
> sound/soc/rockchip/rockchip_i2s.c:530:1: warning: data definition has no type or
>  storage class [enabled by default]
>  MODULE_DEVICE_TABLE(of, rockchip_i2s_match);
>  ^
> sound/soc/rockchip/rockchip_i2s.c:530:1: error: type defaults to ‘int’
> in declaration of ‘MODULE_DEVICE_TABLE’ [-Werror=implicit-int]
> sound/soc/rockchip/rockchip_i2s.c:530:1: warning: parameter names (without types
> ) in function declaration [enabled by default]
> cc1: some warnings being treated as errors
> make[3]: *** [sound/soc/rockchip/rockchip_i2s.o] Error 1
> 

-- 
-------------
许 剑 群 Jay
Rockchip Electronics Co.Ltd
****************************************************************************
*IMPORTANT NOTICE:*This email is from Fuzhou Rockchip Electronics Co.,
Ltd .The contents of this email and any attachments may contain
information that is privileged, confidential and/or exempt from
disclosure under applicable law and relevant NDA. If you are not the
intended recipient, you are hereby notified that any disclosure,
copying, distribution, or use of the information is STRICTLY PROHIBITED.
Please immediately contact the sender as soon as possible and destroy
the material in its entirety in any format. Thank you.
****************************************************************************

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-07-11  0:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-10 13:53 randconfig build error with next-20140710, in sound/soc/rockchip/rockchip_i2s.c Jim Davis
     [not found] ` <CA+r1ZhgB=BG5jsSaWBLMvRUjZ=X4gKJzv6KysyvPSOtFuUTbng-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-11  0:07   ` Jianqun [this message]
2014-07-11  0:13     ` Jianqun
     [not found]     ` <53BF2AB8.7050307-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2014-07-11  0:32       ` Stephen Rothwell
2014-07-11 12:42         ` Mark Brown

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=53BF2AB8.7050307@rock-chips.com \
    --to=xjq-tnx95d0mmh7dzftrwevzcw@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=jim.epost-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-next-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=perex-/Fr2/VpizcU@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org \
    --cc=tiwai-l3A5Bk7waGM@public.gmane.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).