| .. | .. |
|---|
| 1 | | -// SPDX-License-Identifier: GPL-1.0+ |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-1.0+ */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * OHCI HCD (Host Controller Driver) for USB. |
|---|
| 4 | 4 | * |
|---|
| .. | .. |
|---|
| 162 | 162 | |
|---|
| 163 | 163 | |
|---|
| 164 | 164 | /* 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] = { |
|---|
| 166 | 166 | /* No Error */ 0, |
|---|
| 167 | 167 | /* CRC Error */ -EILSEQ, |
|---|
| 168 | 168 | /* Bit Stuff */ -EPROTO, |
|---|
| .. | .. |
|---|
| 337 | 337 | u16 length; // # tds in this request |
|---|
| 338 | 338 | u16 td_cnt; // tds already serviced |
|---|
| 339 | 339 | struct list_head pending; |
|---|
| 340 | | - struct td *td [0]; // all TDs in this request |
|---|
| 340 | + struct td *td[]; // all TDs in this request |
|---|
| 341 | 341 | |
|---|
| 342 | 342 | } urb_priv_t; |
|---|
| 343 | 343 | |
|---|
| .. | .. |
|---|
| 385 | 385 | |
|---|
| 386 | 386 | /* |
|---|
| 387 | 387 | * memory management for queue data structures |
|---|
| 388 | + * |
|---|
| 389 | + * @td_cache and @ed_cache are %NULL if &usb_hcd.localmem_pool is used. |
|---|
| 388 | 390 | */ |
|---|
| 389 | 391 | struct dma_pool *td_cache; |
|---|
| 390 | 392 | struct dma_pool *ed_cache; |
|---|
| .. | .. |
|---|
| 433 | 435 | struct dentry *debug_dir; |
|---|
| 434 | 436 | |
|---|
| 435 | 437 | /* platform-specific data -- must come last */ |
|---|
| 436 | | - unsigned long priv[0] __aligned(sizeof(s64)); |
|---|
| 438 | + unsigned long priv[] __aligned(sizeof(s64)); |
|---|
| 437 | 439 | |
|---|
| 438 | 440 | }; |
|---|
| 439 | 441 | |
|---|