This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".
The branch, master has been updated
via 0dd8b683c2d8306be59d9bcc9e2019565ab40ef9 (commit)
via eeb1bf1bc9f50df8b92ebeafd80a16e243184ff7 (commit)
from c5660b2f4659887a3a8be7a91c9d6a30d47ed12b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0dd8b683c2d8306be59d9bcc9e2019565ab40ef9
Author: [email protected] <[email protected]>
Date: Tue Oct 22 13:36:39 2024 -0400
fix a compile warning.
* i386/i386at/acpi_parse_apci.c (acpi_print_info): %lx -> %llx
i386/i386at/acpi_parse_apic.c: In function 'acpi_print_info':
i386/i386at/acpi_parse_apic.c:51:25: warning: format '%lx' expects argument
of type 'long unsigned int', but argument 2 has type 'phys_addr_t' {aka 'long
long unsigned int'} [-Wformat=]
51 | printf(" rsdp = 0x%lx\n", rsdp);
| ~~^ ~~~~
| | |
| | phys_addr_t {aka long long unsigned
int}
| long unsigned int
| %llx
Message-ID: <[email protected]>
commit eeb1bf1bc9f50df8b92ebeafd80a16e243184ff7
Author: [email protected] <[email protected]>
Date: Tue Oct 22 13:36:38 2024 -0400
fix some compiler warnings.
I compiled with ./configure --enable-xen --enable-acpi.
* i386/intel/pmap.c (pmap_bootstrap_xen, pmap_bootstrap,
pmap_set_page_readwrite, pmap_clear_bootstrap_pagetable, pmap_map_mfn,
pmap_expand_level, pmap_collect): Lots of tiny changes. I've copied
in some of the error messages.
cast many variables to (long unsigned int), (vm_offset_t) -> (unsigned
long), %llx <-- (uint64_t) variable,
In file included from i386/intel/pmap.c:63:
i386/intel/pmap.c: In function 'pmap_bootstrap_xen':
i386/intel/pmap.c:703:39: warning: format '%lx' expects argument of type
'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=]
703 | panic("couldn't pin page %p(%lx)",
l1_map[n_l1map], (vm_offset_t) kv_to_ma (l1_map[n_l1map]));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
i386/intel/pmap.c: In function 'pmap_set_page_readwrite':
i386/intel/pmap.c:897:23: warning: format '%lx' expects argument of type
'long unsigned int', but argument 5 has type 'vm_offset_t' {aka 'unsigned int'}
[-Wformat=]
897 | panic("couldn't set hiMMU readwrite for addr
%lx(%lx)\n", vaddr, (vm_offset_t) pa_to_ma (paddr));
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
|
|
|
vm_offset_t {aka unsigned int}
./kern/debug.h:67:50: note: in definition of macro 'panic'
67 | Panic (__FILE__, __LINE__, __FUNCTION__, s, ##__VA_ARGS__)
| ^
i386/intel/pmap.c:897:64: note: format string is defined here
897 | panic("couldn't set hiMMU readwrite for addr
%lx(%lx)\n", vaddr, (vm_offset_t) pa_to_ma (paddr));
| ~~^
| |
| long
unsigned int
| %x
i386/intel/pmap.c:897:23: warning: format '%lx' expects argument of type
'long unsigned int', but argument 6 has type 'unsigned int' [-Wformat=]
897 | panic("couldn't set hiMMU readwrite for addr
%lx(%lx)\n", vaddr, (vm_offset_t) pa_to_ma (paddr));
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./kern/debug.h:67:50: note: in definition of macro 'panic'
67 | Panic (__FILE__, __LINE__, __FUNCTION__, s, ##__VA_ARGS__)
| ^
i386/intel/pmap.c:897:68: note: format string is defined here
897 | panic("couldn't set hiMMU readwrite for addr
%lx(%lx)\n", vaddr, (vm_offset_t) pa_to_ma (paddr));
| ~~^
| |
|
long unsigned int
| %x
Message-ID: <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
i386/i386at/acpi_parse_apic.c | 2 +-
i386/intel/pmap.c | 54 ++++++++++++++++++++++++++++++-------------
2 files changed, 39 insertions(+), 17 deletions(-)
hooks/post-receive
--
GNU Mach