• Bug#1100959: lime-forensics-dkms: module fails to build on arm*

    From Andreas Beckmann@21:1/5 to All on Fri Mar 21 02:00:02 2025
    This is a multi-part MIME message sent by reportbug.


    Package: lime-forensics-dkms
    Version: 1.9.1-7
    Severity: important
    Tags: patch

    Hi,

    I'm attaching a small patch that makes the module build on arm*, failure
    can be seen in the autopkgtests: https://ci.debian.net/packages/l/lime-forensics/

    The virt_addr_valid macro has architecture specific implementations and
    takes takes a pointer argument. It internally casts the argument to
    integer where needed, but on arm* there is also usage of the original
    argument which gets passed to a function taking a void* argument.


    Andreas

    Author: Andreas Beckmann <anbe@debian.org>
    Description: the virt_addr_valid macro wants a void* argument

    --- a/src/hash.c
    +++ b/src/hash.c
    @@ -98,7 +98,7 @@ int ldigest_update(void *v, size_t is) {
    int ret;
    struct scatterlist sg;

    - if (likely(virt_addr_valid((unsigned long) v))) {
    + if (likely(virt_addr_valid(v))) {
    sg_init_one(&sg, (u8 *) v, is);
    } else {
    int nbytes = is;

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)