git: kernel: Use NELEM() where we can.
Sascha Wildner
swildner at crater.dragonflybsd.org
Mon Jan 17 00:05:25 PST 2011
commit c157ff7a29251a7088f0e396f85c0dfd6862976b
Author: Sascha Wildner <saw at online.de>
Date: Mon Jan 17 09:03:15 2011 +0100
kernel: Use NELEM() where we can.
Summary of changes:
sys/boot/common/commands.c | 5 +-
sys/bus/cam/scsi/scsi_all.c | 16 +++---
sys/bus/isa/i386/isa_compat.h | 3 +-
sys/bus/isa/x86_64/isa_compat.h | 3 +-
sys/bus/pccard/pccard_cis_quirks.c | 4 +-
sys/bus/usb/usb_mem.c | 5 +--
sys/bus/usb/usb_subr.c | 3 +-
sys/ddb/db_variables.c | 4 +-
sys/dev/agp/agp.c | 2 +-
sys/dev/agp/agp_ali.c | 3 +-
sys/dev/agp/agp_x86_64.c | 4 +-
sys/dev/crypto/hifn/hifn7751.c | 3 +-
sys/dev/crypto/rndtest/rndtest.c | 3 +-
sys/dev/disk/advansys/adwlib.c | 3 +-
sys/dev/disk/ahci/ahci_dragonfly.c | 2 +-
sys/dev/disk/aic/aic.c | 3 +-
sys/dev/disk/aic/aic_isa.c | 3 +-
sys/dev/disk/ncr/ncr.c | 3 +-
sys/dev/disk/sym/sym_hipd.c | 3 +-
sys/dev/drm/drmP.h | 2 +-
sys/dev/drm/drm_sysctl.c | 2 +-
sys/dev/misc/kbd/atkbd.c | 10 ++--
sys/dev/misc/kbd/atkbdc.c | 3 +-
sys/dev/misc/kbd/kbd.c | 2 +-
sys/dev/misc/kbdmux/kbdmux.c | 6 +-
sys/dev/misc/nsclpcsio/nsclpcsio_isa.c | 2 +-
sys/dev/misc/psm/psm.c | 14 +++---
sys/dev/netif/acx/acx100.c | 6 +--
sys/dev/netif/acx/acx111.c | 6 +--
sys/dev/netif/age/if_age.c | 3 +-
sys/dev/netif/ale/if_ale.c | 2 +-
sys/dev/netif/ath/ath/if_ath.c | 34 ++++--------
sys/dev/netif/ath/hal/ath_hal/ah.c | 8 +--
sys/dev/netif/ath/hal/ath_hal/ah_internal.h | 4 +-
.../netif/ath/hal/ath_hal/ar5210/ar5210_attach.c | 2 -
.../netif/ath/hal/ath_hal/ar5211/ar5211_attach.c | 2 -
sys/dev/netif/ath/hal/ath_hal/ar5212/ar2316.c | 14 ++---
sys/dev/netif/ath/hal/ath_hal/ar5212/ar2317.c | 14 ++---
sys/dev/netif/ath/hal/ath_hal/ar5212/ar2413.c | 14 ++---
sys/dev/netif/ath/hal/ath_hal/ar5212/ar2425.c | 16 +++---
sys/dev/netif/ath/hal/ath_hal/ar5212/ar5111.c | 22 ++++----
sys/dev/netif/ath/hal/ath_hal/ar5212/ar5112.c | 14 ++---
.../netif/ath/hal/ath_hal/ar5212/ar5212_attach.c | 6 +--
sys/dev/netif/ath/hal/ath_hal/ar5212/ar5212_misc.c | 4 +-
.../netif/ath/hal/ath_hal/ar5212/ar5212_reset.c | 10 +---
sys/dev/netif/ath/hal/ath_hal/ar5212/ar5413.c | 14 ++---
sys/dev/netif/ath/hal/ath_hal/ar5416/ar2133.c | 2 -
sys/dev/netif/ath/hal/ath_hal/ar5416/ar5416_misc.c | 4 +-
.../netif/ath/hal/ath_hal/ar5416/ar5416_reset.c | 28 ++++------
sys/dev/netif/ath/hal/ath_hal/ar5416/ar9280.c | 2 -
.../netif/ath/hal/ath_hal/ar5416/ar9285_reset.c | 22 +++-----
sys/dev/netif/bwi/bwimac.c | 8 +--
sys/dev/netif/bwi/bwiphy.c | 30 ++++-------
sys/dev/netif/bwi/bwirf.c | 11 +---
sys/dev/netif/bwi/if_bwi.c | 14 +----
sys/dev/netif/de/if_de.c | 3 +-
sys/dev/netif/de/if_devar.h | 4 +-
sys/dev/netif/ed/if_ed.c | 3 +-
sys/dev/netif/ed/if_ed_pccard.c | 3 +-
sys/dev/netif/iwi/if_iwi.c | 8 +--
sys/dev/netif/iwn/if_iwn.c | 6 +--
sys/dev/netif/mii_layer/truephy.c | 8 +---
sys/dev/netif/rtw/if_rtw_pci.c | 5 +--
sys/dev/netif/rtw/rtw.c | 5 +-
sys/dev/pccard/cardbus/cardbus_cis.c | 3 +-
sys/dev/powermng/kate/kate.c | 5 +-
sys/dev/powermng/lm/lm78.c | 2 +-
sys/dev/raid/mlx/mlx.c | 8 ++--
sys/dev/serial/digi/digi.c | 2 +-
sys/dev/serial/digi/digi_isa.c | 5 +-
sys/dev/sound/pci/als4000.c | 5 +--
sys/dev/sound/pci/atiixp.c | 5 +--
sys/dev/sound/pci/cmi.c | 5 +--
sys/dev/sound/pci/cs4281.c | 5 +--
sys/dev/sound/pci/hda/hdac.c | 27 ++++------
sys/dev/sound/pci/ich.c | 5 +--
sys/dev/sound/pci/maestro3.c | 7 +--
sys/dev/usbmisc/ukbd/ukbd.c | 8 +--
sys/dev/usbmisc/uplcom/uplcom.c | 5 +-
sys/dev/video/bktr/bktr_core.c | 3 +-
sys/dev/video/fb/fb.c | 2 +-
sys/dev/video/fb/vga.c | 4 +-
sys/dev/video/i386/vesa/vesa.c | 2 +-
.../linux/i386/linprocfs/linprocfs_vnops.c | 3 +-
sys/kern/kern_intr.c | 3 +-
sys/kern/kern_slaballoc.c | 4 +-
sys/kern/kern_subr.c | 3 +-
sys/kern/sysv_msg.c | 3 +-
sys/kern/sysv_sem.c | 3 +-
sys/kern/sysv_shm.c | 3 +-
sys/kern/uipc_proto.c | 3 +-
sys/net/bridge/if_bridge.c | 4 +-
sys/net/i4b/capi/capi_l4if.c | 3 +-
sys/net/netisr.c | 8 +--
sys/netbt/bt_proto.c | 3 +-
sys/netbt/hci_socket.c | 3 +-
sys/netgraph/socket/ng_socket.c | 3 +-
sys/netgraph7/atm/ng_atm.c | 4 +-
sys/netgraph7/bluetooth/hci/ng_hci_misc.c | 3 +-
sys/netgraph7/bluetooth/socket/ng_btsocket.c | 4 +-
sys/netgraph7/ng_socket.c | 3 +-
sys/netinet/in_proto.c | 3 +-
sys/netinet6/esp_core.c | 2 +-
sys/netinet6/in6_proto.c | 3 +-
sys/netinet6/ip6_input.c | 2 +-
sys/netproto/802_11/wlan/ieee80211.c | 20 +++----
sys/netproto/802_11/wlan/ieee80211_action.c | 56 ++++++++-----------
sys/netproto/802_11/wlan/ieee80211_mesh.c | 10 ++--
sys/netproto/802_11/wlan/ieee80211_node.c | 4 +-
sys/netproto/802_11/wlan/ieee80211_phy.c | 8 +--
sys/netproto/802_11/wlan/ieee80211_proto.c | 6 +--
sys/netproto/802_11/wlan/ieee80211_scan_sta.c | 6 +--
sys/netproto/atalk/at_proto.c | 4 +-
sys/netproto/atm/atm_proto.c | 3 +-
sys/netproto/ipsec/key.c | 29 +++++-----
sys/netproto/ipsec/key_var.h | 2 -
sys/netproto/ipsec/keysock.c | 3 +-
sys/netproto/ipx/ipx_proto.c | 3 +-
sys/netproto/key/key.c | 31 +++++------
sys/netproto/key/key_var.h | 2 -
sys/netproto/key/keydb.c | 3 +-
sys/netproto/key/keysock.c | 3 +-
sys/netproto/mpls/mpls_proto.c | 4 +-
sys/netproto/natm/natm_proto.c | 3 +-
sys/platform/pc32/apic/mpapic.c | 4 +-
sys/platform/pc32/i386/autoconf.c | 2 +-
sys/platform/pc32/i386/db_trace.c | 3 +-
sys/platform/pc32/i386/dump_machdep.c | 2 +-
sys/platform/pc32/i386/est.c | 11 ++--
sys/platform/pc32/i386/i686_mem.c | 2 +-
sys/platform/pc32/i386/identcpu.c | 2 +-
sys/platform/pc32/i386/p4tcc.c | 2 +-
sys/platform/pc32/i386/sys_machdep.c | 3 +-
sys/platform/pc64/apic/mpapic.c | 4 +-
sys/platform/pc64/x86_64/autoconf.c | 2 +-
sys/platform/pc64/x86_64/db_trace.c | 2 +-
sys/platform/pc64/x86_64/dump_machdep.c | 2 +-
sys/platform/pc64/x86_64/est.c | 11 ++--
sys/platform/pc64/x86_64/identcpu.c | 2 +-
sys/platform/pc64/x86_64/machdep.c | 4 +-
sys/platform/vkernel/i386/autoconf.c | 2 +-
sys/platform/vkernel/i386/db_trace.c | 3 +-
sys/platform/vkernel/platform/systimer.c | 4 +-
sys/platform/vkernel64/platform/systimer.c | 3 +-
sys/platform/vkernel64/x86_64/autoconf.c | 2 +-
sys/platform/vkernel64/x86_64/db_trace.c | 2 +-
sys/sys/dtype.h | 5 +-
sys/vfs/gnu/ext2fs/ext2_lookup.c | 5 +-
sys/vfs/procfs/procfs_vnops.c | 3 +-
sys/vm/vm_pager.c | 3 +-
150 files changed, 348 insertions(+), 600 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c157ff7a29251a7088f0e396f85c0dfd6862976b
--
DragonFly BSD source repository
More information about the Commits
mailing list