]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agomt(3): Fix a typo in the manual page
Gordon Bergling [Wed, 6 Apr 2022 16:41:08 +0000 (18:41 +0200)]
mt(3): Fix a typo in the manual page

- s/mulitple/multiple/

MFC after: 3 days

2 years agong_btsocket(4): Fix a typo in an error message
Gordon Bergling [Wed, 6 Apr 2022 16:27:29 +0000 (18:27 +0200)]
ng_btsocket(4): Fix a typo in an error message

- s/mulitplexor/multiplexor/

MFC after: 5 days

2 years agolinux(4): Fix a typo in itimerspec conversion routine.
Dmitry Chagin [Wed, 6 Apr 2022 14:40:00 +0000 (17:40 +0300)]
linux(4): Fix a typo in itimerspec conversion routine.

MFC after: 3 days

2 years agoDisable the physmem test for now
Andrew Turner [Wed, 6 Apr 2022 14:02:10 +0000 (15:02 +0100)]
Disable the physmem test for now

It fails to build on at least i386

2 years agoHandle non-page aligned/sized memory in physmem
Andrew Turner [Mon, 28 Mar 2022 11:37:09 +0000 (12:37 +0100)]
Handle non-page aligned/sized memory in physmem

In some configurations the firmware may pass memory regions that are
not page sized or aligned, e.g. when using 16k pages on arm64. If this
is the case we will calculate many small regions because the alignment
is applied before being inserted. As we round the start up and end down
this will leave a 1 page hole between what should have been a single
region.

Fix by keeping the original alignment until we are just about to insert
the region into the avail array.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34694

2 years agoPort subr_physmem to userspace and add tests
Andrew Turner [Mon, 28 Mar 2022 10:20:29 +0000 (11:20 +0100)]
Port subr_physmem to userspace and add tests

These give us some confidience we haven't broken anything in early
boot code that may be running before the console.

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34691

2 years agoFix a coherent bus check in the arm64 busdma
Andrew Turner [Mon, 4 Apr 2022 09:28:59 +0000 (10:28 +0100)]
Fix a coherent bus check in the arm64 busdma

In the arm64 busdma we have an internal flag to signal when a tag is
for a cache-coherent device. In this case we don't need to adjust the
size and alignment of allocated buffers to be within a cache line.

The cache line adjustment was incorrectly using the coherent flag
passed in to bus_dma_tag_create and not the internal flag. Fix it to
use the latter to reduce the memory usage slightly.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34763

2 years agoMove the arm64 DMAP creation to C
Andrew Turner [Tue, 15 Mar 2022 17:05:48 +0000 (17:05 +0000)]
Move the arm64 DMAP creation to C

To simplify the creation of the direct map (DMAP) region on arm64 move
it from the pre-C code into pmap. This simplifies the DMAP creation
as we can use the notmal index macros, and should reduce the number
of pages needed to hold the level 1 tables to just those needed.

Reviewed by: alc, dch
Tested by: dch, kevans
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34568

2 years agostress2: Add new write(2) test. Remove sctp.sh after problem fixed
Peter Holm [Wed, 6 Apr 2022 05:25:17 +0000 (07:25 +0200)]
stress2: Add new write(2) test. Remove sctp.sh after problem fixed

2 years agostress2: Added a write(2) fuzz test scenario
Peter Holm [Wed, 6 Apr 2022 05:24:42 +0000 (07:24 +0200)]
stress2: Added a write(2) fuzz test scenario

2 years agoneta: remove write only variable
Warner Losh [Wed, 6 Apr 2022 02:03:04 +0000 (20:03 -0600)]
neta: remove write only variable

Sponsored by: Netflix

2 years agomxge: Remove write only variables, mark ifp __unused
Warner Losh [Wed, 6 Apr 2022 02:02:39 +0000 (20:02 -0600)]
mxge: Remove write only variables, mark ifp __unused

Sponsored by: Netflix

2 years agomsk: Remove write only variables, but leave hardware reads in place
Warner Losh [Wed, 6 Apr 2022 02:01:47 +0000 (20:01 -0600)]
msk: Remove write only variables, but leave hardware reads in place

Sponsored by: Netflix

