Skip to contentSkip to conversation

linux-next: build warning after merge of the pm tree

DISCUSSION Stephen Rothwell 1 participant 4 messages Sep 22, 2020 – Oct 15, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the pm tree, today's linux-next build (i386 defconfig) produced this warning:

In file included from include/acpi/acpi.h:24,
from drivers/acpi/acpica/hwgpe.c:10:
drivers/acpi/acpica/hwgpe.c: In function 'acpi_hw_gpe_read':
include/acpi/actypes.h:501:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
501 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p))
| ^
drivers/acpi/acpica/acmacros.h:18:41: note: in expansion of macro 'ACPI_CAST_PTR'

   18 | #define ACPI_CAST8(ptr)                 ACPI_CAST_PTR (u8, (ptr))
      |                                         ^~~~~~~~~~~~~

drivers/acpi/acpica/acmacros.h:22:43: note: in expansion of macro 'ACPI_CAST8'
22 | #define ACPI_GET8(ptr) (*ACPI_CAST8 (ptr))
| ^~~~~~~~~~
drivers/acpi/acpica/hwgpe.c:50:17: note: in expansion of macro 'ACPI_GET8'

   50 |   *value = (u64)ACPI_GET8(reg->address);
      |                 ^~~~~~~~~

drivers/acpi/acpica/hwgpe.c: In function 'acpi_hw_gpe_write':
include/acpi/actypes.h:501:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
501 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p))
| ^
drivers/acpi/acpica/acmacros.h:18:41: note: in expansion of macro 'ACPI_CAST_PTR'

   18 | #define ACPI_CAST8(ptr)                 ACPI_CAST_PTR (u8, (ptr))
      |                                         ^~~~~~~~~~~~~

drivers/acpi/acpica/acmacros.h:26:43: note: in expansion of macro 'ACPI_CAST8'
26 | #define ACPI_SET8(ptr, val) (*ACPI_CAST8 (ptr) = (u8) (val))
| ^~~~~~~~~~
drivers/acpi/acpica/hwgpe.c:85:3: note: in expansion of macro 'ACPI_SET8'

   85 |   ACPI_SET8(reg->address, value);
      |   ^~~~~~~~~

Introduced by commit

7a8379eb41a4 ("ACPICA: Add support for using logical addresses of GPE blocks")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 30 lines · On Tue, 22 Sep 2020 18:11:26 +1000 Stephen Rothwell <[email protected]>…

After merging the pm tree, today's linux-next build (i386 defconfig) produced this warning:

In file included from include/acpi/acpi.h:24,
from drivers/acpi/acpica/hwgpe.c:10:
drivers/acpi/acpica/hwgpe.c: In function 'acpi_hw_gpe_read':
include/acpi/actypes.h:501:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
501 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p))
| ^
drivers/acpi/acpica/acmacros.h:18:41: note: in expansion of macro 'ACPI_CAST_PTR'

   18 | #define ACPI_CAST8(ptr)                 ACPI_CAST_PTR (u8, (ptr))
      |                                         ^~~~~~~~~~~~~

drivers/acpi/acpica/acmacros.h:22:43: note: in expansion of macro 'ACPI_CAST8'
22 | #define ACPI_GET8(ptr) (*ACPI_CAST8 (ptr))
| ^~~~~~~~~~
drivers/acpi/acpica/hwgpe.c:50:17: note: in expansion of macro 'ACPI_GET8'

   50 |   *value = (u64)ACPI_GET8(reg->address);
      |                 ^~~~~~~~~

drivers/acpi/acpica/hwgpe.c: In function 'acpi_hw_gpe_write':
include/acpi/actypes.h:501:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
501 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p))
| ^
drivers/acpi/acpica/acmacros.h:18:41: note: in expansion of macro 'ACPI_CAST_PTR'

   18 | #define ACPI_CAST8(ptr)                 ACPI_CAST_PTR (u8, (ptr))
      |                                         ^~~~~~~~~~~~~

drivers/acpi/acpica/acmacros.h:26:43: note: in expansion of macro 'ACPI_CAST8'
26 | #define ACPI_SET8(ptr, val) (*ACPI_CAST8 (ptr) = (u8) (val))
| ^~~~~~~~~~
drivers/acpi/acpica/hwgpe.c:85:3: note: in expansion of macro 'ACPI_SET8'

Quoted 6 lines
   85 |   ACPI_SET8(reg->address, value);
      |   ^~~~~~~~~

Introduced by commit

7a8379eb41a4 ("ACPICA: Add support for using logical addresses of GPE blocks")

I am still getting these warnings ...

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw

Hi all,

Quoted 35 lines · On Thu, 1 Oct 2020 19:43:37 +1000 Stephen Rothwell <[email protected]> wrote:
Quoted 33 lines · On Tue, 22 Sep 2020 18:11:26 +1000 Stephen Rothwell <[email protected]>…

