[Sound-open-firmware] FW: [sof-driver-review:topic/sof-upstream 97/98] include/uapi/sound/sof-ipc.h:707:11: error: expected identifier or '(' before numeric constant

Lin, Mengdong mengdong.lin at intel.com
Mon Jun 4 10:31:20 CEST 2018



-----Original Message-----
From: lkp 
Sent: Monday, June 4, 2018 12:37 PM
To: Liam Girdwood <liam.r.girdwood at linux.intel.com>
Cc: kbuild-all at 01.org; Wang, Jia W <jia.w.wang at intel.com>; Zhang, Keqiao <keqiao.zhang at intel.com>; Lin, Mengdong <mengdong.lin at intel.com>; Li, Jocelyn <jocelyn.li at intel.com>
Subject: [sof-driver-review:topic/sof-upstream 97/98] include/uapi/sound/sof-ipc.h:707:11: error: expected identifier or '(' before numeric constant

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc.git topic/sof-upstream
head:   297c56845645fc3b2a94862be301d6e33e81d9e8
commit: d20c0648bb2590f6450f4872aea0ac3ca21f80e5 [97/98] ASoC: SOF: Dont depend on SG buffers for generic SOF core
config: mips-txx9 (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d20c0648bb2590f6450f4872aea0ac3ca21f80e5
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

>> include/uapi/sound/sof-ipc.h:707:11: error: expected identifier or '(' before numeric constant
     uint32_t mips;  /* worst case instruction count per period */
              ^
   sound/soc/sof/core.c: In function 'snd_sof_create_page_table':
   sound/soc/sof/core.c:447:10: error: implicit declaration of function 'snd_sgbuf_aligned_pages'; did you mean 'snd_sgbuf_get_ptr'? [-Werror=implicit-function-declaration]
     pages = snd_sgbuf_aligned_pages(size);
             ^~~~~~~~~~~~~~~~~~~~~~~
             snd_sgbuf_get_ptr
   cc1: some warnings being treated as errors
--
>> include/uapi/sound/sof-ipc.h:707:11: error: expected identifier or '(' before numeric constant
     uint32_t mips;  /* worst case instruction count per period */
              ^
--
>> include/uapi/sound/sof-ipc.h:707:11: error: expected identifier or '(' before numeric constant
     uint32_t mips;  /* worst case instruction count per period */
              ^
   In file included from include/linux/compiler_types.h:58:0,
                    from <command-line>:0:
>> sound/soc/sof/topology.c:355:37: error: expected identifier before numeric constant
      offsetof(struct sof_ipc_pipe_new, mips), 0},
                                        ^
   include/linux/compiler-gcc.h:170:24: note: in definition of macro '__compiler_offsetof'
     __builtin_offsetof(a, b)
                           ^
   sound/soc/sof/topology.c:355:3: note: in expansion of macro 'offsetof'
      offsetof(struct sof_ipc_pipe_new, mips), 0},
      ^~~~~~~~
   sound/soc/sof/topology.c: In function 'sof_widget_load_pipeline':
   sound/soc/sof/topology.c:1040:12: error: expected identifier before numeric constant
      pipeline.mips, pipeline.core, pipeline.frames_per_sched);
               ^
   sound/soc/sof/topology.c:1038:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(sdev->dev, "pipeline %s: deadline %d pri %d mips %d core %d frames %d\n",
     ^~~~~~~
--
>> include/uapi/sound/sof-ipc.h:707:11: error: expected identifier or '(' before numeric constant
     uint32_t mips;  /* worst case instruction count per period */
              ^
   sound/soc//sof/core.c: In function 'snd_sof_create_page_table':
   sound/soc//sof/core.c:447:10: error: implicit declaration of function 'snd_sgbuf_aligned_pages'; did you mean 'snd_sgbuf_get_ptr'? [-Werror=implicit-function-declaration]
     pages = snd_sgbuf_aligned_pages(size);
             ^~~~~~~~~~~~~~~~~~~~~~~
             snd_sgbuf_get_ptr
   cc1: some warnings being treated as errors
--
>> include/uapi/sound/sof-ipc.h:707:11: error: expected identifier or '(' before numeric constant
     uint32_t mips;  /* worst case instruction count per period */
              ^
   In file included from include/linux/compiler_types.h:58:0,
                    from <command-line>:0:
   sound/soc//sof/topology.c:355:37: error: expected identifier before numeric constant
      offsetof(struct sof_ipc_pipe_new, mips), 0},
                                        ^
   include/linux/compiler-gcc.h:170:24: note: in definition of macro '__compiler_offsetof'
     __builtin_offsetof(a, b)
                           ^
   sound/soc//sof/topology.c:355:3: note: in expansion of macro 'offsetof'
      offsetof(struct sof_ipc_pipe_new, mips), 0},
      ^~~~~~~~
   sound/soc//sof/topology.c: In function 'sof_widget_load_pipeline':
   sound/soc//sof/topology.c:1040:12: error: expected identifier before numeric constant
      pipeline.mips, pipeline.core, pipeline.frames_per_sched);
               ^
   sound/soc//sof/topology.c:1038:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(sdev->dev, "pipeline %s: deadline %d pri %d mips %d core %d frames %d\n",
     ^~~~~~~