2 years agomwl: Remove write only variables, but leave hardware reads in place
Warner Losh [Wed, 6 Apr 2022 02:01:33 +0000 (20:01 -0600)]
mwl: Remove write only variables, but leave hardware reads in place

Sponsored by: Netflix

2 years agomalo: Remove write only variables, but leave hardware reads in place
Warner Losh [Wed, 6 Apr 2022 02:01:22 +0000 (20:01 -0600)]
malo: Remove write only variables, but leave hardware reads in place

Sponsored by: Netflix

2 years agointpm: Remove write only variables, tag slvcnt unused since it's used for debugging
Warner Losh [Wed, 6 Apr 2022 02:00:42 +0000 (20:00 -0600)]
intpm: Remove write only variables, tag slvcnt unused since it's used for debugging

Sponsored by: Netflix

2 years agoipmi: Remove write only variables used to read form hardware
Warner Losh [Wed, 6 Apr 2022 02:00:29 +0000 (20:00 -0600)]
ipmi: Remove write only variables used to read form hardware

Sponsored by: Netflix

2 years agohwpmc_arm64: remove write only variables and the computations they do
Warner Losh [Wed, 6 Apr 2022 01:59:18 +0000 (19:59 -0600)]
hwpmc_arm64: remove write only variables and the computations they do

Sponsored by: Netflix

2 years agoflexspi: In flex_spi_task remove dev, it's write only
Warner Losh [Wed, 6 Apr 2022 01:58:55 +0000 (19:58 -0600)]
flexspi: In flex_spi_task remove dev, it's write only

Sponsored by: Netflix

2 years agoena: Remove write only variables
Warner Losh [Wed, 6 Apr 2022 01:58:03 +0000 (19:58 -0600)]
ena: Remove write only variables

Sponsored by: Netflix

2 years agocas: Mark work3 as unused: we apparently need to read it from hardware, but ignore...
Warner Losh [Wed, 6 Apr 2022 01:57:46 +0000 (19:57 -0600)]
cas: Mark work3 as unused: we apparently need to read it from hardware, but ignore its value

Sponsored by: Netflix

2 years agozstd: Supress set but unused warnings for zstd_compress_superblock.c
Warner Losh [Tue, 5 Apr 2022 23:18:13 +0000 (17:18 -0600)]
zstd: Supress set but unused warnings for zstd_compress_superblock.c

Sponsored by: Netflix

2 years agofix integer overflow bugs in *stosbt
Warner Losh [Wed, 6 Apr 2022 03:35:27 +0000 (21:35 -0600)]
fix integer overflow bugs in *stosbt

68f57679d660 Fixed another class of integer overflows, but introduced a
boundary condition for 2-4s in ns conversion, 2-~4000s in us conversions
and 2-~4,000,000s in ms conversions. This was because we bogusly used
SBT_1S for the notion of 1 second, instead of the appropriate power of
10. To fix, just use the appropriate power of 10, which avoids these
overflows.

This caused some sleeps in ZFS to be on the order of an hour.

MFC: 1 day
PR: 263073
Sponsored by: Netflix
Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D34790

2 years agocp: fix -R recursion detection
Kyle Evans [Wed, 6 Apr 2022 01:40:53 +0000 (20:40 -0500)]
cp: fix -R recursion detection

The correct logic is a lot simpler than the previous iteration.  We
record the base fts_name to avoid having to worry about whether we
needed the root symlink name or not (as applicable), then we can simply
shift all of that logic to after path translation to make it less
fragile.

If we're copying to DNE, then we'll have swapped out the NULL root_stat
pointer and then attempted to recurse on it.  The previously nonexistent
directory shouldn't exist at all in the new structure, so just back out
from that tree entirely and move on.

