forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/usb/host/ohci.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-1.0+
1
+/* SPDX-License-Identifier: GPL-1.0+ */
22 /*
33 * OHCI HCD (Host Controller Driver) for USB.
44 *
....@@ -162,7 +162,7 @@
162162
163163
164164 /* map OHCI TD status codes (CC) to errno values */
165
-static const int cc_to_error [16] = {
165
+static const int __maybe_unused cc_to_error [16] = {
166166 /* No Error */ 0,
167167 /* CRC Error */ -EILSEQ,
168168 /* Bit Stuff */ -EPROTO,
....@@ -337,7 +337,7 @@
337337 u16 length; // # tds in this request
338338 u16 td_cnt; // tds already serviced
339339 struct list_head pending;
340
- struct td *td [0]; // all TDs in this request
340
+ struct td *td[]; // all TDs in this request
341341
342342 } urb_priv_t;
343343
....@@ -385,6 +385,8 @@
385385
386386 /*
387387 * memory management for queue data structures
388
+ *
389
+ * @td_cache and @ed_cache are %NULL if &usb_hcd.localmem_pool is used.
388390 */
389391 struct dma_pool *td_cache;
390392 struct dma_pool *ed_cache;
....@@ -433,7 +435,7 @@
433435 struct dentry *debug_dir;
434436
435437 /* platform-specific data -- must come last */
436
- unsigned long priv[0] __aligned(sizeof(s64));
438
+ unsigned long priv[] __aligned(sizeof(s64));
437439
438440 };
439441