After merging the pm tree, today's linux-next build (i386 defconfig) produced this warning:

In file included from include/acpi/acpi.h:24,
from drivers/acpi/acpica/hwgpe.c:10:
drivers/acpi/acpica/hwgpe.c: In function 'acpi_hw_gpe_read':
include/acpi/actypes.h:501:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
501 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p))
| ^
drivers/acpi/acpica/acmacros.h:18:41: note: in expansion of macro 'ACPI_CAST_PTR'

   18 | #define ACPI_CAST8(ptr)                 ACPI_CAST_PTR (u8, (ptr))
      |                                         ^~~~~~~~~~~~~

drivers/acpi/acpica/acmacros.h:22:43: note: in expansion of macro 'ACPI_CAST8'
22 | #define ACPI_GET8(ptr) (*ACPI_CAST8 (ptr))
| ^~~~~~~~~~
drivers/acpi/acpica/hwgpe.c:50:17: note: in expansion of macro 'ACPI_GET8'

   50 |   *value = (u64)ACPI_GET8(reg->address);
      |                 ^~~~~~~~~

drivers/acpi/acpica/hwgpe.c: In function 'acpi_hw_gpe_write':
include/acpi/actypes.h:501:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
501 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p))
| ^
drivers/acpi/acpica/acmacros.h:18:41: note: in expansion of macro 'ACPI_CAST_PTR'

   18 | #define ACPI_CAST8(ptr)                 ACPI_CAST_PTR (u8, (ptr))
      |                                         ^~~~~~~~~~~~~

drivers/acpi/acpica/acmacros.h:26:43: note: in expansion of macro 'ACPI_CAST8'
26 | #define ACPI_SET8(ptr, val) (*ACPI_CAST8 (ptr) = (u8) (val))
| ^~~~~~~~~~
drivers/acpi/acpica/hwgpe.c:85:3: note: in expansion of macro 'ACPI_SET8'

   85 |   ACPI_SET8(reg->address, value);
      |   ^~~~~~~~~
Quoted 5 lines
Quoted 3 lines

Introduced by commit

7a8379eb41a4 ("ACPICA: Add support for using logical addresses of GPE blocks")

I am still getting these warnings ...

Still there :-(

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

Hi all,

Quoted 37 lines · On Thu, 8 Oct 2020 20:35:59 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 35 lines · On Thu, 1 Oct 2020 19:43:37 +1000 Stephen Rothwell <[email protected]> wrote:
Quoted 33 lines · On Tue, 22 Sep 2020 18:11:26 +1000 Stephen Rothwell <[email protected]>…

After merging the pm tree, today's linux-next build (i386 defconfig) produced this warning:

In file included from include/acpi/acpi.h:24,
from drivers/acpi/acpica/hwgpe.c:10:
drivers/acpi/acpica/hwgpe.c: In function 'acpi_hw_gpe_read':
include/acpi/actypes.h:501:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
501 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p))
| ^
drivers/acpi/acpica/acmacros.h:18:41: note: in expansion of macro 'ACPI_CAST_PTR'

   18 | #define ACPI_CAST8(ptr)                 ACPI_CAST_PTR (u8, (ptr))
      |                                         ^~~~~~~~~~~~~

drivers/acpi/acpica/acmacros.h:22:43: note: in expansion of macro 'ACPI_CAST8'
22 | #define ACPI_GET8(ptr) (*ACPI_CAST8 (ptr))
| ^~~~~~~~~~
drivers/acpi/acpica/hwgpe.c:50:17: note: in expansion of macro 'ACPI_GET8'

   50 |   *value = (u64)ACPI_GET8(reg->address);
      |                 ^~~~~~~~~

drivers/acpi/acpica/hwgpe.c: In function 'acpi_hw_gpe_write':
include/acpi/actypes.h:501:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
501 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p))
| ^
drivers/acpi/acpica/acmacros.h:18:41: note: in expansion of macro 'ACPI_CAST_PTR'

   18 | #define ACPI_CAST8(ptr)                 ACPI_CAST_PTR (u8, (ptr))
      |                                         ^~~~~~~~~~~~~

drivers/acpi/acpica/acmacros.h:26:43: note: in expansion of macro 'ACPI_CAST8'
26 | #define ACPI_SET8(ptr, val) (*ACPI_CAST8 (ptr) = (u8) (val))
| ^~~~~~~~~~
drivers/acpi/acpica/hwgpe.c:85:3: note: in expansion of macro 'ACPI_SET8'

   85 |   ACPI_SET8(reg->address, value);
      |   ^~~~~~~~~
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Introduced by commit

7a8379eb41a4 ("ACPICA: Add support for using logical addresses of GPE blocks")

I am still getting these warnings ...

Still there :-(

This is now in Linus' tree :-(

Signature · 2 lines
Cheers,
Stephen Rothwell