vim +707 include/uapi/sound/sof-ipc.h

11b056e2 Liam Girdwood 2018-01-08  693  
11b056e2 Liam Girdwood 2018-01-08  694  /*
11b056e2 Liam Girdwood 2018-01-08  695   * Pipeline
11b056e2 Liam Girdwood 2018-01-08  696   */
11b056e2 Liam Girdwood 2018-01-08  697  
11b056e2 Liam Girdwood 2018-01-08  698  /* new pipeline - SOF_IPC_TPLG_PIPE_NEW */
11b056e2 Liam Girdwood 2018-01-08  699  struct sof_ipc_pipe_new {
11b056e2 Liam Girdwood 2018-01-08  700  	struct sof_ipc_hdr hdr;
11b056e2 Liam Girdwood 2018-01-08  701  	uint32_t comp_id;	/* component id for pipeline */
11b056e2 Liam Girdwood 2018-01-08  702  	uint32_t pipeline_id;	/* pipeline id */
11b056e2 Liam Girdwood 2018-01-08  703  	uint32_t sched_id;	/* sheduling component id */
11b056e2 Liam Girdwood 2018-01-08  704  	uint32_t core;		/* core we run on */
11b056e2 Liam Girdwood 2018-01-08  705  	uint32_t deadline;	/* execution completion deadline in us*/
11b056e2 Liam Girdwood 2018-01-08  706  	uint32_t priority;	/* priority level 0 (low) to 10 (max) */
11b056e2 Liam Girdwood 2018-01-08 @707  	uint32_t mips;		/* worst case instruction count per period */
11b056e2 Liam Girdwood 2018-01-08  708  	uint32_t frames_per_sched;/* output frames of pipeline, 0 is variable */
11b056e2 Liam Girdwood 2018-01-08  709  	uint32_t xrun_limit_usecs; /* report xruns greater than limit */
11b056e2 Liam Girdwood 2018-01-08  710  	uint32_t timer;/* non zero if timer scheduled otherwise DAI scheduled */
11b056e2 Liam Girdwood 2018-01-08  711  }  __attribute__((packed));
11b056e2 Liam Girdwood 2018-01-08  712  

:::::: The code at line 707 was first introduced by commit
:::::: 11b056e2dcccc264ac967b7b92eea3191925b702 ASoC: SOF: Add support for IPC IO between DSP and Host

:::::: TO: Liam Girdwood <liam.r.girdwood at linux.intel.com>
:::::: CC: Liam Girdwood <liam.r.girdwood at linux.intel.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


More information about the Sound-open-firmware mailing list