2022-07-30 04:00:58

by kernel test robot

[permalink] [raw]
Subject: [stffrdhrn:or1k-virt-5 2/10] arch/x86/kernel/cpu/cyrix.c:277:17: error: 'isa_dma_bridge_buggy' undeclared

tree: https://github.com/stffrdhrn/linux.git or1k-virt-5
head: 2e5ced6dd3319303f0d6760a46e8b35e985c86b5
commit: db5cc35daef410a8a51d7c2e66d34195b82dcb50 [2/10] PCI: Move isa_dma_bridge_buggy out of dma.h
config: i386-randconfig-a014-20210930 (https://download.01.org/0day-ci/archive/20220730/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/stffrdhrn/linux/commit/db5cc35daef410a8a51d7c2e66d34195b82dcb50
git remote add stffrdhrn https://github.com/stffrdhrn/linux.git
git fetch --no-tags stffrdhrn or1k-virt-5
git checkout db5cc35daef410a8a51d7c2e66d34195b82dcb50
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

arch/x86/kernel/cpu/cyrix.c: In function 'init_cyrix':
>> arch/x86/kernel/cpu/cyrix.c:277:17: error: 'isa_dma_bridge_buggy' undeclared (first use in this function)
277 | isa_dma_bridge_buggy = 2;
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/cyrix.c:277:17: note: each undeclared identifier is reported only once for each function it appears in


vim +/isa_dma_bridge_buggy +277 arch/x86/kernel/cpu/cyrix.c

^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 190
148f9bb87745ed4 arch/x86/kernel/cpu/cyrix.c Paul Gortmaker 2013-06-18 191 static void init_cyrix(struct cpuinfo_x86 *c)
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 192 {
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 193 unsigned char dir0, dir0_msn, dir0_lsn, dir1 = 0;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 194 char *buf = c->x86_model_id;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 195 const char *p = NULL;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 196
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 197 /*
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 198 * Bit 31 in normal CPUID used for nonstandard 3DNow ID;
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 199 * 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 200 */
1d007cd5aeea2c9 arch/x86/kernel/cpu/cyrix.c Ingo Molnar 2008-02-26 201 clear_cpu_cap(c, 0*32+31);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 202
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 203 /* Cyrix used bit 24 in extended (AMD) CPUID for Cyrix MMX extensions */
1d007cd5aeea2c9 arch/x86/kernel/cpu/cyrix.c Ingo Molnar 2008-02-26 204 if (test_cpu_cap(c, 1*32+24)) {
1d007cd5aeea2c9 arch/x86/kernel/cpu/cyrix.c Ingo Molnar 2008-02-26 205 clear_cpu_cap(c, 1*32+24);
1d007cd5aeea2c9 arch/x86/kernel/cpu/cyrix.c Ingo Molnar 2008-02-26 206 set_cpu_cap(c, X86_FEATURE_CXMMX);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 207 }
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 208
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 209 do_cyrix_devid(&dir0, &dir1);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 210
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 211 check_cx686_slop(c);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 212
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 213 Cx86_dir0_msb = dir0_msn = dir0 >> 4; /* identifies CPU "family" */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 214 dir0_lsn = dir0 & 0xf; /* model or clock multiplier */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 215
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 216 /* common case step number/rev -- exceptions handled below */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 217 c->x86_model = (dir1 >> 4) + 1;
b399151cb48db30 arch/x86/kernel/cpu/cyrix.c Jia Zhang 2018-01-01 218 c->x86_stepping = dir1 & 0xf;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 219
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 220 /* Now cook; the original recipe is by Channing Corn, from Cyrix.
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 221 * We do the same thing for each generation: we work out
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 222 * the model, multiplier and stepping. Black magic included,
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 223 * to make the silicon step/rev numbers match the printed ones.
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 224 */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 225
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 226 switch (dir0_msn) {
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 227 unsigned char tmp;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 228
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 229 case 0: /* Cx486SLC/DLC/SRx/DRx */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 230 p = Cx486_name[dir0_lsn & 7];
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 231 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 232
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 233 case 1: /* Cx486S/DX/DX2/DX4 */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 234 p = (dir0_lsn & 8) ? Cx486D_name[dir0_lsn & 5]
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 235 : Cx486S_name[dir0_lsn & 3];
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 236 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 237
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 238 case 2: /* 5x86 */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 239 Cx86_cb[2] = cyrix_model_mult1[dir0_lsn & 5];
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 240 p = Cx86_cb+2;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 241 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 242
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 243 case 3: /* 6x86/6x86L */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 244 Cx86_cb[1] = ' ';
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 245 Cx86_cb[2] = cyrix_model_mult1[dir0_lsn & 5];
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 246 if (dir1 > 0x21) { /* 686L */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 247 Cx86_cb[0] = 'L';
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 248 p = Cx86_cb;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 249 (c->x86_model)++;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 250 } else /* 686 */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 251 p = Cx86_cb+1;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 252 /* Emulate MTRRs using Cyrix's ARRs. */
1d007cd5aeea2c9 arch/x86/kernel/cpu/cyrix.c Ingo Molnar 2008-02-26 253 set_cpu_cap(c, X86_FEATURE_CYRIX_ARR);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 254 /* 6x86's contain this bug */
c5b41a67505cc3c arch/x86/kernel/cpu/cyrix.c Borislav Petkov 2013-03-20 255 set_cpu_bug(c, X86_BUG_COMA);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 256 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 257
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 258 case 4: /* MediaGX/GXm or Geode GXM/GXLV/GX1 */
ae1d557d8f30cb0 arch/x86/kernel/cpu/cyrix.c Christian S?nkenberg 2017-06-04 259 case 11: /* GX1 with inverted Device ID */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 260 #ifdef CONFIG_PCI
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 261 {
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 262 u32 vendor, device;
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 263 /*
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 264 * It isn't really a PCI quirk directly, but the cure is the
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 265 * same. The MediaGX has deep magic SMM stuff that handles the
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 266 * SB emulation. It throws away the fifo on disable_dma() which
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 267 * is wrong and ruins the audio.
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 268 *
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 269 * Bug2: VSA1 has a wrap bug so that using maximum sized DMA
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 270 * causes bad things. According to NatSemi VSA2 has another
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 271 * bug to do with 'hlt'. I've not seen any boards using VSA2
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 272 * and X doesn't seem to support it either so who cares 8).
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 273 * VSA1 we work around however.
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 274 */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 275
1b74dde7c47c19a arch/x86/kernel/cpu/cyrix.c Chen Yucong 2016-02-02 276 pr_info("Working around Cyrix MediaGX virtual DMA bugs.\n");
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 @277 isa_dma_bridge_buggy = 2;
cefc01130ba2bb0 arch/i386/kernel/cpu/cyrix.c Andreas Mohr 2006-06-23 278
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 279 /* We do this before the PCI layer is running. However we
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 280 are safe here as we know the bridge must be a Cyrix
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 281 companion and must be present */
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 282 vendor = read_pci_config_16(0, 0, 0x12, PCI_VENDOR_ID);
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 283 device = read_pci_config_16(0, 0, 0x12, PCI_DEVICE_ID);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 284
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 285 /*
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 286 * The 5510/5520 companion chips have a funky PIT.
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 287 */
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 288 if (vendor == PCI_VENDOR_ID_CYRIX &&
8bdbd962ecfcbdd arch/x86/kernel/cpu/cyrix.c Alan Cox 2009-07-04 289 (device == PCI_DEVICE_ID_CYRIX_5510 ||
8bdbd962ecfcbdd arch/x86/kernel/cpu/cyrix.c Alan Cox 2009-07-04 290 device == PCI_DEVICE_ID_CYRIX_5520))
5a90cf205c92270 arch/i386/kernel/cpu/cyrix.c John Stultz 2007-05-02 291 mark_tsc_unstable("cyrix 5510/5520 detected");
120fad72401ebec arch/i386/kernel/cpu/cyrix.c Alan Cox 2007-02-13 292 }
cefc01130ba2bb0 arch/i386/kernel/cpu/cyrix.c Andreas Mohr 2006-06-23 293 #endif
d9f6e12fb0b7fcd arch/x86/kernel/cpu/cyrix.c Ingo Molnar 2021-03-18 294 c->x86_cache_size = 16; /* Yep 16K integrated cache that's it */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 295
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 296 /* GXm supports extended cpuid levels 'ala' AMD */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 297 if (c->cpuid_level == 2) {
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 298 /* Enable cxMMX extensions (GX1 Datasheet 54) */
18fb053f9b827bd arch/x86/kernel/cpu/cyrix.c Matthew Whitehead 2019-03-14 299 setCx86(CX86_CCR7, getCx86(CX86_CCR7) | 1);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 300
2632f01a66d75f4 arch/i386/kernel/cpu/cyrix.c takada 2007-02-13 301 /*
2632f01a66d75f4 arch/i386/kernel/cpu/cyrix.c takada 2007-02-13 302 * GXm : 0x30 ... 0x5f GXm datasheet 51
2632f01a66d75f4 arch/i386/kernel/cpu/cyrix.c takada 2007-02-13 303 * GXlv: 0x6x GXlv datasheet 54
2632f01a66d75f4 arch/i386/kernel/cpu/cyrix.c takada 2007-02-13 304 * ? : 0x7x
2632f01a66d75f4 arch/i386/kernel/cpu/cyrix.c takada 2007-02-13 305 * GX1 : 0x8x GX1 datasheet 56
2632f01a66d75f4 arch/i386/kernel/cpu/cyrix.c takada 2007-02-13 306 */
8bdbd962ecfcbdd arch/x86/kernel/cpu/cyrix.c Alan Cox 2009-07-04 307 if ((0x30 <= dir1 && dir1 <= 0x6f) ||
8bdbd962ecfcbdd arch/x86/kernel/cpu/cyrix.c Alan Cox 2009-07-04 308 (0x80 <= dir1 && dir1 <= 0x8f))
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 309 geode_configure();
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 310 return;
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 311 } else { /* MediaGX */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 312 Cx86_cb[2] = (dir0_lsn & 1) ? '3' : '4';
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 313 p = Cx86_cb+2;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 314 c->x86_model = (dir1 & 0x20) ? 1 : 2;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 315 }
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 316 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 317
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 318 case 5: /* 6x86MX/M II */
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 319 if (dir1 > 7) {
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 320 dir0_msn++; /* M II */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 321 /* Enable MMX extensions (App note 108) */
18fb053f9b827bd arch/x86/kernel/cpu/cyrix.c Matthew Whitehead 2019-03-14 322 setCx86(CX86_CCR7, getCx86(CX86_CCR7)|1);
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 323 } else {
c5b41a67505cc3c arch/x86/kernel/cpu/cyrix.c Borislav Petkov 2013-03-20 324 /* A 6x86MX - it has the bug. */
c5b41a67505cc3c arch/x86/kernel/cpu/cyrix.c Borislav Petkov 2013-03-20 325 set_cpu_bug(c, X86_BUG_COMA);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 326 }
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 327 tmp = (!(dir0_lsn & 7) || dir0_lsn & 1) ? 2 : 0;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 328 Cx86_cb[tmp] = cyrix_model_mult2[dir0_lsn & 7];
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 329 p = Cx86_cb+tmp;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 330 if (((dir1 & 0x0f) > 4) || ((dir1 & 0xf0) == 0x20))
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 331 (c->x86_model)++;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 332 /* Emulate MTRRs using Cyrix's ARRs. */
1d007cd5aeea2c9 arch/x86/kernel/cpu/cyrix.c Ingo Molnar 2008-02-26 333 set_cpu_cap(c, X86_FEATURE_CYRIX_ARR);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 334 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 335
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 336 case 0xf: /* Cyrix 486 without DEVID registers */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 337 switch (dir0_lsn) {
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 338 case 0xd: /* either a 486SLC or DLC w/o DEVID */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 339 dir0_msn = 0;
a402a8dffc9f838 arch/x86/kernel/cpu/cyrix.c Borislav Petkov 2016-04-04 340 p = Cx486_name[!!boot_cpu_has(X86_FEATURE_FPU)];
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 341 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 342
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 343 case 0xe: /* a 486S A step */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 344 dir0_msn = 0;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 345 p = Cx486S_name[0];
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 346 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 347 }
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 348 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 349
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 350 default: /* unknown (shouldn't happen, we know everyone ;-) */
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 351 dir0_msn = 7;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 352 break;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 353 }
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 354 strcpy(buf, Cx86_model[dir0_msn & 7]);
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 355 if (p)
adf85265b455f09 arch/x86/kernel/cpu/cyrix.c Paolo Ciarrocchi 2008-02-22 356 strcat(buf, p);
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 357 return;
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 358 }
^1da177e4c3f415 arch/i386/kernel/cpu/cyrix.c Linus Torvalds 2005-04-16 359

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

:::::: TO: Linus Torvalds <[email protected]>
:::::: CC: Linus Torvalds <[email protected]>

--
0-DAY CI Kernel Test Service
https://01.org/lkp


2022-07-30 05:12:28

by Stafford Horne

[permalink] [raw]
Subject: Re: [stffrdhrn:or1k-virt-5 2/10] arch/x86/kernel/cpu/cyrix.c:277:17: error: 'isa_dma_bridge_buggy' undeclared

On Sat, Jul 30, 2022 at 11:54:41AM +0800, kernel test robot wrote:
> tree: https://github.com/stffrdhrn/linux.git or1k-virt-5
> head: 2e5ced6dd3319303f0d6760a46e8b35e985c86b5
> commit: db5cc35daef410a8a51d7c2e66d34195b82dcb50 [2/10] PCI: Move isa_dma_bridge_buggy out of dma.h
> config: i386-randconfig-a014-20210930 (https://download.01.org/0day-ci/archive/20220730/[email protected]/config)
> compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
> reproduce (this is a W=1 build):
> # https://github.com/stffrdhrn/linux/commit/db5cc35daef410a8a51d7c2e66d34195b82dcb50
> git remote add stffrdhrn https://github.com/stffrdhrn/linux.git
> git fetch --no-tags stffrdhrn or1k-virt-5
> git checkout db5cc35daef410a8a51d7c2e66d34195b82dcb50
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <[email protected]>
>
> All errors (new ones prefixed by >>):
>
> arch/x86/kernel/cpu/cyrix.c: In function 'init_cyrix':
> >> arch/x86/kernel/cpu/cyrix.c:277:17: error: 'isa_dma_bridge_buggy' undeclared (first use in this function)
> 277 | isa_dma_bridge_buggy = 2;
> | ^~~~~~~~~~~~~~~~~~~~
> arch/x86/kernel/cpu/cyrix.c:277:17: note: each undeclared identifier is reported only once for each function it appears in

I don't have the fix on the branch but this is fixed on the branch
'pci/header-cleanup-immutable' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git

After the patches went into the PCI branch.

-Stafford