[parisc-linux] linux-2.4.18-pa19 fpu problem
Joel Soete
joel.soete@freebel.net
Sun, 21 Apr 2002 12:43:30 +0000
This is a multi-part message in MIME format.
--------------060402020006040004050201
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Here is attached a patch to avoid 'implicit' warning at compile time.
It is mainly a lk-math-emu.h file collecting math-emu functions
prototype and also some try to unify the declaration of functions.
Please let me know your opinion.
Humm some other type of warning appear so:
driver.c: In function `handle_fpe':
driver.c:105: warning: passing arg 1 of `decode_fpu' from incompatible
pointer type
driver.c:105: warning: passing arg 2 of `decode_fpu' makes pointer from
integer without a cast
...
fpudispatch.c: In function `decode_0c':
fpudispatch.c:372: warning: passing arg 1 of `dbl_fsqrt' from
incompatible pointer type
fpudispatch.c:372: warning: passing arg 3 of `dbl_fsqrt' from
incompatible pointer type
fpudispatch.c:384: warning: passing arg 1 of `dbl_frnd' from
incompatible pointer type
fpudispatch.c:384: warning: passing arg 3 of `dbl_frnd' from
incompatible pointer type
fpudispatch.c:413: warning: passing arg 3 of `sgl_to_dbl_fcnvff' from
incompatible pointer type
fpudispatch.c:416: warning: passing arg 1 of `dbl_to_sgl_fcnvff' from
incompatible pointer type
fpudispatch.c:427: warning: passing arg 3 of `sgl_to_dbl_fcnvxf' from
incompatible pointer type
fpudispatch.c:430: warning: passing arg 1 of `dbl_to_sgl_fcnvxf' from
incompatible pointer type
fpudispatch.c:433: warning: passing arg 1 of `dbl_to_dbl_fcnvxf' from
incompatible pointer type
fpudispatch.c:433: warning: passing arg 3 of `dbl_to_dbl_fcnvxf' from
incompatible pointer type
fpudispatch.c:442: warning: passing arg 3 of `sgl_to_dbl_fcnvfx' from
incompatible pointer type
fpudispatch.c:445: warning: passing arg 1 of `dbl_to_sgl_fcnvfx' from
incompatible pointer type
fpudispatch.c:448: warning: passing arg 1 of `dbl_to_dbl_fcnvfx' from
incompatible pointer type
fpudispatch.c:448: warning: passing arg 3 of `dbl_to_dbl_fcnvfx' from
incompatible pointer type
fpudispatch.c:457: warning: passing arg 3 of `sgl_to_dbl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:460: warning: passing arg 1 of `dbl_to_sgl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:463: warning: passing arg 1 of `dbl_to_dbl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:463: warning: passing arg 3 of `dbl_to_dbl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:472: warning: passing arg 3 of `sgl_to_dbl_fcnvuf' from
incompatible pointer type
fpudispatch.c:475: warning: passing arg 1 of `dbl_to_sgl_fcnvuf' from
incompatible pointer type
fpudispatch.c:478: warning: passing arg 1 of `dbl_to_dbl_fcnvuf' from
incompatible pointer type
fpudispatch.c:478: warning: passing arg 3 of `dbl_to_dbl_fcnvuf' from
incompatible pointer type
fpudispatch.c:487: warning: passing arg 3 of `sgl_to_dbl_fcnvfu' from
incompatible pointer type
fpudispatch.c:490: warning: passing arg 1 of `dbl_to_sgl_fcnvfu' from
incompatible pointer type
fpudispatch.c:493: warning: passing arg 1 of `dbl_to_dbl_fcnvfu' from
incompatible pointer type
fpudispatch.c:493: warning: passing arg 3 of `dbl_to_dbl_fcnvfu' from
incompatible pointer type
fpudispatch.c:502: warning: passing arg 3 of `sgl_to_dbl_fcnvfut' from
incompatible pointer type
fpudispatch.c:505: warning: passing arg 1 of `dbl_to_sgl_fcnvfut' from
incompatible pointer type
fpudispatch.c:508: warning: passing arg 1 of `dbl_to_dbl_fcnvfut' from
incompatible pointer type
fpudispatch.c:508: warning: passing arg 3 of `dbl_to_dbl_fcnvfut' from
incompatible pointer type
fpudispatch.c:552: warning: passing arg 1 of `dbl_fcmp' from
incompatible pointer type
fpudispatch.c:552: warning: passing arg 2 of `dbl_fcmp' from
incompatible pointer type
fpudispatch.c:583: warning: passing arg 1 of `dbl_fcmp' from
incompatible pointer type
fpudispatch.c:583: warning: passing arg 2 of `dbl_fcmp' from
incompatible pointer type
fpudispatch.c:629: warning: passing arg 1 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:629: warning: passing arg 2 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:629: warning: passing arg 3 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:641: warning: passing arg 1 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c:641: warning: passing arg 2 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c:641: warning: passing arg 3 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c:653: warning: passing arg 1 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:653: warning: passing arg 2 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:653: warning: passing arg 3 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:665: warning: passing arg 1 of `dbl_fdiv' from
incompatible pointer type
fpudispatch.c:665: warning: passing arg 2 of `dbl_fdiv' from
incompatible pointer type
fpudispatch.c:665: warning: passing arg 3 of `dbl_fdiv' from
incompatible pointer type
fpudispatch.c:677: warning: passing arg 1 of `dbl_frem' from
incompatible pointer type
fpudispatch.c:677: warning: passing arg 2 of `dbl_frem' from
incompatible pointer type
fpudispatch.c:677: warning: passing arg 3 of `dbl_frem' from
incompatible pointer type
fpudispatch.c: In function `decode_0e':
fpudispatch.c:783: warning: passing arg 1 of `dbl_fsqrt' from
incompatible pointer type
fpudispatch.c:783: warning: passing arg 3 of `dbl_fsqrt' from
incompatible pointer type
fpudispatch.c:795: warning: passing arg 1 of `dbl_frnd' from
incompatible pointer type
fpudispatch.c:795: warning: passing arg 3 of `dbl_frnd' from
incompatible pointer type
fpudispatch.c:822: warning: passing arg 3 of `sgl_to_dbl_fcnvff' from
incompatible pointer type
fpudispatch.c:825: warning: passing arg 1 of `dbl_to_sgl_fcnvff' from
incompatible pointer type
fpudispatch.c:836: warning: passing arg 3 of `sgl_to_dbl_fcnvxf' from
incompatible pointer type
fpudispatch.c:839: warning: passing arg 1 of `dbl_to_sgl_fcnvxf' from
incompatible pointer type
fpudispatch.c:842: warning: passing arg 1 of `dbl_to_dbl_fcnvxf' from
incompatible pointer type
fpudispatch.c:842: warning: passing arg 3 of `dbl_to_dbl_fcnvxf' from
incompatible pointer type
fpudispatch.c:851: warning: passing arg 3 of `sgl_to_dbl_fcnvfx' from
incompatible pointer type
fpudispatch.c:854: warning: passing arg 1 of `dbl_to_sgl_fcnvfx' from
incompatible pointer type
fpudispatch.c:857: warning: passing arg 1 of `dbl_to_dbl_fcnvfx' from
incompatible pointer type
fpudispatch.c:857: warning: passing arg 3 of `dbl_to_dbl_fcnvfx' from
incompatible pointer type
fpudispatch.c:866: warning: passing arg 3 of `sgl_to_dbl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:869: warning: passing arg 1 of `dbl_to_sgl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:872: warning: passing arg 1 of `dbl_to_dbl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:872: warning: passing arg 3 of `dbl_to_dbl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:881: warning: passing arg 3 of `sgl_to_dbl_fcnvuf' from
incompatible pointer type
fpudispatch.c:884: warning: passing arg 1 of `dbl_to_sgl_fcnvuf' from
incompatible pointer type
fpudispatch.c:887: warning: passing arg 1 of `dbl_to_dbl_fcnvuf' from
incompatible pointer type
fpudispatch.c:887: warning: passing arg 3 of `dbl_to_dbl_fcnvuf' from
incompatible pointer type
fpudispatch.c:896: warning: passing arg 3 of `sgl_to_dbl_fcnvfu' from
incompatible pointer type
fpudispatch.c:899: warning: passing arg 1 of `dbl_to_sgl_fcnvfu' from
incompatible pointer type
fpudispatch.c:902: warning: passing arg 1 of `dbl_to_dbl_fcnvfu' from
incompatible pointer type
fpudispatch.c:902: warning: passing arg 3 of `dbl_to_dbl_fcnvfu' from
incompatible pointer type
fpudispatch.c:911: warning: passing arg 3 of `sgl_to_dbl_fcnvfut' from
incompatible pointer type
fpudispatch.c:914: warning: passing arg 1 of `dbl_to_sgl_fcnvfut' from
incompatible pointer type
fpudispatch.c:917: warning: passing arg 1 of `dbl_to_dbl_fcnvfut' from
incompatible pointer type
fpudispatch.c:917: warning: passing arg 3 of `dbl_to_dbl_fcnvfut' from
incompatible pointer type
fpudispatch.c:958: warning: passing arg 1 of `dbl_fcmp' from
incompatible pointer type
fpudispatch.c:958: warning: passing arg 2 of `dbl_fcmp' from
incompatible pointer type
fpudispatch.c:990: warning: passing arg 1 of `dbl_fcmp' from
incompatible pointer type
fpudispatch.c:990: warning: passing arg 2 of `dbl_fcmp' from
incompatible pointer type
fpudispatch.c:1027: warning: passing arg 1 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:1027: warning: passing arg 2 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:1027: warning: passing arg 3 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:1036: warning: passing arg 1 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c:1036: warning: passing arg 2 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c:1036: warning: passing arg 3 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c:1071: warning: passing arg 1 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1071: warning: passing arg 2 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1071: warning: passing arg 3 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1081: warning: passing arg 1 of `dbl_fdiv' from
incompatible pointer type
fpudispatch.c:1081: warning: passing arg 2 of `dbl_fdiv' from
incompatible pointer type
fpudispatch.c:1081: warning: passing arg 3 of `dbl_fdiv' from
incompatible pointer type
fpudispatch.c:1090: warning: passing arg 1 of `dbl_frem' from
incompatible pointer type
fpudispatch.c:1090: warning: passing arg 2 of `dbl_frem' from
incompatible pointer type
fpudispatch.c:1090: warning: passing arg 3 of `dbl_frem' from
incompatible pointer type
fpudispatch.c: In function `decode_06':
fpudispatch.c:1143: warning: passing arg 1 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1143: warning: passing arg 2 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1143: warning: passing arg 3 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1146: warning: passing arg 1 of `dbl_to_sgl_fcnvfxt' from
incompatible pointer type
fpudispatch.c:1152: warning: passing arg 1 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1152: warning: passing arg 2 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1152: warning: passing arg 3 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1155: warning: passing arg 1 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:1155: warning: passing arg 2 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:1155: warning: passing arg 3 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:1167: warning: passing arg 1 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1167: warning: passing arg 2 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1167: warning: passing arg 3 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1170: warning: passing arg 1 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:1170: warning: passing arg 2 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c:1170: warning: passing arg 3 of `dbl_fadd' from
incompatible pointer type
fpudispatch.c: In function `decode_26':
fpudispatch.c:1278: warning: passing arg 1 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1278: warning: passing arg 2 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1278: warning: passing arg 3 of `dbl_fmpy' from
incompatible pointer type
fpudispatch.c:1280: warning: passing arg 1 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c:1280: warning: passing arg 2 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c:1280: warning: passing arg 3 of `dbl_fsub' from
incompatible pointer type
fpudispatch.c: In function `decode_2e':
fpudispatch.c:1360: warning: passing arg 1 of `dbl_fmpynfadd' from
incompatible pointer type
fpudispatch.c:1360: warning: passing arg 2 of `dbl_fmpynfadd' from
incompatible pointer type
fpudispatch.c:1360: warning: passing arg 3 of `dbl_fmpynfadd' from
incompatible pointer type
fpudispatch.c:1360: warning: passing arg 5 of `dbl_fmpynfadd' from
incompatible pointer type
fpudispatch.c:1363: warning: passing arg 1 of `dbl_fmpyfadd' from
incompatible pointer type
fpudispatch.c:1363: warning: passing arg 2 of `dbl_fmpyfadd' from
incompatible pointer type
fpudispatch.c:1363: warning: passing arg 3 of `dbl_fmpyfadd' from
incompatible pointer type
fpudispatch.c:1363: warning: passing arg 5 of `dbl_fmpyfadd' from
incompatible pointer type
What do you suggest for those (let like this or submit to HP (see Paul
comment) to improve their code)?
Matthew Wilcox wrote:
> On Wed, Apr 17, 2002 at 11:02:54AM +0200, joel.soete@freebel.net wrote:
>
>>Here is some trace I get from the kernel (2.4.18-pa19) make (after a make
>>oldconfig):
>
> ...
>
>>I do think that lacks a header to define some function.
>
>
> this code is crufty old HPUX stuff... the warnings have been there
> basically forever, and nobody's bothered to fix them. Nobody's found a
> problem either :-) If you want to eliminate these warnings by declaring
> everything properly, feel free to send a patch, but I don't think it's
> very important.
>
--------------060402020006040004050201
Content-Type: application/gzip;
name="math-emu.patch.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="math-emu.patch.gz"
H4sICJ63wjwAA21hdGgtZW11LnBhdGNoAOVbW1PbRhR+tn/FTvJCsI118QXstEMawiRtoRkg
nXbSjEdIK1sT3aILMe30v/fs6rq6y8KUtDzg9V6/851vzx6JRdFUFY0uJd9BoxHeyrqv4O9e
/3qd+nakYBubCjIkbzPChn9kOdp6rGDZUvAKOh3JcRNT2x+NRhWDeheWiV7ZDuKniDtZiNMF
xyOB44T+YDAonrF37QdDBB7xk8WEj4ecnqLRlBvO0AB+n6DT0z56rpkUP3opucbY1daaqVpH
m+/7aHyYajQkeaOZeOzeu2MDLF3ZjnYneRh6osNxH/UH0D3q7VlI1rFkArzPGN0Zumb6W9Jt
EE/4TP88io3ePOsPAIlvKlhF57bvepLnuysHrzXXww40QQOsXtBGquIvH7lPgETZ2VeqpCiM
m4KKIg8FLU2dE/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