Commit Graph

274386 Commits

Author SHA1 Message Date
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
Milan Obuch 34f4c17a2b cgem: support SGMII PHY connection mode
As the PolarFire SoC needs SGMII to connect the PHY, check the
'phy-mode' property of device tree node for ethernet and act on it
appropriately.

Add the compatible strings for the PolarFire SoC device tree.
'microchip,mpfs-mss-gem" is not officially documented but has been
observed in the available firmware for this platform, so it is included
for now.

Also, fix a typo in if_cgem_hw.h.

Reviewed by:	mhorne
MFC after:	1 week
Sponsored by:	Conclusive Engineering
Differential Revision: https://reviews.freebsd.org/D34764
2022-04-12 19:51:17 -03:00
Milan Obuch 66cc0c61b0 cgem: rework hardware quirk detection
Rather than doing these checks based on the detected hardware variant, allow
quirks to be specified as a set of flags for each compatible string.
This simplifies adding support for new compatible hardware.

Reviewed by:	mhorne
MFC after:	1 week
Sponsored by:	Conclusive Engineering
Differential Revision:	https://reviews.freebsd.org/D34764
2022-04-12 19:51:17 -03:00
John Baldwin 86fa80f320 rack: Remove unused variable. 2022-04-12 14:59:00 -07:00
John Baldwin 113925b0b3 syscons VGA draw_txtcharcursor: Move sc under #ifndef SC_NO_FONT_LOADING. 2022-04-12 14:59:00 -07:00
John Baldwin c3b1cbc9e6 mlx5 RATELIMIT: Remove an unused variable. 2022-04-12 14:59:00 -07:00
John Baldwin 1ae22e62e4 infiniband: Disable -Wunused-but-set-variable for a few more OFED files. 2022-04-12 14:58:59 -07:00
John Baldwin 90948e8c2e sctp: Remove unused variable. 2022-04-12 14:58:59 -07:00
John Baldwin bab34d6349 in_pcboutput_txrtlmt: Remove unused variable. 2022-04-12 14:58:59 -07:00
John Baldwin 6d5f002ed1 netgraph: Remove the rethook parameter from NG_NODE_FOREACH_HOOK.
This parameter was set to the hook that terminated the iteration
early.  However, none of the remaining callers used this argument and
it was always set to an otherwise-unused variable.
2022-04-12 14:58:59 -07:00
John Baldwin fa351643f5 netgraph: Remove unused variable. 2022-04-12 14:58:59 -07:00
John Baldwin 72ff256c51 sched_4bsd: Remove unused variables. 2022-04-12 14:58:59 -07:00
John Baldwin dbd51c416a realloc(9): Move slab and zone under #ifndef DEBUG_REDZONE. 2022-04-12 14:58:59 -07:00
John Baldwin fdf288f39d sc: Move prev_ysize under #ifndef SC_NO_HISTORY. 2022-04-12 14:58:59 -07:00
John Baldwin e4d4beba43 isp: Remove unused variable. 2022-04-12 14:58:59 -07:00
John Baldwin 3ef2d49e7d arswitch: Remove unused variable. 2022-04-12 14:58:59 -07:00
John Baldwin f602f7e6f7 opalflash: Remove unused variable. 2022-04-12 14:58:59 -07:00
John Baldwin 01d643ae93 ps3fb: Remove unused variable. 2022-04-12 14:58:59 -07:00
John Baldwin b2a8b342f3 llan: Remove unused variables.
In theory the errors during llan_attach should be handled, but other
errors in llan_attach (e.g. bus_setup_intr) are already ignored, so
just remove the unused variable to preserve the status quo.
2022-04-12 14:58:59 -07:00
John Baldwin 7e7f7b91d0 powerpc cpudep_ap_setup: Quite unused variable warnings. 2022-04-12 14:58:59 -07:00
John Baldwin 16471f4716 ppc hwpmc: Remove unused variables. 2022-04-12 14:58:58 -07:00
John Baldwin da8b238529 powerpc: Remove unused variables. 2022-04-12 14:58:58 -07:00
John Baldwin b7fe00faea powerpc pmu: Quiet set but unused warnings.
- Remove unused variables.

- Replace a dummy variable with a void cast.
2022-04-12 14:58:58 -07:00
John Baldwin 5f2995aa95 powerpc pmu: Don't use garbage battery info.
If pmu_query_battery fails, don't notify a change in battery status.

