Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys

Module Name:    src
Committed By:   dsl
Date:           Sat Jun  2 21:36:48 UTC 2012

Modified Files:
        src/sys/arch/evbppc/obs405/dev: obsled.c
        src/sys/arch/i386/i386: machdep.c
        src/sys/arch/macppc/dev: obio.c
        src/sys/arch/sparc64/dev: lom.c
        src/sys/arch/x86/x86: est.c odcm.c powernow.c
        src/sys/ddb: db_variables.c
        src/sys/dev/acpi: acpi_display.c acpi_power.c asus_acpi.c fujbp_acpi.c
            fujhk_acpi.c sony_acpi.c
        src/sys/dev/adb: adb_kbd.c adb_ms.c
        src/sys/dev/bluetooth: bcsp.c btmagic.c
        src/sys/dev/gpio: gpiopwm.c gpiosim.c
        src/sys/dev/i2c: dbcool.c lm75.c
        src/sys/dev/ic: ac97.c ath_netbsd.h
        src/sys/dev/isa: toaster.c
        src/sys/dev/pci: auich.c if_iwi.c if_jme.c if_msk.c if_sk.c if_vte.c
        src/sys/dev/pci/ixgbe: ixgbe.c
        src/sys/dev/pci/voyager: pwmclock.c
        src/sys/dev/pckbport: synaptics.c
        src/sys/dev/usb: ubt.c
        src/sys/external/bsd/acpica/dist/include: acglobal.h acpixf.h
        src/sys/external/bsd/drm/dist/bsd-core: drm_sysctl.c
        src/sys/kern: init_sysctl.c kern_sysctl.c vfs_bio.c
        src/sys/miscfs/syncfs: sync_subr.c
        src/sys/net: if_etherip.c if_tap.c
        src/sys/net80211: ieee80211_netbsd.c
        src/sys/netinet: in_selsrc.c ip_input.c tcp_usrreq.c
        src/sys/netipsec: ipsec_netbsd.c
        src/sys/sys: sysctl.h
        src/sys/uvm: uvm_meter.c

Log Message:
Add some pre-processor magic to verify that the type of the data item
  passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.

To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbppc/obs405/dev/obsled.c
cvs rdiff -u -r1.727 -r1.728 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/macppc/dev/obio.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sparc64/dev/lom.c
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/x86/x86/est.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/x86/odcm.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x86/x86/powernow.c
cvs rdiff -u -r1.42 -r1.43 src/sys/ddb/db_variables.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/acpi/acpi_display.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/acpi/acpi_power.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/acpi/asus_acpi.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/acpi/fujbp_acpi.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/acpi/fujhk_acpi.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/acpi/sony_acpi.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/adb/adb_kbd.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/adb/adb_ms.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/bluetooth/bcsp.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/bluetooth/btmagic.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/gpio/gpiopwm.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/gpio/gpiosim.c
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/i2c/lm75.c
cvs rdiff -u -r1.93 -r1.94 src/sys/dev/ic/ac97.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/ic/ath_netbsd.h
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/isa/toaster.c
cvs rdiff -u -r1.140 -r1.141 src/sys/dev/pci/auich.c
cvs rdiff -u -r1.90 -r1.91 src/sys/dev/pci/if_iwi.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/pci/if_jme.c
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/pci/if_msk.c
cvs rdiff -u -r1.70 -r1.71 src/sys/dev/pci/if_sk.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/if_vte.c
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/pci/if_wpi.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/voyager/pwmclock.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pckbport/synaptics.c
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/usb/ubt.c
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/acpica/dist/include/acglobal.h \
cvs rdiff -u -r1.6 -r1.7 src/sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c
cvs rdiff -u -r1.189 -r1.190 src/sys/kern/init_sysctl.c
cvs rdiff -u -r1.234 -r1.235 src/sys/kern/kern_sysctl.c
cvs rdiff -u -r1.236 -r1.237 src/sys/kern/vfs_bio.c
cvs rdiff -u -r1.47 -r1.48 src/sys/miscfs/syncfs/sync_subr.c
cvs rdiff -u -r1.31 -r1.32 src/sys/net/if_etherip.c
cvs rdiff -u -r1.66 -r1.67 src/sys/net/if_tap.c
cvs rdiff -u -r1.20 -r1.21 src/sys/net80211/ieee80211_netbsd.c
cvs rdiff -u -r1.8 -r1.9 src/sys/netinet/in_selsrc.c
cvs rdiff -u -r1.299 -r1.300 src/sys/netinet/ip_input.c
cvs rdiff -u -r1.164 -r1.165 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netipsec/ipsec_netbsd.c
cvs rdiff -u -r1.199 -r1.200 src/sys/sys/sysctl.h
cvs rdiff -u -r1.59 -r1.60 src/sys/uvm/uvm_meter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index