mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 16:39:53 +07:00
usb: gadget: udc: atmel: Make some symbols static
Fix the following sparse warnings:
drivers/usb/gadget/udc/atmel_usba_udc.c:188:30: warning: symbol 'queue_dbg_fops' was not declared.
drivers/usb/gadget/udc/atmel_usba_udc.c:196:30: warning: symbol 'regs_dbg_fops' was not declared.
queue_dbg_fops and regs_dbg_fops have only call within atmel_usba_udc.c
They should be static
Fixes: 914a3f3b37
("USB: add atmel_usba_udc driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Samuel Zou <zou_wei@huawei.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
This commit is contained in:
parent
da39b5ee40
commit
4210f3a6e4
@ -185,7 +185,7 @@ static int regs_dbg_release(struct inode *inode, struct file *file)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct file_operations queue_dbg_fops = {
|
||||
static const struct file_operations queue_dbg_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = queue_dbg_open,
|
||||
.llseek = no_llseek,
|
||||
@ -193,7 +193,7 @@ const struct file_operations queue_dbg_fops = {
|
||||
.release = queue_dbg_release,
|
||||
};
|
||||
|
||||
const struct file_operations regs_dbg_fops = {
|
||||
static const struct file_operations regs_dbg_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = regs_dbg_open,
|
||||
.llseek = generic_file_llseek,
|
||||
|
Loading…
Reference in New Issue
Block a user