However, we came up with a slight abstraction for compilers that don't support uintptr_t: /* Use C99 uintptr_t for pointer casting if available, "void *" otherwise */ C:\acpica\source\include\actypes.h(414):#ifndef ACPI_UINTPTR_T C:\acpica\source\include\actypes.h(415):#define ACPI_UINTPTR_T void * -----Original Message----- From: Moore, Robert Sent: Tuesday, January 04, 2022 9:23 AM To: Rafael J. Wysocki <rafael@xxxxxxxxxx> Cc: lkp <lkp@xxxxxxxxx>; Rafael J. Wysocki <rjw@xxxxxxxxxxxxx>; linux-pm@xxxxxxxxxxxxxxx; devel@xxxxxxxxxx; linux-acpi@xxxxxxxxxxxxxxx; Arnd Bergmann <arnd@xxxxxxxxxx> Subject: RE: [Devel] [rafael-pm:bleeding-edge] BUILD SUCCESS WITH WARNING 8d681a5245f0a5cfb20326b4f6578af1adb8676b Rafael, Yes, it looks like this patch may work OK. -----Original Message----- From: Rafael J. Wysocki <rafael@xxxxxxxxxx> Sent: Monday, January 03, 2022 8:49 AM To: Moore, Robert <robert.moore@xxxxxxxxx> Cc: lkp <lkp@xxxxxxxxx>; Rafael J. Wysocki <rjw@xxxxxxxxxxxxx>; linux-pm@xxxxxxxxxxxxxxx; devel@xxxxxxxxxx; linux-acpi@xxxxxxxxxxxxxxx; Arnd Bergmann <arnd@xxxxxxxxxx> Subject: Re: [Devel] [rafael-pm:bleeding-edge] BUILD SUCCESS WITH WARNING 8d681a5245f0a5cfb20326b4f6578af1adb8676b On Mon, Jan 3, 2022 at 4:57 PM Moore, Robert <robert.moore@xxxxxxxxx> wrote: > > Are these new warnings, or legacy warnings? They are new, but AFAICS they appear because an old macro, ACPI_PTR_DIFF(), has been used for defining a new one, ACPI_PTR_TO_PHYSADDR(), which is now triggering the old warning in a new way. I guess this could be addressed by applying the Arnd's patch at https://patchwork.kernel.org/project/linux-acpi/patch/20210927121338.938994-1-arnd@xxxxxxxxxx/ , but that's problematic for the upstream. However, I'm wondering if we can do something like the attached patch instead. > -----Original Message----- > From: kernel test robot <lkp@xxxxxxxxx> > Sent: Tuesday, December 28, 2021 10:30 PM > To: Rafael J. Wysocki <rjw@xxxxxxxxxxxxx> > Cc: linux-pm@xxxxxxxxxxxxxxx; devel@xxxxxxxxxx; > linux-acpi@xxxxxxxxxxxxxxx > Subject: [Devel] [rafael-pm:bleeding-edge] BUILD SUCCESS WITH WARNING > 8d681a5245f0a5cfb20326b4f6578af1adb8676b > > tree/branch: > https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > bleeding-edge branch HEAD: 8d681a5245f0a5cfb20326b4f6578af1adb8676b > Merge branch 'acpi-sysfs' into bleeding-edge > > Warning reports: > > https://lore.kernel.org/llvm/202112280907.gTYYYuB4-lkp@xxxxxxxxx > > Warning in current branch: > > drivers/acpi/acpica/exregion.c:519:17: warning: performing pointer > subtraction with a null pointer has undefined behavior > [-Wnull-pointer-subtraction] > > Warning ids grouped by kconfigs: > > clang_recent_errors > |-- i386-randconfig-a001-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a002-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a003-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a004-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a005-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a006-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a011-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a012-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a013-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a014-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a015-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- i386-randconfig-a016-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a001-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a002-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a003-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a004-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a005-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a006-20211229 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a011-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a012-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a013-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a014-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a015-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-a016-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > |-- x86_64-randconfig-r012-20211228 > | `-- > |drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction > |-w ith-a-null-pointer-has-undefined-behavior > `-- x86_64-randconfig-r024-20211228 > `-- > drivers-acpi-acpica-exregion.c:warning:performing-pointer-subtraction- > with-a-null-pointer-has-undefined-behavior > > elapsed time: 725m > > configs tested: 104 > configs skipped: 3 > > gcc tested configs: > arm allyesconfig > arm allmodconfig > arm defconfig > arm64 defconfig > arm64 allyesconfig > i386 randconfig-c001-20211228 > arm sama7_defconfig > arc nsim_700_defconfig > arm qcom_defconfig > arm pxa3xx_defconfig > powerpc bluestone_defconfig > mips bmips_stb_defconfig > arm ezx_defconfig > sh se7343_defconfig > powerpc skiroot_defconfig > arm lpc18xx_defconfig > arm imx_v6_v7_defconfig > arm pxa910_defconfig > powerpc mpc885_ads_defconfig > powerpc pq2fads_defconfig > arm sama5_defconfig > arm shmobile_defconfig > arc vdk_hs38_smp_defconfig > csky alldefconfig > riscv nommu_k210_sdcard_defconfig > arm randconfig-c002-20211229 > ia64 defconfig > ia64 allmodconfig > ia64 allyesconfig > m68k allmodconfig > m68k defconfig > m68k allyesconfig > nds32 allnoconfig > nios2 defconfig > arc allyesconfig > csky defconfig > alpha defconfig > nds32 defconfig > alpha allyesconfig > nios2 allyesconfig > arc defconfig > sh allmodconfig > h8300 allyesconfig > xtensa allyesconfig > parisc defconfig > s390 allmodconfig > parisc allyesconfig > s390 defconfig > s390 allyesconfig > i386 allyesconfig > sparc defconfig > i386 defconfig > i386 debian-10.3-kselftests > i386 debian-10.3 > sparc allyesconfig > mips allyesconfig > mips allmodconfig > powerpc allnoconfig > powerpc allmodconfig > powerpc allyesconfig > arc randconfig-r043-20211228 > riscv nommu_k210_defconfig > riscv allyesconfig > riscv nommu_virt_defconfig > riscv allnoconfig > riscv defconfig > riscv rv32_defconfig > riscv allmodconfig > um x86_64_defconfig > um i386_defconfig > x86_64 allyesconfig > x86_64 defconfig > x86_64 rhel-8.3 > x86_64 rhel-8.3-func > x86_64 kexec > x86_64 rhel-8.3-kselftests > > clang tested configs: > x86_64 randconfig-a001-20211229 > x86_64 randconfig-a003-20211229 > x86_64 randconfig-a004-20211229 > x86_64 randconfig-a002-20211229 > x86_64 randconfig-a005-20211229 > x86_64 randconfig-a006-20211229 > i386 randconfig-a002-20211229 > i386 randconfig-a003-20211229 > i386 randconfig-a001-20211229 > i386 randconfig-a005-20211229 > i386 randconfig-a006-20211229 > i386 randconfig-a004-20211229 > x86_64 randconfig-a013-20211228 > x86_64 randconfig-a012-20211228 > x86_64 randconfig-a011-20211228 > x86_64 randconfig-a016-20211228 > x86_64 randconfig-a015-20211228 > x86_64 randconfig-a014-20211228 > i386 randconfig-a012-20211228 > i386 randconfig-a011-20211228 > i386 randconfig-a013-20211228 > i386 randconfig-a016-20211228 > i386 randconfig-a014-20211228 > i386 randconfig-a015-20211228 > hexagon randconfig-r041-20211228 > riscv randconfig-r042-20211228 > s390 randconfig-r044-20211228 > hexagon randconfig-r045-20211228 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx > _______________________________________________ > Devel mailing list -- devel@xxxxxxxxxx To unsubscribe send an email to > devel-leave@xxxxxxxxxx > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s