Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/sclp: remove unhandled memory notifier type

Remove memory notifier types which are unhandled by s390. Unhandled
memory notifier types are covered by default case.

Link: https://lkml.kernel.org/r/20240108132747.3238763-4-sumanthk@linux.ibm.com
Suggested-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sumanth Korikkar and committed by
Andrew Morton
fb6d5eb9 1a65b73a

-3
-3
drivers/s390/char/sclp_cmd.c
··· 340 340 if (contains_standby_increment(start, start + size)) 341 341 rc = -EPERM; 342 342 break; 343 - case MEM_ONLINE: 344 - case MEM_CANCEL_OFFLINE: 345 - break; 346 343 case MEM_GOING_ONLINE: 347 344 rc = sclp_mem_change_state(start, size, 1); 348 345 break;