Hi Kuninori,

[auto build test WARNING on asoc/for-next]
[also build test WARNING on v4.6-rc3 next-20160413]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:    
https://github.com/0day-ci/linux/commits/Kuninori-Morimoto/ASoC-add-graph-base-connection-on-simple-card/20160414-135303
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 
for-next
config: x86_64-randconfig-x013-201615 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   sound/soc/soc-core.c: In function 'of_parse_snd_soc_connection_with_args':
>> sound/soc/soc-core.c:3848:35: warning: passing argument 1 of 
>> 'of_parse_phandle_with_args' discards 'const' qualifier from pointer target 
>> type [-Wdiscarded-qualifiers]
     ret = of_parse_phandle_with_args(np, "sound-dai",
                                      ^
   In file included from sound/soc/soc-core.c:36:0:
   include/linux/of.h:588:19: note: expected 'struct device_node *' but 
argument is of type 'const struct device_node *'
    static inline int of_parse_phandle_with_args(struct device_node *np,
                      ^

vim +3848 sound/soc/soc-core.c

  3832                          *dai_name = pos->dai_drv[id].name;
  3833                          if (!*dai_name)
  3834                                  *dai_name = pos->name;
  3835                  }
  3836  
  3837                  break;
  3838          }
  3839          mutex_unlock(&client_mutex);
  3840          return ret;
  3841  }
  3842  
  3843  int of_parse_snd_soc_connection_with_args(const struct device_node *np,
  3844                                            struct of_phandle_args 
*out_args)
  3845  {
  3846          int ret;
  3847  
> 3848          ret = of_parse_phandle_with_args(np, "sound-dai",
  3849                                           "#sound-dai-cells", 0, 
out_args);
  3850          if (ret) {
  3851                  struct device_node *p_node = NULL;
  3852                  struct device_node *ep_node = NULL;
  3853                  struct of_endpoint ep;
  3854  
  3855                  /* try graph base parse */
  3856                  p_node = of_graph_get_remote_port_parent(np);

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

Attachment: .config.gz
Description: Binary data

Reply via email to