All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jirislaby:devel 14/48] drivers/char/mwave/smapi.c:119:25: error: unknown type name 'SMAPI_DSP_SETTINGS'
Date: Fri, 22 Aug 2025 13:06:46 +0800	[thread overview]
Message-ID: <202508221234.kaAvoHbe-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-08-22  5:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202508221234.kaAvoHbe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jirislaby@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.