[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yh64SuAXpqMt7RFG@iweiny-desk3>
Date: Tue, 1 Mar 2022 16:20:26 -0800
From: Ira Weiny <ira.weiny@...el.com>
To: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
Cc: "hpa@...or.com" <hpa@...or.com>,
"Williams, Dan J" <dan.j.williams@...el.com>,
"dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>,
"Yu, Fenghua" <fenghua.yu@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH V8 39/44] memremap_pages: Add memremap.pks_fault_mode
On Mon, Jan 31, 2022 at 05:16:26PM -0800, Edgecombe, Rick P wrote:
> On Thu, 2022-01-27 at 09:55 -0800, ira.weiny@...el.com wrote:
> > +static int param_get_pks_fault_mode(char *buffer, const struct
> > kernel_param *kp)
> > +{
> > + int ret = 0;
> This doesn't need to be initialized.
Thanks, fixed,
Ira
>
> > +
> > + switch (pks_fault_mode) {
> > + case PKS_MODE_STRICT:
> > + ret = sysfs_emit(buffer, "strict\n");
> > + break;
> > + case PKS_MODE_RELAXED:
> > + ret = sysfs_emit(buffer, "relaxed\n");
> > + break;
> > + default:
> > + ret = sysfs_emit(buffer, "<unknown>\n");
> > + break;
> > + }
> > +
> > + return ret;
> > +}
Powered by blists - more mailing lists