[OpenAFS-devel] sandbox branch for openafs-1_8_x on Linux 5.18 and gcc-12

Cheyenne Wills cwills@sinenomine.net
Sat, 25 Jun 2022 13:44:22 +0000


I've pushed to my sandbox repo on github a work in progress openafs-1.8.x b=
ranch that builds against a Linux 5.18 system using gcc-12 / clang-14 (I di=
d 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 dependi=
ng on feedback from gerrit reviews for the open commits.

     https://github.com/CheyenneWills/openafs/tree/openafs-stable-1_8_x/lin=
ux-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 a=
nd 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                 - fixe=
s compiler warnings
14965 autoconf: Remove/update obsolete autoconf macros               - fixe=
s 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                           - prer=
eq (build)
14910 dir: make dtest buildable again                                - prer=
eq (build)
14911 dir: Explicitly 'make all' in src/dir/test                     - prer=
eq (build)
14879 Import of code from c-tap-harness                              - prer=
eq (build)
14880 tests: Accommodate c-tap-harness 4.7                           - prer=
eq (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                           - prer=
eq
14943 Import of code from autoconf-archive                           - prer=
eq
14988 autoconf: import gcc function attribute check macro            - prer=
eq
14944 Use autoconf-archive m4 from src/external                      - prer=
eq
14966 autoconf: check for format __attribute__ to avoid warnings     - fixe=
s compiler warnings
14967 autoconf: attribute type checks                                - prer=
eq
14968 vos: Properly print volume transaction flags                   - fixe=
s compiler warnings
14969 Add more 'fall through' switch comments                        - fixe=
s compiler warnings
14970 clang-10: use AFS_FALLTHROUGH for case fallthrough             - fixe=
s compiler warnings=20
14973 UKERNEL: remove dead code osi_SetTime                          - prer=
eq (cleanup)
14971 Convert all osi_timeval_t to osi_timeval32_t                   - prer=
eq (cleanup)
14975 UKERNEL: remove redundant declaration of osi_GetTime           - prer=
eq (cleanup)
14972 afs: Move osi_GetTime out of param.h                           - prer=
eq (cleanup)
14974 afs: Always define our own osi_timeval32_t                     - prer=
eq (cleanup)
14976 Remove AFS_PARISC_LINUX24_ENV references                       - prer=
eq (cleanup)
14977 Change AFS*_LINUXnn_ENV to AFS*_LINUX_ENV                      - prer=
eq (cleanup)
14978 Cleanup AFS_*LINUX_ENV usage                                   - prer=
eq (cleanup)
15037 afs: Remove redundant AFS_LINUX_ENV test                       - prer=
eq (cleanup)
14979 ubik: do not reuse the offset variable for the sync site address - fi=
xes compiler warnings
14980 klog.krb5 -lifetime is not implemented                         - fixe=
s compiler warnings
14981 ubik: Fix ubeacon_updateUbikNetworkAddress() mismatched array paramet=
er warning - fixes compiler warnings
14982 ptserver: Fix CreateEntry() mismatched array parameter warning - fixe=
s compiler warnings
14983 pts: Fix stringop-overflow warnings                            - fixe=
s compiler warnings
14984 Fix PrintInode() mismatched array parameter warnings           - fixe=
s compiler warnings
14985 bucoord: Fix doDispatch() array-parameter gcc warning          - fixe=
s compiler warnings
14986 libadmin: Fix isAlias may be uninitialized warning             - fixe=
s compiler warnings
14987 ptserver: Fix CreateEntry() stringop-overflow warnings         - fixe=
s compiler warnings
14989 LINUX: Honor --enable-checking for libafs                      - prer=
eq (build)
14990 clang-10: ignore fallthrough warning in generated code         - fixe=
s compiler warnings
14991 clang-13: remove unused variables flagged by clang             - fixe=
s compiler warnings
14945 Linux-5.17: kernel func complete_and_exit renamed              - Linu=
x 5.17
14946 Linux-5.17: Kernel build uses -Wcast-function-type             - Linu=
x 5.17


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

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

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

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

Cheyenne Wills
cwills@sinenomine.net