[driver-core:bus_cleanup 50/63] 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/gregkh/driver-core.git bus_cleanup
head:   ac92bbeaa1fb866860adfba2428bd35ae4c7f382
commit: 25e5a37b12d794025aee0c57fc0f184030d20da6 [50/63] ALSA: mark all struct bus_type as const
config: hexagon-randconfig-r131-20231229 (https://download.01.org/0day-ci/archive/20231230/202312300412.d7aL39C6-lkp@xxxxxxxxx/config)
compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 8a4266a626914765c0c69839e8a51be383013c1a)
reproduce: (https://download.01.org/0day-ci/archive/20231230/202312300412.d7aL39C6-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/202312300412.d7aL39C6-lkp@xxxxxxxxx/

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
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux