Building mips with options DEBUG is broken for me in this function.
Removing this dead code per discussion with alc
Differential D3206
Remove dead pmap-pvdump from i386, arm, mips. Fixes mips DEBUG builds kbowling on Jul 26 2015, 12:30 PM. Authored by Tags Referenced Files
Details
Diff Detail
Event TimelineComment Actions This also matches the pmap_pvdump() function in arm/arm/pmap-v6-new.c I suspect this is "the right thing to do here" Comment Actions Hrm, since this is used for MIPS64, I did a test build and it fails. cc1: warnings being treated as errors
Comment Actions Let me do a thing to update this change so that it builds for mips/mips64 debug kernels. Comment Actions Please give this a once over. I've testbuilt this for the RSPRO(mips32) and MALTA64(mips64) kernels. The original patch would fail for MIPS64 with: >>> stage 3.2: building everything -------------------------------------------------------------- cc1: warnings being treated as errors /home/sbruno/bsd/fbsd_head/sys/mips/mips/pmap.c: In function 'pads': /home/sbruno/bsd/fbsd_head/sys/mips/mips/pmap.c:3315: warning: comparison is always true due to limited range of data type /home/sbruno/bsd/fbsd_head/sys/mips/mips/pmap.c:3318: warning: comparison is always false due to limited range of data type /home/sbruno/bsd/fbsd_head/sys/mips/mips/pmap.c: In function 'pmap_pvdump': /home/sbruno/bsd/fbsd_head/sys/mips/mips/pmap.c:3334: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'vm_offset_t' [-Wformat] /home/sbruno/bsd/fbsd_head/sys/mips/mips/pmap.c:3338: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'vm_offset_t' [-Wformat] --- pmap.o --- *** [pmap.o] Error code 1 Comment Actions That's a different problem. If you're going to fix the printf()s, then remove the silly casting of the variable "pmap".
Comment Actions I tried that: cc1: warnings being treated as errors /home/sbruno/bsd/fbsd_head/sys/mips/mips/pmap.c: In function 'pmap_pvdump': /home/sbruno/bsd/fbsd_head/sys/mips/mips/pmap.c:3348: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'vm_offset_t' [-Wformat]
Comment Actions Note that the warning says "argument 3", which is the pv_va parameter, not "argument 2", which is the pmap parameter. Remove the (void *) from before the pmap parameter.
Comment Actions Drop casts to (void *) Use casts to uintmax_t and %j to allow compile on 32/64 bit mips Comment Actions How about I don't put the rest of my tree in this review. Previous commit comments: Drop casts to (void *) Use casts to uintmax_t and %j to allow compile on 32/64 bit mips
Comment Actions Trying to incorporate feedback. I don't understand the pads changes, nor am I sure if all the ifdef I added is necessary. Comment Actions The changes to pads() for 64-bit processors aren't quite right. In particular, the second access to segtab[] isn't correct. The changes should look more like what you see in the DDB function just above pads(). That said, we should just stop here. I finally did something that I should have done in the first place, specifically, look for how this code is actually used. The answer is that it's long dead code that got cut-and-pasted from i386. So, the right fix is simply to delete it from arm-v6, i386, and mips. Like mips, it only exists in arm-v6 because that pmap was also copied from i386. Comment Actions Ok, I had no interest in the function just ran into the build error while investigating unrelated problems on a device. Removed per review. |