John Baldwin
b596f9b860
arm annapurna: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-09 14:26:44 -07:00
John Baldwin
75996aa1ec
arm altera: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-09 14:26:44 -07:00
John Baldwin
7e1e2ba170
arm allwinner: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-09 14:26:44 -07:00
John Baldwin
3e9318692d
arm/arm: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-09 14:26:44 -07:00
John Baldwin
829a13fa7f
Remove unused etherswitch_devclass.
2022-05-09 14:26:43 -07:00
John Baldwin
d885615a4f
Remove unused gpioc_devclass.
2022-05-09 12:22:01 -07:00
John Baldwin
e8590c9702
Remove unused ofwgpiobus_devclass.
2022-05-09 12:22:00 -07:00
John Baldwin
5f31d14a92
Remove unused spibus_devclass and ofw_spibus_devclass.
2022-05-09 12:22:00 -07:00
John Baldwin
c90ea83112
Remove unused uart_devclass.
2022-05-06 15:46:57 -07:00
John Baldwin
2287364e04
Remove pcm_devclass from DRIVER_MODULE invocations.
2022-05-06 15:46:56 -07:00
John Baldwin
85447c525b
Remove unused ofw_iicbus_devclass.
2022-05-06 15:39:30 -07:00
John Baldwin
676ea8e177
Remove unused iicbus_devclass.
2022-05-06 15:39:30 -07:00
John Baldwin
9360510b16
Remove unused fbd_devclass.
2022-05-06 15:39:30 -07:00
John Baldwin
23802d41fa
Remove unused ahci_devclass.
2022-05-06 15:39:28 -07:00
John Baldwin
3e38757d4c
Remove unused miibus_devclass and miibus_fdt_devclass.
2022-05-06 15:39:28 -07:00
John Baldwin
d4fa375a0e
am335x_pwm_config_ecap: Use devclass_find to lookup devclass.
...
Differential Revision: https://reviews.freebsd.org/D35082
2022-05-05 16:40:43 -07:00
John Baldwin
d4ab3a8d4f
busdma_bounce: Add free_bounce_pages helper function.
...
Deduplicate code to iterate over the bpages list in a bus_dmamap_t
freeing bounce pages during bus_dmamap_unload.
Reviewed by: imp
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D34967
2022-04-21 10:42:14 -07:00
John Baldwin
ecbe50447d
arm ti_mbox_attach: Write sysconfig to TI_MBOX_SYSCONFIG to request reset.
...
This variable was flagged as a set but unused warning as its value was
read from a register and then modified to set a bit
(TI_MBOX_SYSCONFIG_SOFTRST). After the variable is modified, the code
then loops waiting for the SOFTRST bit to go clear in the
TI_MBOX_SYSCONFIG register. Presumably merely reading from the
register does not request a reset as other places in the driver read
this register, so most likely the updated value of sysconfig setting
the reset bit is supposed to be written to the register to request a
reset before the polling loop that waits for the reset to finish.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D34856
2022-04-18 14:09:20 -07:00
Brooks Davis
c2f6aae007
machine/in_cksum.h: don't include sys/cdefs.h
...
All consumers already do it and it was required on amd64 and i386
until recently (1c1bf5bd7c ).
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D34932
2022-04-18 21:02:19 +01:00
John Baldwin
dca7f69632
as3722_gpio_pin_setflags: Use computed mode instead of hardcoded PUSHPULL.
...
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D34855
2022-04-18 12:28:48 -07:00
John Baldwin
43629a8b18
arm freescale: Remove unused variables.
2022-04-13 16:08:22 -07:00
John Baldwin
9ad5422f27
arm sp804: Remove unused variables.
2022-04-13 16:08:22 -07:00
John Baldwin
09f2892eee
arm vybrid: #if 0 variables only used under #if 0.
2022-04-13 16:08:22 -07:00
John Baldwin
69c595ed7f
arm: Use __diagused for variables only used in KASSERT().
2022-04-13 16:08:22 -07:00
John Baldwin
e4746e3fe4
bcm2835_systimer: Remove unused variable.
2022-04-13 16:08:22 -07:00
John Baldwin
d101d57321
arm dbg: Use PCPU_GET(cpuid) directly in assertions.
2022-04-13 16:08:21 -07:00
Julien Cassette
3a6f0bb25f
aw_wdog: support Allwinner D1 watchdog
...
This device is present on the Allwinner D1-based SoCs. Without this
driver, the watchdog timeout will trigger a reset a few seconds after
control is given to the kernel.
Reviewed By: manu, mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34749
2022-04-12 19:51:17 -03:00
John Baldwin
3d6f4411e4
Remove checks for <sys/cdefs.h> being included.
...
These files no longer depend on the macros required when these checks
were added.
PR: 263102 (exp-run)
Reviewed by: brooks, imp, emaste
Differential Revision: https://reviews.freebsd.org/D34804
2022-04-12 10:06:18 -07:00
John Baldwin
5f9c9ae2f2
Remove checks for __CC_SUPPORTS_WARNING assuming it is always true.
...
All supported compilers (modern versions of GCC and clang) support
this.
PR: 263102 (exp-run)
Reviewed by: brooks, imp
Differential Revision: https://reviews.freebsd.org/D34803
2022-04-12 10:06:13 -07:00
John Baldwin
0d46a96abf
arm ti: Remove unused variables.
2022-04-08 18:31:30 -07:00
John Baldwin
ce71fb38d9
ti_adc: Use void cast instead of a dummy variable.
2022-04-08 18:31:30 -07:00
John Baldwin
5431925300
ti_prm: Use existing dev in debug traces and remove unused sc.
2022-04-08 18:31:30 -07:00
John Baldwin
b03cdf3d30
arm ti_scm_syscon: Remove unused variable.
...
Note that bus_generic_probe never fails.
2022-04-08 18:31:30 -07:00
John Baldwin
1624badace
imx6_ssi: Remove unused variables, #if 0 variables only used under #if 0.
2022-04-08 18:31:29 -07:00
John Baldwin
4f6be8c788
bcm2835_audio_callback: Don't process garbage if there is no message.
...
If vchi_msg_dequeue failed due to an empty queue, return rather than
treating stack garbage as a valid message.
2022-04-08 18:31:29 -07:00
John Baldwin
4b9b6a501a
arm/arm64 nvidia: Remove unused variables.
2022-04-08 18:31:29 -07:00
John Baldwin
c16bfb03cb
arm mv: Remove unused variables.
2022-04-08 18:31:29 -07:00
John Baldwin
6a51437fa0
arm_add_efi_map_entries: Remove unused variable.
2022-04-08 17:30:14 -07:00
John Baldwin
c25277bfff
a37x0_xtal: Remove unused variable.
2022-04-08 17:25:15 -07:00
John Baldwin
34df2dfa51
bcm2835_gpio: Remove unused variable.
...
This was a static local (i.e. a global variable) which was probably
not intended.
2022-04-08 17:25:15 -07:00
John Baldwin
8d1e57a1a8
aw_clk_nkmp: Remove unused variables.
2022-04-08 17:25:15 -07:00
John Baldwin
bce1b42f99
aw_gmacclk: Remove unused variables.
2022-04-08 17:25:14 -07:00
John Baldwin
a0aa910fd4
emac_drain_rxfifo: Use a void cast instead of a dummy variable.
2022-04-08 17:25:14 -07:00
John Baldwin
533b6ecfdc
Pass the computed enum of the correct type to dbg_setup_watchpoint.
...
The two sets of constants happen to have the same values, so this is
just a cosmetic fix.
2022-04-08 17:25:14 -07:00
John Baldwin
0ed1db1aad
arm bus_dma_tag_destroy: Move dmat_copy under #ifdef KTR.
2022-04-08 17:25:14 -07:00
Warner Losh
e10ac1ed2c
fdt_win_process_child: eliminate write only size variable
...
Sponsored by: Netflix
2022-04-04 22:29:16 -06:00
Warner Losh
624f60ca03
platform_mpp_init: eliminate write only tuples variable
...
Sponsored by: Netflix
2022-04-04 22:29:15 -06:00
Warner Losh
b20f0f7247
mv_rtc_attach: eliminate write only unit variable
...
Sponsored by: Netflix
2022-04-04 22:29:13 -06:00
Warner Losh
feb08ab0cf
vfp_init: eliminate fpexc write only variable
...
Sponsored by: Netflix
2022-04-04 22:29:12 -06:00
Warner Losh
80f33a69a8
sendsig: eliminate write only code variable
...
Sponsored by: Netflix
2022-04-04 22:29:10 -06:00