Reviewed by:	jhibbits
Differential Revision:	https://reviews.freebsd.org/D34889
2022-04-12 14:58:58 -07:00
John Baldwin 2ad93a4f6b grackle badaddr: Use void casts instead of a dummy variable. 2022-04-12 14:58:58 -07:00
John Baldwin 9c861e931c cuda: Remove unused variables. 2022-04-12 14:58:58 -07:00
John Baldwin 6e31d66849 ata_dbdma_dmainit: Remove unused variable. 2022-04-12 14:58:58 -07:00
John Baldwin 019493db3e ata_kauai: Remove unused variable. 2022-04-12 14:58:58 -07:00
John Baldwin 6d0f9c91cb powerpc cpufreq: Remove unused variables. 2022-04-12 14:58:58 -07:00
John Baldwin c9d26ca24c ppc mmoea64: Workaround set but unused warnings for RB_NEXT.
Inline the unused expression passed as the second argument to RB_NEXT.
2022-04-12 14:58:58 -07:00
John Baldwin 8d95af873f ppc aim flush_disable_caches: Use void casts instead of a dummy variable. 2022-04-12 14:58:58 -07:00
John Baldwin b8ef5a7ea0 sound aoa: Mark variable only used in debug trace as unused. 2022-04-12 14:58:58 -07:00
John Baldwin 124b6786e4 powermac_nvram: Actually return EBUSY on error from open. 2022-04-12 14:58:58 -07:00
John Baldwin 773cfd2bf8 adt746x: Remove unused variables. 2022-04-12 14:58:58 -07:00
John Baldwin 9a0cd76bb0 riscv bounce_bus_dma_tag_destroy: Silence set but unused warning. 2022-04-12 14:58:57 -07:00
John Baldwin 8209266cab if_xae: Remove unused variables. 2022-04-12 14:58:57 -07:00
John Baldwin 0146e4ce2f axidma: Remove unused variables. 2022-04-12 14:58:57 -07:00
John Baldwin 9e420b3742 uart_dev_lowrisc: Remove unused variables in stub functions. 2022-04-12 14:58:57 -07:00
John Baldwin d8e7d35acf iicoc: Remove unused variable. 2022-04-12 14:58:57 -07:00
Christian Brueffer 320686674b Fix a slew of mdoc warnings/errors. 2022-04-12 23:53:48 +02:00
John Baldwin 4eb43c2c46 KTR: Add CTR() and TR() macros which accept a variable number of arguments.
These can be used in place of the CTRn() macros which require n to match
the number of optional arguments.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D34852
2022-04-12 14:52:25 -07:00
John Baldwin c434b26cf3 i40e_validate_filter_settings: Remove unused variables.
Reviewed by:	erj
Differential Revision:	https://reviews.freebsd.org/D34829
2022-04-12 14:51:44 -07:00
Mark Johnston d769609620 tty: Remove an incorrect assertion from ttyinq_line_iterate()
We may legitimately have tib == NULL if we're at the very end of the
queue.

PR:		215373
Reported by:	pho
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2022-04-12 17:30:04 -04:00
Mark Johnston 6e563a1b60 libctf: Fix recursive descent into anonymous SOU fields
PR:		262412
Tested by:	dhw, gallatin
Fixes:		a6fb869173 ("libctf: Handle CTFv3 containers")
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2022-04-12 17:29:53 -04:00
Colin Percival 0967f7030c Install the recently added posix.mk file
This enables POSIX compatibility for Makefiles which start with
.POSIX:

Submitted by:	sjg
2022-04-12 13:05:55 -07:00
Olivier Cochard abdcd967dc Add new french bépo keyboard layout (version 1.1rc2) normalized by
French national organization for standardization as "NF Z71‐300"
PR:		160227
Approved by:	emaste
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D34886
2022-04-12 20:55:33 +02:00
Martin Matuska 7ec51a3e2b libarchive: import changes from upstream
Libarchive 3.6.1

Bug fixes:
  PR #1549: archive_digest: check return value of EVP_DigestInit()

PR:		263146 (exp-run)
MFC after:	1 week
2022-04-12 20:14:04 +02:00
John Baldwin 6e3168c85d <sys/_stdarg.h>: Fix indentation after removing __GNUCLIKE checks. 2022-04-12 10:12:13 -07: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