lkml.org 
[lkml]   [2016]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/usb/musb/musb_debugfs.c:52:13: error: 'USB_FADDR' undeclared here (not in a function)
Hi,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 45b00c94be33db5d00595046663163ce55cbbfb9
commit: c2365ce5d5a0531f24ee488bf846acda4ecbe2aa usb: musb: replace hard coded registers with defines
date: 1 year, 7 months ago
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 4.6.3
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c2365ce5d5a0531f24ee488bf846acda4ecbe2aa
# save the attached .config to linux build tree
make.cross ARCH=blackfin

All errors (new ones prefixed by >>):

>> drivers/usb/musb/musb_debugfs.c:52:13: error: 'USB_FADDR' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:53:13: error: 'USB_POWER' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:54:13: error: 'USB_FRAME' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:55:13: error: 'USB_INDEX' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:56:16: error: 'USB_TESTMODE' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:62:18: error: 'MUSB_CONFIGDATA' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:63:15: error: 'USB_INTRRXE' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:64:15: error: 'USB_INTRTXE' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:65:16: error: 'USB_INTRUSBE' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:66:14: error: 'USB_OTG_DEV_CTL' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:67:17: error: 'MUSB_BABBLE_CTL' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:68:16: error: 'MUSB_TXFIFOSZ' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:69:16: error: 'MUSB_RXFIFOSZ' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:70:17: error: 'MUSB_TXFIFOADD' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:71:17: error: 'MUSB_RXFIFOADD' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:74:14: error: 'MUSB_EPINFO' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:75:15: error: 'MUSB_RAMINFO' undeclared here (not in a function)
drivers/usb/musb/musb_debugfs.c:76:16: error: 'USB_LINKINFO' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:77:13: error: 'USB_VPLEN' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:78:15: error: 'USB_HS_EOF1' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:79:15: error: 'USB_FS_EOF1' undeclared here (not in a function)
>> drivers/usb/musb/musb_debugfs.c:80:15: error: 'USB_LS_EOF1' undeclared here (not in a function)

vim +/USB_FADDR +52 drivers/usb/musb/musb_debugfs.c

46 char *name;
47 unsigned offset;
48 unsigned size;
49 };
50
51 static const struct musb_register_map musb_regmap[] = {
> 52 { "FAddr", MUSB_FADDR, 8 },
> 53 { "Power", MUSB_POWER, 8 },
> 54 { "Frame", MUSB_FRAME, 16 },
> 55 { "Index", MUSB_INDEX, 8 },
> 56 { "Testmode", MUSB_TESTMODE, 8 },
57 { "TxMaxPp", MUSB_TXMAXP, 16 },
58 { "TxCSRp", MUSB_TXCSR, 16 },
59 { "RxMaxPp", MUSB_RXMAXP, 16 },
60 { "RxCSR", MUSB_RXCSR, 16 },
61 { "RxCount", MUSB_RXCOUNT, 16 },
62 { "ConfigData", MUSB_CONFIGDATA,8 },
63 { "IntrRxE", MUSB_INTRRXE, 16 },
> 64 { "IntrTxE", MUSB_INTRTXE, 16 },
> 65 { "IntrUsbE", MUSB_INTRUSBE, 8 },
> 66 { "DevCtl", MUSB_DEVCTL, 8 },
> 67 { "BabbleCtl", MUSB_BABBLE_CTL,8 },
> 68 { "TxFIFOsz", MUSB_TXFIFOSZ, 8 },
> 69 { "RxFIFOsz", MUSB_RXFIFOSZ, 8 },
70 { "TxFIFOadd", MUSB_TXFIFOADD, 16 },
71 { "RxFIFOadd", MUSB_RXFIFOADD, 16 },
72 { "VControl", 0x68, 32 },
73 { "HWVers", 0x69, 16 },
74 { "EPInfo", MUSB_EPINFO, 8 },
75 { "RAMInfo", MUSB_RAMINFO, 8 },
76 { "LinkInfo", MUSB_LINKINFO, 8 },
> 77 { "VPLen", MUSB_VPLEN, 8 },
> 78 { "HS_EOF1", MUSB_HS_EOF1, 8 },
> 79 { "FS_EOF1", MUSB_FS_EOF1, 8 },
> 80 { "LS_EOF1", MUSB_LS_EOF1, 8 },
81 { "SOFT_RST", 0x7F, 8 },
82 { "DMA_CNTLch0", 0x204, 16 },
83 { "DMA_ADDRch0", 0x208, 32 },

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2016-06-11 22:21    [W:0.032 / U:0.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site