aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/realmode
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2012-11-16 13:56:35 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2012-11-16 16:42:09 -0800
commit05a476b6e3795f205806662bf09ab95774266292 (patch)
tree4fc68956b8c9fdb1f7bd37c12053aa28374477ec /arch/x86/realmode
parent7d74275d39def4d3ccc8cf4725388bf79ef13861 (diff)
downloadkernel_goldelico_gta04-05a476b6e3795f205806662bf09ab95774266292.zip
kernel_goldelico_gta04-05a476b6e3795f205806662bf09ab95774266292.tar.gz
kernel_goldelico_gta04-05a476b6e3795f205806662bf09ab95774266292.tar.bz2
x86: Drop 4 unnecessary calls to __pa_symbol
While debugging the __pa_symbol inline patch I found that there were a couple spots where __pa_symbol was used as follows: __pa_symbol(x) - __pa_symbol(y) The compiler had reduced them to: x - y Since we also support a debug case where __pa_symbol is a function call it would probably be useful to just change the two cases I found so that they are always just treated as "x - y". As such I am casting the values to phys_addr_t and then doing simple subtraction so that the correct type and value is returned. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Link: http://lkml.kernel.org/r/20121116215552.8521.68085.stgit@ahduyck-cp1.jf.intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/realmode')
0 files changed, 0 insertions, 0 deletions