OpenBSD cvs log

created 2022-10-23T02:32:22Z
begin 2022-10-19T00:00:00Z
end 2022-10-20T00:00:00Z
path src/sys
commits 8

date 2022-10-19T07:57:49Z
author kn
files src/sys/dev/isa/ess.c log diff annotate
src/sys/dev/isa/pas.c log diff annotate
message Constify string tables

Each only used one for a printf() call in *_attach().
Seen while tweaking their *_hw_if struct.

OK gnezdo ratchov

date 2022-10-19T07:59:26Z
author kn
files src/sys/arch/arm64/dev/aplmca.c log diff annotate
message Constify audio_hw_if struct

The only driver with a non-const audio(9) struct.

OK gnezdo

date 2022-10-19T09:11:26Z
author kn
files src/sys/dev/pci/maestro.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
message Constify global tables only used in lookups, OK ratchov

date 2022-10-19T15:34:02Z
author kn
files src/sys/arch/luna88k/cbus/nec86.c log diff annotate
src/sys/arch/luna88k/cbus/nec86hw.c log diff annotate
src/sys/arch/luna88k/cbus/nec86hwvar.h log diff annotate
message Remove audio(9) setfd() stub

necsb(4/luna88k) is the only driver that "implements" it... through EIO.

Remove it so setfd can be removed from struct audio_hw_if.

Prodded by ratchov
OK aoyama

date 2022-10-19T19:14:16Z
author kn
files src/sys/arch/hppa/gsc/harmony.c log diff annotate
src/sys/arch/luna88k/cbus/nec86.c log diff annotate
src/sys/arch/macppc/dev/aoa.c log diff annotate
src/sys/arch/macppc/dev/awacs.c log diff annotate
src/sys/arch/macppc/dev/daca.c log diff annotate
src/sys/arch/macppc/dev/onyx.c log diff annotate
src/sys/arch/macppc/dev/snapper.c log diff annotate
src/sys/arch/macppc/dev/tumbler.c log diff annotate
src/sys/arch/sparc64/dev/ce4231.c log diff annotate
src/sys/dev/isa/ess.c log diff annotate
src/sys/dev/isa/gus.c log diff annotate
src/sys/dev/isa/pas.c log diff annotate
src/sys/dev/isa/sb.c log diff annotate
src/sys/dev/pci/auacer.c log diff annotate
src/sys/dev/pci/auglx.c log diff annotate
src/sys/dev/pci/auich.c log diff annotate
src/sys/dev/pci/auixp.c log diff annotate
src/sys/dev/pci/autri.c log diff annotate
src/sys/dev/pci/auvia.c log diff annotate
src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/cmpci.c log diff annotate
src/sys/dev/pci/cs4280.c log diff annotate
src/sys/dev/pci/cs4281.c log diff annotate
src/sys/dev/pci/eap.c log diff annotate
src/sys/dev/pci/emuxki.c log diff annotate
src/sys/dev/pci/envy.c log diff annotate
src/sys/dev/pci/esa.c log diff annotate
message Use C99 struct init for struct audio_hw_if

This audio(9) struct will lose a member, but drivers init their struct quite
inconsistently, most pre-C99 style.

Use C99 style everywhere, to get rid of all annoying differences and allow
for easy member removals/additions:
- don't change current order of members
- no explicit NULL members
- no comments or blank lines
- trailing comma in last member line

GENERIC.MP builds fine with this on arm64, amd64, i386 and sparc64.

macppc and alpha build-tested by miod
OK ratchov miod

date 2022-10-19T19:14:17Z
author kn
files src/sys/dev/pci/eso.c log diff annotate
src/sys/dev/pci/fms.c log diff annotate
src/sys/dev/pci/maestro.c log diff annotate
src/sys/dev/pci/neo.c log diff annotate
src/sys/dev/pci/sv.c log diff annotate
src/sys/dev/pci/yds.c log diff annotate
src/sys/dev/sbus/cs4231.c log diff annotate
src/sys/dev/tc/bba.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
src/sys/dev/usb/utvfu.c log diff annotate
message Use C99 struct init for struct audio_hw_if

This audio(9) struct will lose a member, but drivers init their struct quite
inconsistently, most pre-C99 style.

Use C99 style everywhere, to get rid of all annoying differences and allow
for easy member removals/additions:
- don't change current order of members
- no explicit NULL members
- no comments or blank lines
- trailing comma in last member line

GENERIC.MP builds fine with this on arm64, amd64, i386 and sparc64.

macppc and alpha build-tested by miod
OK ratchov miod

date 2022-10-19T19:59:06Z
author kn
files src/sys/dev/audio.c log diff annotate
message Remove unused setfd member from struct audio_hw_if

All consumers now use C99 struct init and none of them sets `.setfd'.

OK ratchov miod

date 2022-10-19T19:59:07Z
author kn
files src/sys/dev/audio_if.h log diff annotate
message Remove unused setfd member from struct audio_hw_if

All consumers now use C99 struct init and none of them sets `.setfd'.

OK ratchov miod