mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
strict kobj signatures: fix adb_hb_controller_poll impl in powermac
the method return u_int, not void Reviewed by: imp, current@ Approved by: jhb (mentor)
This commit is contained in:
parent
1c44eb75f7
commit
65f4467938
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194027
@ -68,7 +68,7 @@ static int cuda_detach(device_t);
|
||||
static u_int cuda_adb_send(device_t dev, u_char command_byte, int len,
|
||||
u_char *data, u_char poll);
|
||||
static u_int cuda_adb_autopoll(device_t dev, uint16_t mask);
|
||||
static void cuda_poll(device_t dev);
|
||||
static u_int cuda_poll(device_t dev);
|
||||
static void cuda_send_inbound(struct cuda_softc *sc);
|
||||
static void cuda_send_outbound(struct cuda_softc *sc);
|
||||
|
||||
@ -471,16 +471,17 @@ cuda_send_inbound(struct cuda_softc *sc)
|
||||
mtx_unlock(&sc->sc_mutex);
|
||||
}
|
||||
|
||||
static void
|
||||
static u_int
|
||||
cuda_poll(device_t dev)
|
||||
{
|
||||
struct cuda_softc *sc = device_get_softc(dev);
|
||||
|
||||
if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc) &&
|
||||
!sc->sc_waiting)
|
||||
return;
|
||||
return (0);
|
||||
|
||||
cuda_intr(dev);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -68,7 +68,7 @@ static int pmu_detach(device_t);
|
||||
static u_int pmu_adb_send(device_t dev, u_char command_byte, int len,
|
||||
u_char *data, u_char poll);
|
||||
static u_int pmu_adb_autopoll(device_t dev, uint16_t mask);
|
||||
static void pmu_poll(device_t dev);
|
||||
static u_int pmu_poll(device_t dev);
|
||||
|
||||
static void pmu_set_sleepled(void *xsc, int onoff);
|
||||
static int pmu_server_mode(SYSCTL_HANDLER_ARGS);
|
||||
@ -575,10 +575,11 @@ done:
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
static u_int
|
||||
pmu_poll(device_t dev)
|
||||
{
|
||||
pmu_intr(dev);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user