On Tue, Jun 20, 2017 at 9:51 AM, Jerry Hoemann <[email protected]> wrote: > Populate bus_dsm_mask and use it to filter dsm calls that user can > make through the pass thru interface. > > Signed-off-by: Jerry Hoemann <[email protected]> > --- > drivers/acpi/nfit/core.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c > index b46fca2..9d281a4 100644 > --- a/drivers/acpi/nfit/core.c > +++ b/drivers/acpi/nfit/core.c > @@ -253,6 +253,7 @@ int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, > struct nvdimm *nvdimm, > cmd_name = nvdimm_bus_cmd_name(cmd); > cmd_mask = nd_desc->cmd_mask; > dsm_mask = cmd_mask; > + if (cmd == ND_CMD_CALL) dsm_mask = nd_desc->bus_dsm_mask;
Checkpatch complains about this: ERROR: trailing statements should be on next line #118: FILE: drivers/acpi/nfit/core.c:256: + if (cmd == ND_CMD_CALL) dsm_mask = nd_desc->bus_dsm_mask;

