sandbox branch for openafs-1_8_x on Linux 5.18 and gcc-12

Cheyenne Wills <[email protected]>
Newsgroups gmane.comp.file-systems.openafs.devel
Message-ID <[email protected]>
I've pushed to my sandbox repo on github a work in progress openafs-1.8.x branch that builds against a Linux 5.18 system using gcc-12 / clang-14 (I did a build on an openSuSE Tumbleweed system as one of the build tests).

Note that this is a work in progress branch, there could be changes depending on feedback from gerrit reviews for the open commits.

     https://github.com/CheyenneWills/openafs/tree/openafs-stable-1_8_x/linux-5.18-gcc-12

The branch contains 15 commits that are not yet pushed to gerrit for 1.8.x (11 are in the master branch and the remaining 4  commits are still waiting to be accepted and merged into master).  Once the 4 commits are accepted and merged, then these 15 commits could be pushed to gerrit for 1.8.x.

The entire list of commits (starting from the current openafs-stable-1_8_x branch)

# Open gerrits for openafs-stable-1_8_x
14964 configure.ac: Add missing double include guard                 - fixes compiler warnings
14965 autoconf: Remove/update obsolete autoconf macros               - fixes autoconf warnings
14594 warn when starting without keys                                - fix
14813 afs: clarify cold and warm shutdown logic                      - fix
14814 fs: Avoid unnecessary cell DNS lookups                         - fix
14815 rx: Remove delays in multi_End_Ignore                          - fix
14909 build: declare test targets as phony                           - prereq (build)
14910 dir: make dtest buildable again                                - prereq (build)
14911 dir: Explicitly 'make all' in src/dir/test                     - prereq (build)
14879 Import of code from c-tap-harness                              - prereq (build)
14880 tests: Accommodate c-tap-harness 4.7                           - prereq (build)
14878 Add sysname, files and header entries for FreeBSD 12.3         - FBSD
14920 FBSD: Avoid recursive osi_VM_StoreAllSegments lock             - FBSD
14921 FBSD: Use GENERIC kernel headers by default                    - FBSD
14942 Add autoconf-archive to src/external                           - prereq
14943 Import of code from autoconf-archive                           - prereq
14988 autoconf: import gcc function attribute check macro            - prereq
14944 Use autoconf-archive m4 from src/external                      - prereq
14966 autoconf: check for format __attribute__ to avoid warnings     - fixes compiler warnings
14967 autoconf: attribute type checks                                - prereq
14968 vos: Properly print volume transaction flags                   - fixes compiler warnings
14969 Add more 'fall through' switch comments                        - fixes compiler warnings
14970 clang-10: use AFS_FALLTHROUGH for case fallthrough             - fixes compiler warnings 
14973 UKERNEL: remove dead code osi_SetTime                          - prereq (cleanup)
14971 Convert all osi_timeval_t to osi_timeval32_t                   - prereq (cleanup)
14975 UKERNEL: remove redundant declaration of osi_GetTime           - prereq (cleanup)
14972 afs: Move osi_GetTime out of param.h                           - prereq (cleanup)
14974 afs: Always define our own osi_timeval32_t                     - prereq (cleanup)
14976 Remove AFS_PARISC_LINUX24_ENV references                       - prereq (cleanup)
14977 Change AFS*_LINUXnn_ENV to AFS*_LINUX_ENV                      - prereq (cleanup)
14978 Cleanup AFS_*LINUX_ENV usage                                   - prereq (cleanup)
15037 afs: Remove redundant AFS_LINUX_ENV test                       - prereq (cleanup)
14979 ubik: do not reuse the offset variable for the sync site address - fixes compiler warnings
14980 klog.krb5 -lifetime is not implemented                         - fixes compiler warnings
14981 ubik: Fix ubeacon_updateUbikNetworkAddress() mismatched array parameter warning - fixes compiler warnings
14982 ptserver: Fix CreateEntry() mismatched array parameter warning - fixes compiler warnings
14983 pts: Fix stringop-overflow warnings                            - fixes compiler warnings
14984 Fix PrintInode() mismatched array parameter warnings           - fixes compiler warnings
14985 bucoord: Fix doDispatch() array-parameter gcc warning          - fixes compiler warnings
14986 libadmin: Fix isAlias may be uninitialized warning             - fixes compiler warnings
14987 ptserver: Fix CreateEntry() stringop-overflow warnings         - fixes compiler warnings
14989 LINUX: Honor --enable-checking for libafs                      - prereq (build)
14990 clang-10: ignore fallthrough warning in generated code         - fixes compiler warnings
14991 clang-13: remove unused variables flagged by clang             - fixes compiler warnings
14945 Linux-5.17: kernel func complete_and_exit renamed              - Linux 5.17
14946 Linux-5.17: Kernel build uses -Wcast-function-type             - Linux 5.17


## The following commits have not yet been pushed to a 1.8.x branch for gerrit

# From master (gerrit # are for reference)
13435 afs: Introduce afs_IsDCacheFresh                               - prereq (cleanup)
14242 LINUX: Don't panic on some file open errors                    - prereq 
14132 cf: Use common macro to test compiler flags                    - fixes build for gcc-12
14900 cf: Use -Werror when checking for -Wno-* flags                 - fixes build for gcc-12
14273 autoconf: fix detection for fallthrough attribute              - fixes build for clang (fallthrough)
14955 vol: Use asprintf in _namei_examine_special                    - fixes compiler warnings gcc-12
14958 afsd: Avoid fscanf overflows when paring cacheinfo             - fixes compiler warnings clang-14
14939 Linux-5.18 replace set_page_dirty with dirty_folio             - Linux 5.18
14954 afs: introduce afs_alloc_ncr/afs_free_ncr                      - Linux 5.18
14962 afs: introduce get_dcache_readahead                            - Linux 5.18
14956 afs: Avoid always-false NULL test on AFSTOV(avc)               - fixes compiler warnings gcc-12

# From open gerrits for master waiting to be accepted and merged into master.
14953 Linux-5.18: replace readpages with readahead                   - Linux 5.18
14957 lwp: Ignore dangling-pointer warning in process.c              - fixes compiler warnings gcc-12
15029 opr: replace AFS_STRINGIZE with opr_stringize                  - fixes compiler warnings clang-14
13136 Prevent sscanf format widths from overrunning array            - fixes compiler warnings clang-14

Commits marked as prereq are included to prevent code skew or are required for a later commit

Cheyenne Wills
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.