linux/arch/powerpc
David Gibson abd0a0e791 powerpc/mm: Clean up error handling for htab_remove_mapping
Currently, the only error that htab_remove_mapping() can report is -EINVAL,
if removal of bolted HPTEs isn't implemeted for this platform.  We make
a few clean ups to the handling of this:

 * EINVAL isn't really the right code - there's nothing wrong with the
   function's arguments - use ENODEV instead
 * We were also printing a warning message, but that's a decision better
   left up to the callers, so remove it
 * One caller is vmemmap_remove_mapping(), which will just BUG_ON() on
   error, making the warning message redundant, so no change is needed
   there.
 * The other caller is remove_section_mapping().  This is called in the
   memory hot remove path at a point after vmemmap_remove_mapping() so
   if hpte_removebolted isn't implemented, we'd expect to have already
   BUG()ed anyway.  Put a WARN_ON() here, in lieu of a printk() since this
   really shouldn't be happening.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-03-01 22:04:17 +11:00
..
boot powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
configs powerpc/powernv: Add AST graphics driver to powernv_defconfig 2016-02-24 17:14:53 +11:00
crypto powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
include powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
kernel powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
kvm powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
lib powerpc: Create disable_kernel_{fp,altivec,vsx,spe}() 2015-12-01 13:52:25 +11:00
math-emu
mm powerpc/mm: Clean up error handling for htab_remove_mapping 2016-03-01 22:04:17 +11:00
net net: filter: make JITs zero A for SKF_AD_ALU_XOR_X 2016-01-06 00:43:52 -05:00
oprofile powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
perf powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
platforms powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
sysdev powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
xmon powerpc/xmon: Add xmon command to dump process/task similar to ps(1) 2016-02-10 10:22:04 +11:00
Kconfig powerpc fixes for 4.5 #3 2016-02-25 21:52:58 +11:00
Kconfig.debug powerpc updates for 4.5 2016-01-15 13:18:47 -08:00
Makefile powerpc/cell: Drop CONFIG_TUNE_CELL in favour of CONFIG_CELL_CPU 2015-10-19 19:51:18 +11:00
relocs_check.sh powerpc: Convert relocs_check to a shell script using grep 2015-03-23 14:47:39 +11:00