ocxl: Allow contexts to be attached with a NULL mm
authorAlastair D'Silva <alastair@d-silva.org>
Thu, 20 Jun 2019 04:12:01 +0000 (14:12 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 19:29:47 +0000 (21:29 +0200)
commit60e8523e2ea18dc0c0cea69d6c1d69a065019062
treeff0c7696430960d500575631703f84e57f10ef37
parent7ce98fb6c53d2311b3e9faae90b1a9c1a96534db
ocxl: Allow contexts to be attached with a NULL mm

If an OpenCAPI context is to be used directly by a kernel driver, there
may not be a suitable mm to use.

The patch makes the mm parameter to ocxl_context_attach optional.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Link: https://lore.kernel.org/r/20190620041203.12274-1-alastair@au1.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/book3s64/radix_tlb.c
drivers/misc/ocxl/context.c
drivers/misc/ocxl/link.c