[linux-next:master 11453/12662] sound/ac97/bus.c:112:20: error: use of undeclared identifier 'ac97_bus_type'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e2425464bc87159274879ab30f9d4fe624b9fcd2
commit: 66e82d219924f6112509f7e8f8e687fcc81a16e3 [11453/12662] ALSA: mark all struct bus_type as const
config: x86_64-buildonly-randconfig-003-20240105 (https://download.01.org/0day-ci/archive/20240105/202401051634.qQSC02IQ-lkp@xxxxxxxxx/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240105/202401051634.qQSC02IQ-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401051634.qQSC02IQ-lkp@xxxxxxxxx/

Note: the linux-next/master HEAD e2425464bc87159274879ab30f9d4fe624b9fcd2 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> sound/ac97/bus.c:112:20: error: use of undeclared identifier 'ac97_bus_type'
     112 |         codec->dev.bus = &ac97_bus_type;
         |                           ^
   sound/ac97/bus.c:191:21: error: use of undeclared identifier 'ac97_bus_type'
     191 |         drv->driver.bus = &ac97_bus_type;
         |                            ^
   2 errors generated.


vim +/ac97_bus_type +112 sound/ac97/bus.c

74426fbff66eea Robert Jarzmik 2017-09-02   99  
74426fbff66eea Robert Jarzmik 2017-09-02  100  static int ac97_codec_add(struct ac97_controller *ac97_ctrl, int idx,
74426fbff66eea Robert Jarzmik 2017-09-02  101  		   unsigned int vendor_id)
74426fbff66eea Robert Jarzmik 2017-09-02  102  {
74426fbff66eea Robert Jarzmik 2017-09-02  103  	struct ac97_codec_device *codec;
74426fbff66eea Robert Jarzmik 2017-09-02  104  	int ret;
74426fbff66eea Robert Jarzmik 2017-09-02  105  
74426fbff66eea Robert Jarzmik 2017-09-02  106  	codec = kzalloc(sizeof(*codec), GFP_KERNEL);
74426fbff66eea Robert Jarzmik 2017-09-02  107  	if (!codec)
74426fbff66eea Robert Jarzmik 2017-09-02  108  		return -ENOMEM;
74426fbff66eea Robert Jarzmik 2017-09-02  109  	ac97_ctrl->codecs[idx] = codec;
74426fbff66eea Robert Jarzmik 2017-09-02  110  	codec->vendor_id = vendor_id;
74426fbff66eea Robert Jarzmik 2017-09-02  111  	codec->dev.release = ac97_codec_release;
74426fbff66eea Robert Jarzmik 2017-09-02 @112  	codec->dev.bus = &ac97_bus_type;
74426fbff66eea Robert Jarzmik 2017-09-02  113  	codec->dev.parent = &ac97_ctrl->adap;
74426fbff66eea Robert Jarzmik 2017-09-02  114  	codec->num = idx;
74426fbff66eea Robert Jarzmik 2017-09-02  115  	codec->ac97_ctrl = ac97_ctrl;
74426fbff66eea Robert Jarzmik 2017-09-02  116  
74426fbff66eea Robert Jarzmik 2017-09-02  117  	device_initialize(&codec->dev);
74426fbff66eea Robert Jarzmik 2017-09-02  118  	dev_set_name(&codec->dev, "%s:%u", dev_name(ac97_ctrl->parent), idx);
2225a3e6af78e6 Robert Jarzmik 2018-06-22  119  	codec->dev.of_node = ac97_of_get_child_device(ac97_ctrl, idx,
2225a3e6af78e6 Robert Jarzmik 2018-06-22  120  						      vendor_id);
74426fbff66eea Robert Jarzmik 2017-09-02  121  
74426fbff66eea Robert Jarzmik 2017-09-02  122  	ret = device_add(&codec->dev);
607975b30db41a Ding Xiang     2019-07-23  123  	if (ret) {
74426fbff66eea Robert Jarzmik 2017-09-02  124  		put_device(&codec->dev);
74426fbff66eea Robert Jarzmik 2017-09-02  125  		return ret;
74426fbff66eea Robert Jarzmik 2017-09-02  126  	}
74426fbff66eea Robert Jarzmik 2017-09-02  127  
607975b30db41a Ding Xiang     2019-07-23  128  	return 0;
607975b30db41a Ding Xiang     2019-07-23  129  }
607975b30db41a Ding Xiang     2019-07-23  130  

:::::: The code at line 112 was first introduced by commit
:::::: 74426fbff66eea8e8d1f42c8238c268d1e63a832 ALSA: ac97: add an ac97 bus

:::::: TO: Robert Jarzmik <robert.jarzmik@xxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux