mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
- remove trailing whitespace
- fix compile warnings. badaddr() will go to a header file soon.
This commit is contained in:
parent
7c2779715c
commit
475a183dd1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125688
|
@ -54,6 +54,8 @@
|
|||
|
||||
#include "pcib_if.h"
|
||||
|
||||
int badaddr(void *, size_t); /* XXX */
|
||||
|
||||
/*
|
||||
* Device interface.
|
||||
*/
|
||||
|
@ -276,7 +278,7 @@ grackle_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg,
|
|||
* to catch these.
|
||||
*/
|
||||
if (bus > 0) {
|
||||
if (badaddr(sc->sc_data, 4)) {
|
||||
if (badaddr((void *)sc->sc_data, 4)) {
|
||||
return (retval);
|
||||
}
|
||||
}
|
||||
|
@ -448,7 +450,7 @@ grackle_activate_resource(device_t bus, device_t child, int type, int rid,
|
|||
start += sc->sc_iostart;
|
||||
|
||||
if (bootverbose)
|
||||
printf("grackle mapdev: start %x, len %x\n", start,
|
||||
printf("grackle mapdev: start %x, len %ld\n", start,
|
||||
rman_get_size(res));
|
||||
|
||||
p = pmap_mapdev(start, (vm_size_t)rman_get_size(res));
|
||||
|
|
Loading…
Reference in a new issue