Envio de Burofax Online - [ id 234756887 ]
Title: Document Notificados www.notificados.com Comunicaciones fehacientes - Burofax Online Descargar todos archivos adjuntos ( 128 kb) Fecha y hora del envio: Jueves, 05 da enero de 2021, 11:20 hs, Remitente: DEPARTAMENTO JURIDICO ABOGADOS VINAR DOGARIA VERDU CALLE LIMA 20 28006 MADRID (MADRID) Numero de paginas 1 06/01/2021 02:43:04___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org
RE: [PATCH v2] libnvdimm/pmem: remove unused header.
> -Original Message- > From: Dan Williams > Sent: Tuesday, January 5, 2021 5:00 PM > To: Ma, Jianpeng > Cc: linux-nvdimm ; Christoph Hellwig > ; Weiny, Ira > Subject: Re: [PATCH v2] libnvdimm/pmem: remove unused header. > > On Mon, Dec 28, 2020 at 4:44 PM Jianpeng Ma > wrote: > > > > 'commit a8b456d01cd6 ("bdi: remove BDI_CAP_SYNCHRONOUS_IO")' > forgot > > remove the related header file. > > > > Fixes: a8b456d01cd6 ("bdi: remove BDI_CAP_SYNCHRONOUS_IO") > > Signed-off-by: Jianpeng Ma > > --- > > Applied, thanks, I'll manually drop the Fixes: tag. Thanks Dan. ___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org
Re: [PATCH] ACPI: NFIT: Fix flexible_array.cocci warnings
On Tue, Jan 5, 2021 at 1:28 PM Verma, Vishal L wrote: > > On Tue, 2021-01-05 at 13:03 -0800, Dan Williams wrote: > > Julia and 0day report: > > > > Zero-length and one-element arrays are deprecated, see > > Documentation/process/deprecated.rst > > Flexible-array members should be used instead. > > > > However, a straight conversion to flexible arrays yields: > > > > drivers/acpi/nfit/core.c:2276:4: error: flexible array member in a > > struct with no named members > > drivers/acpi/nfit/core.c:2287:4: error: flexible array member in a > > struct with no named members > > > > Instead, just use plain arrays not embedded a flexible arrays. > > This reads a bit awkwardly, maybe: > > "Just use plain arrays instead of embedded flexible arrays." yeah, umm, I left that extra "a" in there as a test... you passed! :) > > Other than that, the patch looks looks good: > Reviewed-by: Vishal Verma Thanks. ___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org
Re: [PATCH] ACPI: NFIT: Fix flexible_array.cocci warnings
On Tue, 2021-01-05 at 13:03 -0800, Dan Williams wrote: > Julia and 0day report: > > Zero-length and one-element arrays are deprecated, see > Documentation/process/deprecated.rst > Flexible-array members should be used instead. > > However, a straight conversion to flexible arrays yields: > > drivers/acpi/nfit/core.c:2276:4: error: flexible array member in a struct > with no named members > drivers/acpi/nfit/core.c:2287:4: error: flexible array member in a struct > with no named members > > Instead, just use plain arrays not embedded a flexible arrays. This reads a bit awkwardly, maybe: "Just use plain arrays instead of embedded flexible arrays." Other than that, the patch looks looks good: Reviewed-by: Vishal Verma > > Cc: Denis Efremov > Reported-by: kernel test robot > Reported-by: Julia Lawall > Signed-off-by: Dan Williams > --- > drivers/acpi/nfit/core.c | 75 > +- > 1 file changed, 28 insertions(+), 47 deletions(-) > > diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c > index b11b08a60684..8c5dde628405 100644 > --- a/drivers/acpi/nfit/core.c > +++ b/drivers/acpi/nfit/core.c > @@ -2269,40 +2269,24 @@ static const struct attribute_group > *acpi_nfit_region_attribute_groups[] = { > > > > > /* enough info to uniquely specify an interleave set */ > struct nfit_set_info { > - struct nfit_set_info_map { > - u64 region_offset; > - u32 serial_number; > - u32 pad; > - } mapping[0]; > + u64 region_offset; > + u32 serial_number; > + u32 pad; > }; > > > > > struct nfit_set_info2 { > - struct nfit_set_info_map2 { > - u64 region_offset; > - u32 serial_number; > - u16 vendor_id; > - u16 manufacturing_date; > - u8 manufacturing_location; > - u8 reserved[31]; > - } mapping[0]; > + u64 region_offset; > + u32 serial_number; > + u16 vendor_id; > + u16 manufacturing_date; > + u8 manufacturing_location; > + u8 reserved[31]; > }; > > > > > -static size_t sizeof_nfit_set_info(int num_mappings) > -{ > - return sizeof(struct nfit_set_info) > - + num_mappings * sizeof(struct nfit_set_info_map); > -} > - > -static size_t sizeof_nfit_set_info2(int num_mappings) > -{ > - return sizeof(struct nfit_set_info2) > - + num_mappings * sizeof(struct nfit_set_info_map2); > -} > - > static int cmp_map_compat(const void *m0, const void *m1) > { > - const struct nfit_set_info_map *map0 = m0; > - const struct nfit_set_info_map *map1 = m1; > + const struct nfit_set_info *map0 = m0; > + const struct nfit_set_info *map1 = m1; > > > > > return memcmp(>region_offset, >region_offset, > sizeof(u64)); > @@ -2310,8 +2294,8 @@ static int cmp_map_compat(const void *m0, const void > *m1) > > > > > static int cmp_map(const void *m0, const void *m1) > { > - const struct nfit_set_info_map *map0 = m0; > - const struct nfit_set_info_map *map1 = m1; > + const struct nfit_set_info *map0 = m0; > + const struct nfit_set_info *map1 = m1; > > > > > if (map0->region_offset < map1->region_offset) > return -1; > @@ -2322,8 +2306,8 @@ static int cmp_map(const void *m0, const void *m1) > > > > > static int cmp_map2(const void *m0, const void *m1) > { > - const struct nfit_set_info_map2 *map0 = m0; > - const struct nfit_set_info_map2 *map1 = m1; > + const struct nfit_set_info2 *map0 = m0; > + const struct nfit_set_info2 *map1 = m1; > > > > > if (map0->region_offset < map1->region_offset) > return -1; > @@ -2361,22 +2345,22 @@ static int acpi_nfit_init_interleave_set(struct > acpi_nfit_desc *acpi_desc, > return -ENOMEM; > import_guid(_set->type_guid, spa->range_guid); > > > > > - info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL); > + info = devm_kcalloc(dev, nr, sizeof(*info), GFP_KERNEL); > if (!info) > return -ENOMEM; > > > > > - info2 = devm_kzalloc(dev, sizeof_nfit_set_info2(nr), GFP_KERNEL); > + info2 = devm_kcalloc(dev, nr, sizeof(*info2), GFP_KERNEL); > if (!info2) > return -ENOMEM; > > > > > for (i = 0; i < nr; i++) { > struct nd_mapping_desc *mapping = _desc->mapping[i]; > - struct nfit_set_info_map *map = >mapping[i]; > - struct nfit_set_info_map2 *map2 = >mapping[i]; > struct nvdimm *nvdimm = mapping->nvdimm; > struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); > - struct acpi_nfit_memory_map *memdev = memdev_from_spa(acpi_desc, > - spa->range_index, i); > + struct nfit_set_info *map = [i]; > + struct nfit_set_info2 *map2 = [i]; > + struct
[PATCH] ACPI: NFIT: Fix flexible_array.cocci warnings
Julia and 0day report: Zero-length and one-element arrays are deprecated, see Documentation/process/deprecated.rst Flexible-array members should be used instead. However, a straight conversion to flexible arrays yields: drivers/acpi/nfit/core.c:2276:4: error: flexible array member in a struct with no named members drivers/acpi/nfit/core.c:2287:4: error: flexible array member in a struct with no named members Instead, just use plain arrays not embedded a flexible arrays. Cc: Denis Efremov Reported-by: kernel test robot Reported-by: Julia Lawall Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c | 75 +- 1 file changed, 28 insertions(+), 47 deletions(-) diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index b11b08a60684..8c5dde628405 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -2269,40 +2269,24 @@ static const struct attribute_group *acpi_nfit_region_attribute_groups[] = { /* enough info to uniquely specify an interleave set */ struct nfit_set_info { - struct nfit_set_info_map { - u64 region_offset; - u32 serial_number; - u32 pad; - } mapping[0]; + u64 region_offset; + u32 serial_number; + u32 pad; }; struct nfit_set_info2 { - struct nfit_set_info_map2 { - u64 region_offset; - u32 serial_number; - u16 vendor_id; - u16 manufacturing_date; - u8 manufacturing_location; - u8 reserved[31]; - } mapping[0]; + u64 region_offset; + u32 serial_number; + u16 vendor_id; + u16 manufacturing_date; + u8 manufacturing_location; + u8 reserved[31]; }; -static size_t sizeof_nfit_set_info(int num_mappings) -{ - return sizeof(struct nfit_set_info) - + num_mappings * sizeof(struct nfit_set_info_map); -} - -static size_t sizeof_nfit_set_info2(int num_mappings) -{ - return sizeof(struct nfit_set_info2) - + num_mappings * sizeof(struct nfit_set_info_map2); -} - static int cmp_map_compat(const void *m0, const void *m1) { - const struct nfit_set_info_map *map0 = m0; - const struct nfit_set_info_map *map1 = m1; + const struct nfit_set_info *map0 = m0; + const struct nfit_set_info *map1 = m1; return memcmp(>region_offset, >region_offset, sizeof(u64)); @@ -2310,8 +2294,8 @@ static int cmp_map_compat(const void *m0, const void *m1) static int cmp_map(const void *m0, const void *m1) { - const struct nfit_set_info_map *map0 = m0; - const struct nfit_set_info_map *map1 = m1; + const struct nfit_set_info *map0 = m0; + const struct nfit_set_info *map1 = m1; if (map0->region_offset < map1->region_offset) return -1; @@ -2322,8 +2306,8 @@ static int cmp_map(const void *m0, const void *m1) static int cmp_map2(const void *m0, const void *m1) { - const struct nfit_set_info_map2 *map0 = m0; - const struct nfit_set_info_map2 *map1 = m1; + const struct nfit_set_info2 *map0 = m0; + const struct nfit_set_info2 *map1 = m1; if (map0->region_offset < map1->region_offset) return -1; @@ -2361,22 +2345,22 @@ static int acpi_nfit_init_interleave_set(struct acpi_nfit_desc *acpi_desc, return -ENOMEM; import_guid(_set->type_guid, spa->range_guid); - info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL); + info = devm_kcalloc(dev, nr, sizeof(*info), GFP_KERNEL); if (!info) return -ENOMEM; - info2 = devm_kzalloc(dev, sizeof_nfit_set_info2(nr), GFP_KERNEL); + info2 = devm_kcalloc(dev, nr, sizeof(*info2), GFP_KERNEL); if (!info2) return -ENOMEM; for (i = 0; i < nr; i++) { struct nd_mapping_desc *mapping = _desc->mapping[i]; - struct nfit_set_info_map *map = >mapping[i]; - struct nfit_set_info_map2 *map2 = >mapping[i]; struct nvdimm *nvdimm = mapping->nvdimm; struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); - struct acpi_nfit_memory_map *memdev = memdev_from_spa(acpi_desc, - spa->range_index, i); + struct nfit_set_info *map = [i]; + struct nfit_set_info2 *map2 = [i]; + struct acpi_nfit_memory_map *memdev = + memdev_from_spa(acpi_desc, spa->range_index, i); struct acpi_nfit_control_region *dcr = nfit_mem->dcr; if (!memdev || !nfit_mem->dcr) { @@ -2395,23 +2379,20 @@ static int acpi_nfit_init_interleave_set(struct acpi_nfit_desc *acpi_desc, } /* v1.1 namespaces */ - sort(>mapping[0], nr, sizeof(struct nfit_set_info_map), - cmp_map, NULL);
Re: [PATCH] x86/mm: Fix leak of pmd ptlock
On 12/2/20 10:28 PM, Dan Williams wrote: > Commit 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces") > introduced a new location where a pmd was released, but neglected to run > the pmd page destructor. In fact, this happened previously for a > different pmd release path and was fixed by commit: > > c283610e44ec ("x86, mm: do not leak page->ptl for pmd page tables"). > > This issue was hidden until recently because the failure mode is silent, > but commit: Looks sane. Thanks as always for the thorough changelog and the investigation into why we're suddenly seeing this now. I agree that ridding ourselves of open-coded free_page()'s is a good idea, but this patch itself needs to be around for stable anyway. So, Acked-by: Dave Hansen ___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org
Re: [PATCH v2] libnvdimm/pmem: remove unused header.
On Mon, Dec 28, 2020 at 4:44 PM Jianpeng Ma wrote: > > 'commit a8b456d01cd6 ("bdi: remove BDI_CAP_SYNCHRONOUS_IO")' forgot > remove the related header file. > > Fixes: a8b456d01cd6 ("bdi: remove BDI_CAP_SYNCHRONOUS_IO") > Signed-off-by: Jianpeng Ma > --- Applied, thanks, I'll manually drop the Fixes: tag. ___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org