git: kernel: Remove explicit dependencies on <sys/malloc.h> in headers.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Oct 31 14:15:49 PDT 2019


commit 805c8e8e4093ceca2e27510ad3a66d4de8060a55
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sun Oct 20 21:15:20 2019 +0300

    kernel: Remove explicit dependencies on <sys/malloc.h> in headers.
    
     All except <net/if_var.h> for now, it needs decoupling in drm first.
     * Include <sys/malloc.h> in foo.c if they have kmalloc()/kfree() calls.
     * Consistently check if MALLOC_DECLARE was declared before.
     * <sys/mountctl.h>: include <sys/thread.h> for _KERNEL_STRUCTURES too
       since the "struct journal" embeds "struct thread".
     * <sys/tty.h>: Only two kernel sources makes use of M_TTYS.
     * <sys/socketvar2.h>: Make it kernel only header.

Summary of changes:
 sys/bus/firewire/firewirereg.h                        |  2 ++
 sys/bus/isa/isa_common.h                              |  2 ++
 sys/bus/u4b/usb.h                                     |  4 ++--
 sys/dev/crypto/aesni/aesni.h                          |  1 -
 sys/dev/disk/dm/dm.h                                  |  2 ++
 sys/dev/netif/nfe/if_nfe.c                            |  1 +
 sys/dev/powermng/clockmod/clockmod.c                  |  1 +
 sys/dev/raid/mfi/mfivar.h                             |  2 ++
 sys/dev/serial/sio/sio_pccard.c                       |  1 +
 sys/kern/kern_p1003_1b.c                              |  1 +
 sys/kern/kern_sched.c                                 |  1 +
 sys/kern/kern_uuid.c                                  |  1 +
 sys/kern/subr_disklabel32.c                           |  1 +
 sys/kern/tty.c                                        |  2 +-
 sys/kern/uipc_msg.c                                   |  1 +
 sys/net/altq/altq_var.h                               |  5 ++---
 sys/net/dummynet/ip_dummynet_glue.c                   |  1 +
 sys/net/if_loop.c                                     |  1 +
 sys/net/netmap/netmap_kern.h                          |  2 ++
 sys/net/pf/pf_norm.c                                  |  1 +
 sys/net/pf/pf_osfp.c                                  |  1 +
 sys/net/pf/pf_ruleset.c                               |  1 +
 sys/net/pf/pfvar.h                                    |  2 ++
 sys/net/raw_usrreq.c                                  |  1 +
 sys/netbt/bluetooth.h                                 |  3 ++-
 sys/netbt/hci_socket.c                                |  1 +
 sys/netbt/l2cap_upper.c                               |  1 +
 sys/netbt/rfcomm_dlc.c                                |  1 +
 sys/netbt/rfcomm_session.c                            |  1 +
 sys/netbt/rfcomm_upper.c                              |  1 +
 sys/netbt/sco_upper.c                                 |  1 +
 sys/netgraph/netgraph.h                               |  5 ++---
 sys/netgraph7/bluetooth/drivers/bt3c/ng_bt3c_pccard.c |  1 +
 sys/netgraph7/bluetooth/drivers/h4/ng_h4_var.h        |  4 +++-
 sys/netgraph7/bluetooth/l2cap/ng_l2cap_var.h          |  2 ++
 sys/netgraph7/hub/ng_hub.c                            |  1 +
 sys/netgraph7/netflow/netflow.c                       |  1 +
 sys/netgraph7/netflow/ng_netflow.c                    |  1 +
 sys/netgraph7/netgraph.h                              |  3 ++-
 sys/netproto/802_11/ieee80211_crypto.h                |  2 ++
 sys/netproto/802_11/ieee80211_mesh.h                  |  2 ++
 sys/netproto/802_11/ieee80211_node.h                  |  2 ++
 sys/netproto/802_11/ieee80211_ratectl.h               |  2 ++
 sys/netproto/802_11/ieee80211_scan.h                  |  2 ++
 sys/netproto/802_11/ieee80211_var.h                   |  2 ++
 sys/netproto/802_11/wlan/ieee80211_dragonfly.c        |  5 +++--
 sys/netproto/802_11/wlan/ieee80211_superg.c           |  7 ++++---
 sys/opencrypto/cryptodev.h                            |  2 ++
 sys/opencrypto/xform.h                                |  3 +--
 sys/platform/vkernel64/platform/cothread.c            |  3 ++-
 sys/sys/memrange.h                                    | 12 +++---------
 sys/sys/mountctl.h                                    |  9 +++------
 sys/sys/msgport2.h                                    |  5 ++---
 sys/sys/posix4.h                                      |  3 ++-
 sys/sys/socketvar2.h                                  |  9 ++++++---
 sys/sys/tty.h                                         |  6 ++----
 sys/vfs/devfs/devfs_core.c                            |  1 +
 57 files changed, 95 insertions(+), 47 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/805c8e8e4093ceca2e27510ad3a66d4de8060a55


-- 
DragonFly BSD source repository



More information about the Commits mailing list