The tests have been amended to indicate our expectations better with
subdirectory recursion.  If we copy A to A/B, then we expect to copy
everything from A/B/* into A/B/A/B, with exception to the A that we
create in A/B.

Reviewed by: bapt
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D34655

2 years agonet80211: validate Mesh ID length in ieee80211_parse_beacon
Bjoern A. Zeeb [Tue, 5 Apr 2022 22:58:28 +0000 (22:58 +0000)]
net80211: validate Mesh ID length in ieee80211_parse_beacon

Reported by: m00nbsd working with Trend Micro Zero Day Initiative

2 years agobhyve: validate e82545 checksum offset field
Mark Johnston [Tue, 5 Apr 2022 22:58:28 +0000 (22:58 +0000)]
bhyve: validate e82545 checksum offset field

Reported by: Mehdi Talbi, Synacktiv

2 years agosuppress set but not used warnings for kernel builds
Robert Wing [Tue, 5 Apr 2022 21:28:54 +0000 (13:28 -0800)]
suppress set but not used warnings for kernel builds

Use -Wno-unused-but-set-variable for kernel builds with clang13.

To turn this warning back on, set the following in src.conf:
    WITH_SET_BUT_NOTUSED_KERNEL_WARNINGS=

Reviewed by: mjg, imp
Differential Revision: https://reviews.freebsd.org/D34784

2 years agobcm5874: Add opt_usb.h for module dependency
Warner Losh [Tue, 5 Apr 2022 19:44:50 +0000 (13:44 -0600)]
bcm5874: Add opt_usb.h for module dependency

Sponsored by: Netflix

2 years agocc: Add opt_kern_tls.h to all congestion modules
Warner Losh [Tue, 5 Apr 2022 19:42:55 +0000 (13:42 -0600)]
cc: Add opt_kern_tls.h to all congestion modules

All congestion controll modules need opt_kern_tls.h, make sure it's
listed everywhere.

Sponsored by: Netflix

2 years agomii: Add opt_platform.h to all miibus drivers
Warner Losh [Tue, 5 Apr 2022 19:40:01 +0000 (13:40 -0600)]
mii: Add opt_platform.h to all miibus drivers

miivar.h includes opt_platform.h. Make sure all the drivers that use the
miibus_if.h interface file have opt_platform.h as well. While some of
these may not, strictly speaking, need it, it's easier to include it
universally for miibus.

Sponsored by: Netflix

2 years agoconfig.mk: Add opt_platform.h support
Warner Losh [Tue, 5 Apr 2022 19:39:09 +0000 (13:39 -0600)]
config.mk: Add opt_platform.h support

opt_platform.h is now included from miivar.h, so add support for
generating it in the standalone build case.

Sponsored by: Netflix

2 years agobwi: Mark write-only variable as __unused
Warner Losh [Tue, 5 Apr 2022 19:09:27 +0000 (13:09 -0600)]
bwi: Mark write-only variable as __unused

We read TX_STATUS1 to acknowledge a TX interrupt. We don't use this
value for anything, so mark it as unused. We may be able to eliminate
this read, but since this hardware is poorly documented and difficult to
test, I'm leaving the read in place.

Sponsored by: Netflix

2 years agobwi: Remove write-only variable
Warner Losh [Tue, 5 Apr 2022 19:07:20 +0000 (13:07 -0600)]
bwi: Remove write-only variable

bbp_atten is write-only: we don't use it later in
bwi_rf_calc_nrssi_slope_11b. However, we may also be able to eliminate
the read of this value from the device. However, The documationation for
this hardware is thing and I can't test this card so I've left the read
of this register in case it's required.

Sponsored by: Netflix

2 years agobce: Mark a few debugging variables as unused.
Warner Losh [Tue, 5 Apr 2022 19:03:41 +0000 (13:03 -0600)]
bce: Mark a few debugging variables as unused.

Sponsored by: Netflix

2 years agosavecore: include '-u' flag in usage message
Mitchell Horne [Tue, 5 Apr 2022 19:20:42 +0000 (16:20 -0300)]
savecore: include '-u' flag in usage message

Reported by: Pau Amma <pauamma@gundo.com>
Fixes bc7ed46b635e ("Add '-u' switch that would...")
MFC after: 3 days

2 years agolivedump: add event handler hooks
Mitchell Horne [Thu, 6 Jan 2022 19:40:16 +0000 (15:40 -0400)]
livedump: add event handler hooks

Add three hooks to the livedump process: before, after, and for each
block of dumped data. This allows, for example, quiescing the system
before the dump begins or protecting data of interest to ensure its
consistency in the final output.

Reviewed by: markj, kib (previous version)
Reviewed by: debdrup (manpages)
Reviewed by: Pau Amma <pauamma@gundo.com> (manpages)
MFC after: 3 weeks
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D34067

2 years agoAdd new vnode dumper to support live minidumps
Mitchell Horne [Tue, 23 Mar 2021 20:47:14 +0000 (17:47 -0300)]
Add new vnode dumper to support live minidumps

This dumper can instantiate and write the dump's contents to a
file-backed vnode.

Unlike existing disk or network dumpers, the vnode dumper should not be
invoked during a system panic, and therefore is not added to the global
dumper_configs list. Instead, the vnode dumper is constructed ad-hoc
when a live dump is requested using the new ioctl on /dev/mem. This is
similar in spirit to a kgdb session against the live system via
/dev/mem.

As described briefly in the mem(4) man page, live dumps are not
guaranteed to result in a usuable output file, but offer some debugging
value where forcefully panicing a system to dump its memory is not
desirable/feasible.

A future change to savecore(8) will add an option to save a live dump.

Reviewed by: markj, Pau Amma <pauamma@gundo.com> (manpages)
Discussed with: kib
MFC after: 3 weeks
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D33813

2 years agoSplit out dumper allocation from list insertion
Mitchell Horne [Mon, 9 Aug 2021 17:21:07 +0000 (14:21 -0300)]
Split out dumper allocation from list insertion

Add a new function, dumper_create(), to allocate a dumper.
dumper_insert() will call this function and retains the existing
behaviour.

This is desirable for performing live dumps of the system. Here, there
is a need to allocate and configure a dumper structure that is invoked
outside of the typical debugger context. Therefore, it should be
excluded from the list of panic-time dumpers.

free_single_dumper() is made public and renamed to dumper_destroy().

Reviewed by: kib, markj
MFC after: 1 week
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D34068

2 years agomem(4): Improve ioctl section formatting
Mitchell Horne [Thu, 24 Feb 2022 16:15:17 +0000 (12:15 -0400)]
mem(4): Improve ioctl section formatting

Add the missing .El which fixes the indentation of the memory range
definitions and operation. Add subsection headings to further clarify
this section. Do the same for the RETURN VALUES section, and mention
explicitly that MEM_EXTRACT_PADDR always returns zero.

Reviewed by: markj, 0mp, Pau Amma <pauamma@gundo.com>
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D34574

2 years agoUnbreak the build: Also define NFSV42_OLDNPROCS here.
Warner Losh [Tue, 5 Apr 2022 17:54:20 +0000 (11:54 -0600)]
Unbreak the build: Also define NFSV42_OLDNPROCS here.

If nfsproto.h is included before nfsport.h, then NFSV42_OLDNPROCS would
be undefined when it is used in struct nfsstatsov1.

Sponsored by: Netflix

2 years agonfscl: Add support for a NFSv4 AppendWrite RPC
Rick Macklem [Tue, 5 Apr 2022 15:11:37 +0000 (08:11 -0700)]
nfscl: Add support for a NFSv4 AppendWrite RPC

For IO_APPEND VOP_WRITE()s, the code first does a
Getattr RPC to acquire the file's size, before it
can do the Write RPC.

Although NFS does not have an append write operation,
an NFSv4 compound can use a Verify operation to check
that the client's notion of the file's size is
correct before doing the Write operation.

This patch prepares the NFSv4 client for such an
RPC, which will be added in a future commit.

This patch does not cause any semantics change.

2 years agomrsas: if controller reset is in progress, refrain from firing DCMDs to
Chandrakanth Patil [Fri, 21 Jan 2022 09:24:37 +0000 (14:54 +0530)]
mrsas: if controller reset is in progress, refrain from firing DCMDs to
firmware in shutdown

If controller reset is in progress, at same time if system shutdown is
issued then corresponding shutdown function in driver will be invoked
where driver is waiting 15 seconds to complete the controller reset.

If the reset is not complteted within that time frame driver will go
ahead and fire cache flush and shutdown DCMDs which will end up
accessing the the queues which are not initialized due to undergoing
reset leads to FMU error in firmware.

Fix:
In shutdown function, if controller reset is not finished within 15
seconds than driver will return to the OS without firing any DCMDs.

Reviewed by: imp
PR: 261375

2 years agomrsas: remove additional MPT command allocation for R1 FP command
Chandrakanth Patil [Fri, 21 Jan 2022 12:11:49 +0000 (17:41 +0530)]
mrsas: remove additional MPT command allocation for R1 FP command

There is an additional MPT command allocation for R1 fp command which
will lead to MPT command unavailablity in case of rigorous R1 FP IOs.

Remove additional MPT command allocation for R1 FP.

Reviewed by: imp
PR: 261377

2 years agotcp cc: don't recurse on non recursive mutex
Michael Tuexen [Tue, 5 Apr 2022 11:50:49 +0000 (13:50 +0200)]
tcp cc: don't recurse on non recursive mutex

This issue was found by syzkaller.

Reviewed by: rrs
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D34743

2 years agostress2: Added a syzkaller reproducer
Peter Holm [Tue, 5 Apr 2022 08:47:27 +0000 (10:47 +0200)]
stress2: Added a syzkaller reproducer

2 years agolocales: fix installation of some collation files
Baptiste Daroussin [Tue, 5 Apr 2022 07:12:24 +0000 (09:12 +0200)]
locales: fix installation of some collation files

When the unicode locales files where split off the non unicode locales
be_BY.ISO8859-5 and ca_IT.ISO8859-15 where non installed one due to
a typo, the other one was just missing its entry in the Makefile.

It was only notice a year later, by some postgres developpers as it was
breaking some of their tests.

Reported by: tmunro

2 years agolinuxkpi: move io_mapping_create_wc to .c
Warner Losh [Tue, 5 Apr 2022 05:06:37 +0000 (23:06 -0600)]
linuxkpi: move io_mapping_create_wc to .c

Move io_mapping_create_wc to .c because it encodes the size of struct
io_mapping so we move this from the client module to the linuxkpi
module.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34776

2 years agolinuxkpi: Move lkpi_pcim_iomap_devres_find to .c file
Warner Losh [Tue, 5 Apr 2022 05:06:29 +0000 (23:06 -0600)]
linuxkpi: Move lkpi_pcim_iomap_devres_find to .c file

lkpi_pcim_iomap_devres_find encodes the size of struct pcim_iomap_devres
in the code, so move from .h to .c to move from client driver to
linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34775

2 years agolinuxkpi: Move pci_alloc_irq_vectors to .c file
Warner Losh [Tue, 5 Apr 2022 05:06:21 +0000 (23:06 -0600)]
linuxkpi: Move pci_alloc_irq_vectors to .c file

pci_alloc_irq_vectors encodes the size of struct msix_entry
into its code. Move from .h to .c to move this knowledge from
client modules to linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34774

2 years agolinuxkpi: Move pci_request_region and _lkpi_pci_iomap into .c
Warner Losh [Tue, 5 Apr 2022 05:06:14 +0000 (23:06 -0600)]
linuxkpi: Move pci_request_region and _lkpi_pci_iomap into .c

Both pci_request_region and _lkpi_pci_iomap encode the size of struct
pci_mmio_region into their code. Move from .h to .c files to move that
knowledge from the client drivers into the linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34773

2 years agolinuxkpi: Move lkpi_pci_devres_get_alloc into .c file
Warner Losh [Tue, 5 Apr 2022 05:06:06 +0000 (23:06 -0600)]
linuxkpi: Move lkpi_pci_devres_get_alloc into .c file

lkpi_pci_devres_get_alloc encodes the struct pci_devres into its
code. Move from .h file to .c file to move this knowledge into linuxkpi
module.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34772

2 years agolinuxkpi: Move cdev_alloc into .c file
Warner Losh [Tue, 5 Apr 2022 05:05:59 +0000 (23:05 -0600)]
linuxkpi: Move cdev_alloc into .c file

Move cdev_alloc into linux_compat.c since it encodes the size of struct
linux_cdev into the client modules otherwise.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34771

2 years agolinuxkpi: Remove write only variable from lkpi_iicbb_reset
Warner Losh [Tue, 5 Apr 2022 05:05:52 +0000 (23:05 -0600)]
linuxkpi: Remove write only variable from lkpi_iicbb_reset

Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34770

2 years agolinuxkpi: Move class_create to .c file
Warner Losh [Tue, 5 Apr 2022 05:05:43 +0000 (23:05 -0600)]
linuxkpi: Move class_create to .c file

class_create encodes the size of struct class into the generated
code. Move from .h file to .c file to move this knowledge from the
client modules that call this into the linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34769

2 years agolinuxkpi: Move device_create_groups_vargs to linux_compat.c
Warner Losh [Tue, 5 Apr 2022 05:05:36 +0000 (23:05 -0600)]
linuxkpi: Move device_create_groups_vargs to linux_compat.c

device_create_groups_vargs encodes the size of struct device. Move
definition from .h to .c to move this size into the linuxkpi module
rather than encoding it in all client driver modules.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34768

2 years agolinuxkpi: move kobject_create to .c file
Warner Losh [Tue, 5 Apr 2022 05:05:26 +0000 (23:05 -0600)]
linuxkpi: move kobject_create to .c file

kobject_create knows the size of struct kobject. Move it to
linux_compat.c so this knowledge is confined to the loadable module and
not the clients.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34767

2 years agosvc_vc_rendezvous_stat: eliminiate write only variable stat
Warner Losh [Tue, 5 Apr 2022 02:43:03 +0000 (20:43 -0600)]
svc_vc_rendezvous_stat: eliminiate write only variable stat

Sponsored by: Netflix

2 years agoclnt_vc_destroy: eliminiate write only variable stat
Warner Losh [Tue, 5 Apr 2022 02:42:37 +0000 (20:42 -0600)]
clnt_vc_destroy: eliminiate write only variable stat

Sponsored by: Netflix

2 years agokrpc_call: eliminiate write only variable nam
Warner Losh [Tue, 5 Apr 2022 02:42:08 +0000 (20:42 -0600)]
krpc_call: eliminiate write only variable nam

Sponsored by: Netflix

2 years agobootpc_decode_reply: eliminiate write only variable ip
Warner Losh [Tue, 5 Apr 2022 02:41:28 +0000 (20:41 -0600)]
bootpc_decode_reply: eliminiate write only variable ip

Sponsored by: Netflix

2 years agosmb_smb_treedisconnect: eliminate write only variable mbp
Warner Losh [Tue, 5 Apr 2022 02:40:38 +0000 (20:40 -0600)]
smb_smb_treedisconnect: eliminate write only variable mbp

Sponsored by: Netflix

2 years agosmb_iod_main: eliminate write only variable error
Warner Losh [Tue, 5 Apr 2022 02:40:16 +0000 (20:40 -0600)]
smb_iod_main: eliminate write only variable error

Sponsored by: Netflix

2 years agopim6_input: eliminate write only variable rc
Warner Losh [Tue, 5 Apr 2022 02:39:25 +0000 (20:39 -0600)]
pim6_input: eliminate write only variable rc

Sponsored by: Netflix

2 years agosysctl_dumpentry: move error to inner scope
Warner Losh [Tue, 5 Apr 2022 02:38:56 +0000 (20:38 -0600)]
sysctl_dumpentry: move error to inner scope

Sponsored by: Netflix

2 years agoroute_ctl: eliminate write only variables ifa and nh
Warner Losh [Tue, 5 Apr 2022 02:37:59 +0000 (20:37 -0600)]
route_ctl: eliminate write only variables ifa and nh

Sponsored by: Netflix

2 years agoget_nhop: eliminate write only variable gateway
Warner Losh [Tue, 5 Apr 2022 02:37:22 +0000 (20:37 -0600)]
get_nhop: eliminate write only variable gateway

Sponsored by: Netflix

2 years agoxl_attach: eliminate write only variable unit
Warner Losh [Tue, 5 Apr 2022 02:33:25 +0000 (20:33 -0600)]
xl_attach: eliminate write only variable unit

Sponsored by: Netflix

2 years agovtpci_legacy_register_msix: eliminate write only variable dev
Warner Losh [Tue, 5 Apr 2022 02:33:01 +0000 (20:33 -0600)]
vtpci_legacy_register_msix: eliminate write only variable dev

Sponsored by: Netflix

2 years agoustorage_fs_verify: eliminate write only variables file_offset and file_offset
Warner Losh [Tue, 5 Apr 2022 02:31:54 +0000 (20:31 -0600)]
ustorage_fs_verify: eliminate write only variables file_offset and file_offset

Sponsored by: Netflix

2 years agomgue: eliminate write only variables ret, err and error
Warner Losh [Tue, 5 Apr 2022 02:31:06 +0000 (20:31 -0600)]
mgue: eliminate write only variables ret, err and error

Sponsored by: Netflix

2 years agocp2112iic_intr_write_callback: eliminate write only variable psc
Warner Losh [Tue, 5 Apr 2022 02:29:43 +0000 (20:29 -0600)]
cp2112iic_intr_write_callback: eliminate write only variable psc

Sponsored by: Netflix

2 years agowsp_intr_callback: eliminate write only variable h
Warner Losh [Tue, 5 Apr 2022 02:29:20 +0000 (20:29 -0600)]
wsp_intr_callback: eliminate write only variable h

Sponsored by: Netflix

2 years agouss820dci: eliminate unused variables sc, ep_no
Warner Losh [Tue, 5 Apr 2022 02:28:29 +0000 (20:28 -0600)]
uss820dci: eliminate unused variables sc, ep_no

Sponsored by: Netflix

2 years agouhci_xfer_setup: eliminate write only variable sc
Warner Losh [Tue, 5 Apr 2022 02:27:58 +0000 (20:27 -0600)]
uhci_xfer_setup: eliminate write only variable sc

Sponsored by: Netflix

2 years agomusb: eliminate write only variable sc
Warner Losh [Tue, 5 Apr 2022 02:27:08 +0000 (20:27 -0600)]
musb: eliminate write only variable sc

Sponsored by: Netflix

2 years agoatmegadci: eliminate unused variables sc, ep_no
Warner Losh [Tue, 5 Apr 2022 02:26:21 +0000 (20:26 -0600)]
atmegadci: eliminate unused variables sc, ep_no

Sponsored by: Netflix

2 years agohdspe_dmapsetmap: eliminate write only variable sc
Warner Losh [Tue, 5 Apr 2022 02:25:54 +0000 (20:25 -0600)]
hdspe_dmapsetmap: eliminate write only variable sc

Sponsored by: Netflix

2 years agoquicc_bus_setsig: eliminate write only variable bas
Warner Losh [Tue, 5 Apr 2022 02:25:23 +0000 (20:25 -0600)]
quicc_bus_setsig: eliminate write only variable bas

Sponsored by: Netflix

2 years agohdaa_eld_dump: eliminate write only variable len
Warner Losh [Tue, 5 Apr 2022 02:24:21 +0000 (20:24 -0600)]
hdaa_eld_dump: eliminate write only variable len

Sponsored by: Netflix

2 years agoemu10kx: eliminate write only variables val, r and move i to loop
Warner Losh [Tue, 5 Apr 2022 02:23:43 +0000 (20:23 -0600)]
emu10kx: eliminate write only variables val, r and move i to loop

Sponsored by: Netflix

2 years agoemu10kx-pci: eliminate write only variable r
Warner Losh [Tue, 5 Apr 2022 02:19:06 +0000 (20:19 -0600)]
emu10kx-pci: eliminate write only variable r

Sponsored by: Netflix

2 years agoemu_midi_probe: eliminate write only variable r
Warner Losh [Tue, 5 Apr 2022 02:18:10 +0000 (20:18 -0600)]
emu_midi_probe: eliminate write only variable r

Sponsored by: Netflix

2 years agopcmcsa_attach: eliminate write only variable unit
Warner Losh [Tue, 5 Apr 2022 02:17:30 +0000 (20:17 -0600)]
pcmcsa_attach: eliminate write only variable unit

Sponsored by: Netflix

2 years agomidicsa_attach: eliminate write only variable func
Warner Losh [Tue, 5 Apr 2022 02:16:49 +0000 (20:16 -0600)]
midicsa_attach: eliminate write only variable func

Sponsored by: Netflix

2 years agocs4281: eliminate write only variable codecno
Warner Losh [Tue, 5 Apr 2022 02:16:20 +0000 (20:16 -0600)]
cs4281: eliminate write only variable codecno

Sponsored by: Netflix

2 years agosb_probe: eliminate write only variable r
Warner Losh [Tue, 5 Apr 2022 02:15:50 +0000 (20:15 -0600)]
sb_probe: eliminate write only variable r

Sponsored by: Netflix

2 years agosb16_probe: eliminate write only variable r
Warner Losh [Tue, 5 Apr 2022 02:14:21 +0000 (20:14 -0600)]
sb16_probe: eliminate write only variable r

Sponsored by: Netflix

2 years agoess_probe: eliminate write only variable r
Warner Losh [Tue, 5 Apr 2022 02:13:56 +0000 (20:13 -0600)]
ess_probe: eliminate write only variable r

Sponsored by: Netflix

2 years agosis_attach: Move waittime definition into for loop
Warner Losh [Tue, 5 Apr 2022 02:13:32 +0000 (20:13 -0600)]
sis_attach: Move waittime definition into for loop

Sponsored by: Netflix

2 years agoppc_detect_fifo: eliminate write only variable cc
Warner Losh [Tue, 5 Apr 2022 02:12:44 +0000 (20:12 -0600)]
ppc_detect_fifo: eliminate write only variable cc

Sponsored by: Netflix

2 years agoppi_probe: eliminate unused variable ppi
Warner Losh [Tue, 5 Apr 2022 02:12:17 +0000 (20:12 -0600)]
ppi_probe: eliminate unused variable ppi

Sponsored by: Netflix

2 years agoMark cfg as __unused to avoid ifdef soup
Warner Losh [Tue, 5 Apr 2022 02:11:40 +0000 (20:11 -0600)]
Mark cfg as __unused to avoid ifdef soup

Sponsored by: Netflix

2 years agomxge_rss_ethp_z8e_fw_modevent: eliminate write only variable parent
Warner Losh [Tue, 5 Apr 2022 02:10:45 +0000 (20:10 -0600)]
mxge_rss_ethp_z8e_fw_modevent: eliminate write only variable parent

Sponsored by: Netflix

2 years agomxge_rss_eth_z8e_fw_modevent: eliminate write only variable parent
Warner Losh [Tue, 5 Apr 2022 02:09:57 +0000 (20:09 -0600)]
mxge_rss_eth_z8e_fw_modevent: eliminate write only variable parent

Sponsored by: Netflix

2 years agomxge_ethp_z8e_fw_modevent: eliminate write only variable parent
Warner Losh [Tue, 5 Apr 2022 02:09:27 +0000 (20:09 -0600)]
mxge_ethp_z8e_fw_modevent: eliminate write only variable parent

Sponsored by: Netflix

2 years agomxge_eth_z8e_fw_modevent: eliminate write only variable parent
Warner Losh [Tue, 5 Apr 2022 02:08:56 +0000 (20:08 -0600)]
mxge_eth_z8e_fw_modevent: eliminate write only variable parent

Sponsored by: Netflix

2 years agomge: eliminate write only variables ifp, sc and error
Warner Losh [Tue, 5 Apr 2022 02:08:21 +0000 (20:08 -0600)]
mge: eliminate write only variables ifp, sc and error

Sponsored by: Netflix

2 years agotmp461_signed_extend32 is unused, remove it
Warner Losh [Tue, 5 Apr 2022 01:38:02 +0000 (19:38 -0600)]
tmp461_signed_extend32 is unused, remove it

Sponsored by: Netflix

2 years agorx8803_settime: remove write only variable bus
Warner Losh [Tue, 5 Apr 2022 01:35:22 +0000 (19:35 -0600)]
rx8803_settime: remove write only variable bus

Sponsored by: Netflix

2 years agotca6416: remove write only sc
Warner Losh [Tue, 5 Apr 2022 01:34:59 +0000 (19:34 -0600)]
tca6416: remove write only sc

Sponsored by: Netflix