Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 1999 22:12:04 +0300
From:      Valentin Nechayev <netch@lucky.net>
To:        freebsd-alpha@freebsd.org
Subject:   kernel and sizes
Message-ID:  <19990826221204.B15776@lucky.net>

next in thread | raw e-mail | index | archive | help
Environment: 3.2-RELEASE on AlphaPC 164SX. Build kernel from "GENERIC"
config. Warnings:

../../kern/kern_fork.c: In function `fork1':
../../kern/kern_fork.c:358: warning: cast from pointer to integer of
different size
../../kern/kern_fork.c:359: warning: cast from pointer to integer of
different size

These lines contain expressions:

(unsigned)&p1->p_procsig->ps_endcopy
(unsigned)&p1->p_procsig->ps_begincopy

Sizeof(int) == 4, sizeof(void*) == 8, hence conversion can lose significant
bits (possibly, it does not result in some badness in current environment,
but looks dirty). Another similar warnings:

../../nfs/nfs_socket.c: In function `nfs_receive':
../../nfs/nfs_socket.c:599: warning: int format, different type arg (arg 3)
../../nfs/nfs_socket.c:599: warning: int format, different type arg (arg 4)
../../pci/if_ax.c: In function `ax_attach':
../../pci/if_ax.c:1149: warning: passing arg 3 of `pci_map_port' from
incompatible pointer type
../../pci/if_ax.c:1209: warning: cast from pointer to integer of different
size
../../pci/if_pn.c: In function `pn_attach':
../../pci/if_pn.c:1045: warning: passing arg 3 of `pci_map_port' from
incompatible pointer type
../../pci/if_pn.c:1108: warning: cast from pointer to integer of different
size
../../pci/if_pn.c: In function `pn_rx_bug_war':
../../pci/if_pn.c:1423: warning: cast from pointer to integer of different
size
../../pci/pci.c: In function `pci_readcfg':
../../pci/pci.c:363: warning: implicit declaration of function
`alpha_platform_assign_pciintr'
../../pci/pci.c: In function `pci_ioctl':
../../pci/pci.c:755: warning: int format, different type arg (arg 4)
../../pci/pci.c:755: warning: int format, different type arg (arg 5)

... and so on and so forth...

Also, warnings during compiling of port devel/m4.

Also, the similar in ports/editors/joe. (Moreover, cc1 from gcc dies with
signal 11 on compiling joe; egcc compiles successfully.)

If send separately, there is material for more than 30 PRs. ;|
What can I believe in? ;) And what politics is to be taken - to send PR's,
or to complain in freebsd-alpha@, or another way?



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990826221204.B15776>