[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH] target-mips: Remove unused inlin
Re: [Qemu-trivial] [Qemu-devel] [PATCH] target-mips: Remove unused inline function
Mon, 23 Apr 2012 21:59:23 +0200
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:22.214.171.124) Gecko/20120317 Iceowl/1.0b1 Icedove/3.0.11
Am 19.03.2012 14:08, schrieb Stefan Weil:
Am 19.03.2012 13:43, schrieb Andreas Färber:
Am 19.03.2012 13:31, schrieb Stefan Weil:
Am 19.03.2012 13:17, schrieb Stefan Hajnoczi:
On Mon, Mar 19, 2012 at 10:33 AM, Andreas Färber <address@hidden>
Am 17.03.2012 13:00, schrieb Stefan Weil:
Function set_HILO is not needed anywhere.
Does this cause any warnings? Given the state mips is currently in
patches queuing), I'd suggest to hold this off for a bit, but I don't
really mind either way.
Commit message does not mention if this was never used in the first
place or became unused during TCG conversion or some other
It doesn't cause any warning on my build here, so there's no strict
need for this patch.
I have dropped the patch for now. Please resend if you want to get it
in and address Andreas' questions.
the function was never used. It should be removed just to keep
the code clean and free of unneeded functions. I noticed this
function when I looked after the functions which follow
(set_HIT0_LO, ...). Those functions are very similar, so I
think set_HILO was the copy master for those functions
(maybe used in a local code version whic was never committed).
Could you please check that it is not used by Richard Sandiford's,
Khansa Butt's and Jia Liu's patches? Then I'll happily ack.
I looked for set_HI_LO in my local qemu-devel mailings from
2011 and 2012 and found only my own patches.
You can also search the QEMU mailing list archive for set_HILO. Try
It also shows no patches which include 'set_HILO' from the people you
This patch conflicts with the new one, but it was also sent by me
and I knew that I'd have to rebase it:
It's this patch which made me aware that set_HILO is unused.
All that code was added for the V54xx core family and is only
used for V54xx (or not used at all).
Static inline functions never create a gcc warning when they
are unused, as far as I know. Maybe other tools like static code
analysers raise a warning.
Sure, I was thinking of the static analysis tools you occasionally
posted patches for.
Actually, they did complain, but I did not care then:
cppcheck-20110721.log:qemu/target-mips/op_helper.c:1: style: The
function 'set_HILO' is never used
My cppcheck-20111029.log lists 1372 functions which are never used in
Many of those are false positives (for examples caused by the way how
creates helper function names using macros), so I did not care.
Are there any questions remaining?
I know that a lot of MIPS related patches are waiting for commit,
but maybe at least this really trivial one can finally find its way
|[Prev in Thread]
||[Next in Thread]|
- Re: [Qemu-trivial] [Qemu-devel] [PATCH] target-mips: Remove unused inline function,
Stefan Weil <=