Source-Changes archive

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

CVS commit: [pgoyette-compat] src/sys



Module Name:    src
Committed By:   pgoyette
Date:           Wed Jan 23 03:34:15 UTC 2019

Modified Files:
        src/sys/arch/amd64/amd64 [pgoyette-compat]: netbsd32_machdep_16.c
        src/sys/arch/mips/mips [pgoyette-compat]: netbsd32_machdep_16.c
        src/sys/arch/sparc64/sparc64 [pgoyette-compat]: netbsd32_machdep_16.c
        src/sys/compat/common [pgoyette-compat]: bio_30.c ccd_60.c
            clockctl_50.c compat_sysv_50_mod.c ieee80211_20.c if43_20.c if_43.c
            if_spppsubr50.c kern_mod_80.c rndpseudo_50.c rtsock_14.c
            rtsock_50.c rtsock_70.c sysmon_power_40.c tty_60.c
            uipc_syscalls_40.c uipc_syscalls_50.c uipc_usrreq_70.c
            usb_subr_30.c vfs_syscalls_10.c vnd_30.c vnd_50.c
        src/sys/compat/netbsd32 [pgoyette-compat]: netbsd32_compat_50.c
            netbsd32_compat_80.c netbsd32_kern_proc.c
        src/sys/compat/sunos [pgoyette-compat]: sunos_mod.c
        src/sys/compat/sunos32 [pgoyette-compat]: sunos32_mod.c
        src/sys/dev/raidframe [pgoyette-compat]: rf_compat50.c rf_compat80.c
        src/sys/dev/wscons [pgoyette-compat]: wsevent_50.c
        src/sys/fs/puffs [pgoyette-compat]: puffs_compat.c
        src/sys/opencrypto [pgoyette-compat]: ocryptodev.c
        src/sys/sys [pgoyette-compat]: module_hook.h

Log Message:
Convert the macros for setting and unsetting a hook to generate
in-line code rather than using an intermediary hook##set routine.
Hooks are set and unset only in one place, so the intermediary
routine provides no benefit.  IMHO using the macro at the point-
of-call is more readable than using it elsewhere in the code and
then calling the generated intermediary routine (for which you
won't even find its declaration or definition unless you remember
to search for the HOOK_SET macro instead).

NFC intended, will verify with a bulk build and an atf test run.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.11 -r1.1.2.12 \
    src/sys/arch/amd64/amd64/netbsd32_machdep_16.c
cvs rdiff -u -r1.1.2.9 -r1.1.2.10 \
    src/sys/arch/mips/mips/netbsd32_machdep_16.c
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 \
    src/sys/arch/sparc64/sparc64/netbsd32_machdep_16.c
cvs rdiff -u -r1.1.2.4 -r1.1.2.5 src/sys/compat/common/bio_30.c \
    src/sys/compat/common/clockctl_50.c src/sys/compat/common/if43_20.c \
    src/sys/compat/common/vfs_syscalls_10.c src/sys/compat/common/vnd_30.c
cvs rdiff -u -r1.1.2.8 -r1.1.2.9 src/sys/compat/common/ccd_60.c
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/compat/common/compat_sysv_50_mod.c \
    src/sys/compat/common/ieee80211_20.c src/sys/compat/common/vnd_50.c
cvs rdiff -u -r1.14.2.14 -r1.14.2.15 src/sys/compat/common/if_43.c
cvs rdiff -u -r1.1.2.3 -r1.1.2.4 src/sys/compat/common/if_spppsubr50.c
cvs rdiff -u -r1.1.2.7 -r1.1.2.8 src/sys/compat/common/kern_mod_80.c
cvs rdiff -u -r1.2.38.2 -r1.2.38.3 src/sys/compat/common/rndpseudo_50.c
cvs rdiff -u -r1.5.14.6 -r1.5.14.7 src/sys/compat/common/rtsock_14.c
cvs rdiff -u -r1.6.2.6 -r1.6.2.7 src/sys/compat/common/rtsock_50.c
cvs rdiff -u -r1.2.2.4 -r1.2.2.5 src/sys/compat/common/rtsock_70.c
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 src/sys/compat/common/sysmon_power_40.c
cvs rdiff -u -r1.4.16.6 -r1.4.16.7 src/sys/compat/common/tty_60.c
cvs rdiff -u -r1.15.2.12 -r1.15.2.13 src/sys/compat/common/uipc_syscalls_40.c
cvs rdiff -u -r1.3.56.12 -r1.3.56.13 src/sys/compat/common/uipc_syscalls_50.c
cvs rdiff -u -r1.1.20.5 -r1.1.20.6 src/sys/compat/common/uipc_usrreq_70.c
cvs rdiff -u -r1.1.2.6 -r1.1.2.7 src/sys/compat/common/usb_subr_30.c
cvs rdiff -u -r1.32.16.15 -r1.32.16.16 \
    src/sys/compat/netbsd32/netbsd32_compat_50.c
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 src/sys/compat/netbsd32/netbsd32_compat_80.c
cvs rdiff -u -r1.1.2.7 -r1.1.2.8 src/sys/compat/netbsd32/netbsd32_kern_proc.c
cvs rdiff -u -r1.3.28.2 -r1.3.28.3 src/sys/compat/sunos/sunos_mod.c
cvs rdiff -u -r1.3.28.2 -r1.3.28.3 src/sys/compat/sunos32/sunos32_mod.c
cvs rdiff -u -r1.3.2.6 -r1.3.2.7 src/sys/dev/raidframe/rf_compat50.c
cvs rdiff -u -r1.2.2.4 -r1.2.2.5 src/sys/dev/raidframe/rf_compat80.c
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 src/sys/dev/wscons/wsevent_50.c
cvs rdiff -u -r1.4.16.5 -r1.4.16.6 src/sys/fs/puffs/puffs_compat.c
cvs rdiff -u -r1.11.2.7 -r1.11.2.8 src/sys/opencrypto/ocryptodev.c
cvs rdiff -u -r1.1.2.14 -r1.1.2.15 src/sys/sys/module_hook.h

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