Thread (42 messages) 42 messages, 6 authors, 2021-12-08

Re: [PATCH V7 14/18] memremap_pages: Add memremap.pks_fault_mode

From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
Date: 2021-08-11 19:01:40
Also in: lkml, nvdimm

On Tue, 2021-08-03 at 21:32 -0700, ira.weiny@intel.com wrote:
+static int param_set_pks_fault_mode(const char *val, const struct
kernel_param *kp)
+{
+       int ret = -EINVAL;
+
+       if (!sysfs_streq(val, "relaxed")) {
+               pks_fault_mode = PKS_MODE_RELAXED;
+               ret = 0;
+       } else if (!sysfs_streq(val, "strict")) {
+               pks_fault_mode = PKS_MODE_STRICT;
+               ret = 0;
+       }
+
+       return ret;
+}
+
Looks like !sysfs_streq() should be just sysfs_streq().
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help