OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-126-g92342b0

Gerrit Code Review
Thu, 13 Jan 2022 00:28:44 -0500

The following commit has been merged in the master branch:
commit 92342b099dd5ea539efc5ad119d36a87647c0895
Author: Cheyenne Wills <>
Date:   Mon Jan 10 18:11:58 2022 -0700

    afs.h: fix out of tree build failures
    There are several compiler errors and warnings when building an out of
    tree program that includes "afs/afs.h".
     - Errors for unknown type names 'afs_ucred_t' and 'wait_queue_head'
        .../afs/afs.h:1542:16: error: unknown type name ‘afs_ucred_t’
          ... | afs_set_cr_uid(afs_ucred_t *cred, uid_t uid) {
        .../afs/afs.h:1605:5: error: unknown type name ‘wait_queue_head_t’
          ... |     wait_queue_head_t cond;
     - Warnings about declaring structures within missing declarations for
       the structs: osi_File, dcache and afs_FetchOutput
       .../afs/afs.h:1486:36: warning: ‘struct osi_file’ declared inside
            parameter list will not be visible outside of this definition or
          ... |     int (*read)(void *rock, struct osi_file *tfile,
                         afs_uint32 offset,
     - Unable to find the file for the include opr/jhash.h
    The missing type name 'afs_ucred_t' is due to miss-placed declarations
    for some kernel only functions.
    The type name 'wait_queue_head' is a data type for Linux kernel modules.
    The warnings for the missing declarations are due to either references
    to the structures before they are declared, or because they are not
    available in any of the other public header files.
    To fix the unknown type name afs_ucred_t, relocate the function
    declarations that reference 'afs_ucred_t' into the KERNEL only section
    (since afs_ucred_t is a kernel specific type).
    To fix the unknown type name 'wait_queue_head', relocate the afs_event
    structure and the afs_evhasht variable to be within the KERNEL only
    To resolve the warnings associated with the structures, simply declare
    the structure names before they are referenced.  All references that
    are resulting in the warnings are declarations for pointers.
    Relocate the include for opr/jhash.h and the define for VCSIZE into the
    kernel block.
    Change-Id: I4135ff25b76d3221c7779c279ed829000ce31f1c
    Tested-by: BuildBot <>
    Reviewed-by: Andrew Deason <>
    Reviewed-by: Benjamin Kaduk <>

 src/afs/afs.h | 157 ++++++++++++++++++++++++++++++----------------------------
 1 file changed, 81 insertions(+), 76 deletions(-)

OpenAFS Master Repository