Adjust agp_find_device() definition in agp.c to avoid clang 15 warning
With clang 15, the following -Werror warning is produced: sys/dev/agp/agp.c:910:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] agp_find_device() ^ void This is because agp_find_device() is declared with a (void) argument list, and defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days
This commit is contained in:
parent
6eeba7dbd6
commit
c0817e2aba
@ -907,7 +907,7 @@ agp_mmap(struct cdev *kdev, vm_ooffset_t offset, vm_paddr_t *paddr,
|
||||
/* Implementation of the kernel api */
|
||||
|
||||
device_t
|
||||
agp_find_device()
|
||||
agp_find_device(void)
|
||||
{
|
||||
device_t *children, child;
|
||||
int i, count;
|
||||
|
Loading…
x
Reference in New Issue
Block a user