All of lore.kernel.org
 help / color / mirror / Atom feed
* [jirislaby:devel 14/48] drivers/char/mwave/smapi.c:119:25: error: unknown type name 'SMAPI_DSP_SETTINGS'
@ 2025-08-22  5:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-22  5:06 UTC (permalink / raw)
  To: Jiri Slaby (SUSE); +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head:   0926f0595441527a1b067314368d6b4afd949a09
commit: ab9741df5941a43ffaa548a45bbd4aa35db0cbe6 [14/48] mwave: drop typedefs
config: x86_64-buildonly-randconfig-003-20250822 (https://download.01.org/0day-ci/archive/20250822/202508221234.kaAvoHbe-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250822/202508221234.kaAvoHbe-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508221234.kaAvoHbe-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/char/mwave/smapi.c:119:25: error: unknown type name 'SMAPI_DSP_SETTINGS'
     119 | int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings)
         |                         ^
   1 error generated.


vim +/SMAPI_DSP_SETTINGS +119 drivers/char/mwave/smapi.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  117  
^1da177e4c3f41 Linus Torvalds    2005-04-16  118  
^1da177e4c3f41 Linus Torvalds    2005-04-16 @119  int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings)
^1da177e4c3f41 Linus Torvalds    2005-04-16  120  {
7ca78630a1ae08 Colin Ian King    2020-06-11  121  	int bRC;
^1da177e4c3f41 Linus Torvalds    2005-04-16  122  	unsigned short usAX, usBX, usCX, usDX, usDI, usSI;
caa97be1a2052f Colin Ian King    2017-07-10  123  	static const unsigned short ausDspBases[] = {
caa97be1a2052f Colin Ian King    2017-07-10  124  		0x0030, 0x4E30, 0x8E30, 0xCE30,
caa97be1a2052f Colin Ian King    2017-07-10  125  		0x0130, 0x0350, 0x0070, 0x0DB0 };
caa97be1a2052f Colin Ian King    2017-07-10  126  	static const unsigned short ausUartBases[] = {
caa97be1a2052f Colin Ian King    2017-07-10  127  		0x03F8, 0x02F8, 0x03E8, 0x02E8 };
^1da177e4c3f41 Linus Torvalds    2005-04-16  128  
^1da177e4c3f41 Linus Torvalds    2005-04-16  129  	bRC = smapi_request(0x1802, 0x0000, 0, 0,
^1da177e4c3f41 Linus Torvalds    2005-04-16  130  		&usAX, &usBX, &usCX, &usDX, &usDI, &usSI);
^1da177e4c3f41 Linus Torvalds    2005-04-16  131  	if (bRC) {
96468c7796f1be Jiri Slaby (SUSE  2025-08-20  132) 		pr_err("%s: Error: Could not get DSP Settings. Aborting.\n", __func__);
^1da177e4c3f41 Linus Torvalds    2005-04-16  133  		return bRC;
^1da177e4c3f41 Linus Torvalds    2005-04-16  134  	}
^1da177e4c3f41 Linus Torvalds    2005-04-16  135  
^1da177e4c3f41 Linus Torvalds    2005-04-16  136  	pSettings->bDSPPresent = ((usBX & 0x0100) != 0);
^1da177e4c3f41 Linus Torvalds    2005-04-16  137  	pSettings->bDSPEnabled = ((usCX & 0x0001) != 0);
^1da177e4c3f41 Linus Torvalds    2005-04-16  138  	pSettings->usDspIRQ = usSI & 0x00FF;
^1da177e4c3f41 Linus Torvalds    2005-04-16  139  	pSettings->usDspDMA = (usSI & 0xFF00) >> 8;
caa97be1a2052f Colin Ian King    2017-07-10  140  	if ((usDI & 0x00FF) < ARRAY_SIZE(ausDspBases)) {
^1da177e4c3f41 Linus Torvalds    2005-04-16  141  		pSettings->usDspBaseIO = ausDspBases[usDI & 0x00FF];
^1da177e4c3f41 Linus Torvalds    2005-04-16  142  	} else {
^1da177e4c3f41 Linus Torvalds    2005-04-16  143  		pSettings->usDspBaseIO = 0;
^1da177e4c3f41 Linus Torvalds    2005-04-16  144  	}
^1da177e4c3f41 Linus Torvalds    2005-04-16  145  
^1da177e4c3f41 Linus Torvalds    2005-04-16  146  	/* check for illegal values */
^1da177e4c3f41 Linus Torvalds    2005-04-16  147  	if ( pSettings->usDspBaseIO == 0 ) 
96468c7796f1be Jiri Slaby (SUSE  2025-08-20  148) 		pr_err("%s: Worry: DSP base I/O address is 0\n", __func__);
^1da177e4c3f41 Linus Torvalds    2005-04-16  149  	if ( pSettings->usDspIRQ == 0 )
96468c7796f1be Jiri Slaby (SUSE  2025-08-20  150) 		pr_err("%s: Worry: DSP IRQ line is 0\n", __func__);
^1da177e4c3f41 Linus Torvalds    2005-04-16  151  
^1da177e4c3f41 Linus Torvalds    2005-04-16  152  	bRC = smapi_request(0x1804, 0x0000, 0, 0,
^1da177e4c3f41 Linus Torvalds    2005-04-16  153  	   	&usAX, &usBX, &usCX, &usDX, &usDI, &usSI);
^1da177e4c3f41 Linus Torvalds    2005-04-16  154  	if (bRC) {
96468c7796f1be Jiri Slaby (SUSE  2025-08-20  155) 		pr_err("%s: Error: Could not get DSP modem settings. Aborting.\n", __func__);
^1da177e4c3f41 Linus Torvalds    2005-04-16  156  		return bRC;
^1da177e4c3f41 Linus Torvalds    2005-04-16  157  	} 
^1da177e4c3f41 Linus Torvalds    2005-04-16  158  
^1da177e4c3f41 Linus Torvalds    2005-04-16  159  	pSettings->bModemEnabled = ((usCX & 0x0001) != 0);
^1da177e4c3f41 Linus Torvalds    2005-04-16  160  	pSettings->usUartIRQ = usSI & 0x000F;
caa97be1a2052f Colin Ian King    2017-07-10  161  	if (((usSI & 0xFF00) >> 8) < ARRAY_SIZE(ausUartBases)) {
^1da177e4c3f41 Linus Torvalds    2005-04-16  162  		pSettings->usUartBaseIO = ausUartBases[(usSI & 0xFF00) >> 8];
^1da177e4c3f41 Linus Torvalds    2005-04-16  163  	} else {
^1da177e4c3f41 Linus Torvalds    2005-04-16  164  		pSettings->usUartBaseIO = 0;
^1da177e4c3f41 Linus Torvalds    2005-04-16  165  	}
^1da177e4c3f41 Linus Torvalds    2005-04-16  166  
^1da177e4c3f41 Linus Torvalds    2005-04-16  167  	/* check for illegal values */
^1da177e4c3f41 Linus Torvalds    2005-04-16  168  	if ( pSettings->usUartBaseIO == 0 ) 
96468c7796f1be Jiri Slaby (SUSE  2025-08-20  169) 		pr_err("%s: Worry: UART base I/O address is 0\n", __func__);
^1da177e4c3f41 Linus Torvalds    2005-04-16  170  	if ( pSettings->usUartIRQ == 0 )
96468c7796f1be Jiri Slaby (SUSE  2025-08-20  171) 		pr_err("%s: Worry: UART IRQ line is 0\n", __func__);
^1da177e4c3f41 Linus Torvalds    2005-04-16  172  
^1da177e4c3f41 Linus Torvalds    2005-04-16  173  	return bRC;
^1da177e4c3f41 Linus Torvalds    2005-04-16  174  }
^1da177e4c3f41 Linus Torvalds    2005-04-16  175  

:::::: The code at line 119 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-22  5:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22  5:06 [jirislaby:devel 14/48] drivers/char/mwave/smapi.c:119:25: error: unknown type name 'SMAPI_DSP_SETTINGS' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.