linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warnings after merge of the mm tree
@ 2022-11-22  6:50 Stephen Rothwell
  2022-11-22  9:24 ` [PATCH] mm: fix indentation of bdi sysfs description Bagas Sanjaya
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2022-11-22  6:50 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Stefan Roesch, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 674 bytes --]

Hi all,

After merging the mm tree, today's linux-next build (htmldocs) produced
thess warnings:

/home/sfr/next/next/Documentation/ABI/testing/sysfs-class-bdi:76: ERROR: Unexpected indentation.
/home/sfr/next/next/Documentation/ABI/testing/sysfs-class-bdi:89: ERROR: Unexpected indentation.
/home/sfr/next/next/Documentation/ABI/testing/sysfs-class-bdi:48: ERROR: Unexpected indentation.

Introduced by commit

  93e6d447506d ("mm: document /sys/class/bdi/<bdi>/min_bytes knob")
  a0eef74439b2 ("mm: document /sys/class/bdi/<bdi>/max_ratio_fine knob")
  3aafa9ff1d4f ("mm: document /sys/class/bdi/<bdi>/min_ratio_fine knob")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [PATCH] mm: fix indentation of bdi sysfs description
  2022-11-22  6:50 linux-next: build warnings after merge of the mm tree Stephen Rothwell
@ 2022-11-22  9:24 ` Bagas Sanjaya
  0 siblings, 0 replies; 23+ messages in thread
From: Bagas Sanjaya @ 2022-11-22  9:24 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Linux Next Mailing List, Linux Documentation
  Cc: Stefan Roesch, Andrew Morton, Bagas Sanjaya, Stephen Rothwell

Stephen Rothwell reported htmldocs warnings when merging mm tree:

Documentation/ABI/testing/sysfs-class-bdi:76: WARNING: Unexpected indentation.
Documentation/ABI/testing/sysfs-class-bdi:89: WARNING: Unexpected indentation.
Documentation/ABI/testing/sysfs-class-bdi:48: WARNING: Unexpected indentation.

These warnings are due to inconsistent indentation in description of bdi
sysfs symbols.

Fix these by following indentation of surrounding text.

Link: https://lore.kernel.org/linux-next/20221122175057.52f0cd9f@canb.auug.org.au/
Fixes: 93e6d447506d8a ("mm: document /sys/class/bdi/<bdi>/min_bytes knob")
Fixes: a0eef74439b213 ("mm: document /sys/class/bdi/<bdi>/max_ratio_fine knob")
Fixes: 3aafa9ff1d4f67 ("mm: document /sys/class/bdi/<bdi>/min_ratio_fine knob")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 Documentation/ABI/testing/sysfs-class-bdi | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-class-bdi b/Documentation/ABI/testing/sysfs-class-bdi
index b4ed0db680cf69..0d2abd88a18cbd 100644
--- a/Documentation/ABI/testing/sysfs-class-bdi
+++ b/Documentation/ABI/testing/sysfs-class-bdi
@@ -54,8 +54,8 @@ Description:
 
 	The 'min_ratio_fine' parameter allows assigning a minimum reserve
 	of the write-back cache to a particular device. The value is
-    expressed as part of 1 million. For example, this is useful for
-    providing a minimum QoS.
+	expressed as part of 1 million. For example, this is useful for
+	providing a minimum QoS.
 
 	(read-write)
 
@@ -78,10 +78,10 @@ Contact:	Stefan Roesch <shr@devkernel.io>
 Description:
 	Allows limiting a particular device to use not more than the
 	given value of the write-back cache.  The value is given as part
-    of 1 million. This is useful in situations where we want to avoid
-    one device taking all or most of the write-back cache.  For example
-    in case of an NFS mount that is prone to get stuck, or a FUSE mount
-    which cannot be trusted to play fair.
+	of 1 million. This is useful in situations where we want to avoid
+	one device taking all or most of the write-back cache.  For example
+	in case of an NFS mount that is prone to get stuck, or a FUSE mount
+	which cannot be trusted to play fair.
 
 	(read-write)
 
@@ -95,7 +95,7 @@ Description:
 
 	The 'min_bytes' parameter allows assigning a minimum
 	percentage of the write-back cache to a particular device
-    expressed in bytes.
+	expressed in bytes.
 	For example, this is useful for providing a minimum QoS.
 
 	(read-write)

base-commit: d45f43b2c12b5ec8492c48574cb015c63304161b
-- 
An old man doll... just what I always wanted! - Clara


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-29 22:49             ` Stephen Rothwell
@ 2024-03-29 23:01               ` Suren Baghdasaryan
  2024-03-29 23:01                 ` Suren Baghdasaryan
  0 siblings, 1 reply; 23+ messages in thread
From: Suren Baghdasaryan @ 2024-03-29 23:01 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Randy Dunlap, Linux Doc Mailing List, Jonathan Corbet,
	Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List

On Fri, Mar 29, 2024 at 3:49 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi Suren,
>
> On Wed, 27 Mar 2024 22:35:56 -0700 Suren Baghdasaryan <surenb@google.com> wrote:
> >
> > https://lore.kernel.org/all/20240327044649.9199-1-rdunlap@infradead.org/
> > which seems to not yet been pulled into mm-unstable should fix the
> > following warnings:
> >
> > include/linux/slab.h:730: warning: Function parameter or struct member
> > '_n' not described in 'kcalloc'
> > include/linux/slab.h:730: warning: Function parameter or struct member
> > '_size' not described in 'kcalloc'
> > include/linux/slab.h:730: warning: Function parameter or struct member
> > '_flags' not described in 'kcalloc'
> > include/linux/slab.h:730: warning: Excess function parameter 'n'
> > description in 'kcalloc'
> > include/linux/slab.h:730: warning: Excess function parameter 'size'
> > description in 'kcalloc'
> > include/linux/slab.h:730: warning: Excess function parameter 'flags'
> > description in 'kcalloc'
> >
> > And https://lore.kernel.org/all/20240326054149.2121-1-rdunlap@infradead.org/
> > should handle the _noprof warnings. I can see this patch in
> > mm-unstable and running "make htmldocs" in mm-unstable does not show
> > the _noprof warnings anymore. Please let me know if I should try some
> > other command to reproduce these.
>
> Those patches entered the mm tree after I had merge it on Thursday.  It
> should all be good on Tuesday.

Perfect. I'll ignore similar reports with _noprof prototype warnings until then.
Thank you!

>
> --
> Cheers,
> Stephen Rothwell

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-29 23:01               ` Suren Baghdasaryan
@ 2024-03-29 23:01                 ` Suren Baghdasaryan
  0 siblings, 0 replies; 23+ messages in thread
From: Suren Baghdasaryan @ 2024-03-29 23:01 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Randy Dunlap, Linux Doc Mailing List, Jonathan Corbet,
	Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List

On Fri, Mar 29, 2024 at 3:49 PM Stephen Rothwell <sfr@canb.auug.orgau> wrote:
>
> Hi Suren,
>
> On Wed, 27 Mar 2024 22:35:56 -0700 Suren Baghdasaryan <surenb@google.com> wrote:
> >
> > https://lore.kernel.org/all/20240327044649.9199-1-rdunlap@infradead.org/
> > which seems to not yet been pulled into mm-unstable should fix the
> > following warnings:
> >
> > include/linux/slab.h:730: warning: Function parameter or struct member
> > '_n' not described in 'kcalloc'
> > include/linux/slab.h:730: warning: Function parameter or struct member
> > '_size' not described in 'kcalloc'
> > include/linux/slab.h:730: warning: Function parameter or struct member
> > '_flags' not described in 'kcalloc'
> > include/linux/slab.h:730: warning: Excess function parameter 'n'
> > description in 'kcalloc'
> > include/linux/slab.h:730: warning: Excess function parameter 'size'
> > description in 'kcalloc'
> > include/linux/slab.h:730: warning: Excess function parameter 'flags'
> > description in 'kcalloc'
> >
> > And https://lore.kernel.org/all/20240326054149.2121-1-rdunlap@infradeadorg/
> > should handle the _noprof warnings. I can see this patch in
> > mm-unstable and running "make htmldocs" in mm-unstable does not show
> > the _noprof warnings anymore. Please let me know if I should try some
> > other command to reproduce these.
>
> Those patches entered the mm tree after I had merge it on Thursday.  It
> should all be good on Tuesday.

Perfect. I'll ignore similar reports with _noprof prototype warnings until then.
Thank you!

>
> --
> Cheers,
> Stephen Rothwell


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-28  5:35           ` Suren Baghdasaryan
@ 2024-03-29 22:49             ` Stephen Rothwell
  2024-03-29 23:01               ` Suren Baghdasaryan
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2024-03-29 22:49 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: Randy Dunlap, Linux Doc Mailing List, Jonathan Corbet,
	Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1370 bytes --]

Hi Suren,

On Wed, 27 Mar 2024 22:35:56 -0700 Suren Baghdasaryan <surenb@google.com> wrote:
>
> https://lore.kernel.org/all/20240327044649.9199-1-rdunlap@infradead.org/
> which seems to not yet been pulled into mm-unstable should fix the
> following warnings:
> 
> include/linux/slab.h:730: warning: Function parameter or struct member
> '_n' not described in 'kcalloc'
> include/linux/slab.h:730: warning: Function parameter or struct member
> '_size' not described in 'kcalloc'
> include/linux/slab.h:730: warning: Function parameter or struct member
> '_flags' not described in 'kcalloc'
> include/linux/slab.h:730: warning: Excess function parameter 'n'
> description in 'kcalloc'
> include/linux/slab.h:730: warning: Excess function parameter 'size'
> description in 'kcalloc'
> include/linux/slab.h:730: warning: Excess function parameter 'flags'
> description in 'kcalloc'
> 
> And https://lore.kernel.org/all/20240326054149.2121-1-rdunlap@infradead.org/
> should handle the _noprof warnings. I can see this patch in
> mm-unstable and running "make htmldocs" in mm-unstable does not show
> the _noprof warnings anymore. Please let me know if I should try some
> other command to reproduce these.

Those patches entered the mm tree after I had merge it on Thursday.  It
should all be good on Tuesday.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-28  4:44         ` Stephen Rothwell
@ 2024-03-28  5:35           ` Suren Baghdasaryan
  2024-03-29 22:49             ` Stephen Rothwell
  0 siblings, 1 reply; 23+ messages in thread
From: Suren Baghdasaryan @ 2024-03-28  5:35 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Randy Dunlap, Linux Doc Mailing List, Jonathan Corbet,
	Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List

On Wed, Mar 27, 2024 at 9:44 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi all,
>
> On Thu, 28 Mar 2024 15:39:47 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > On Mon, 25 Mar 2024 23:16:55 -0700 Suren Baghdasaryan <surenb@google.com> wrote:
> > >
> > > Thanks! I'll change back all the instances in the documentation where
> > > we replaced original names with _noprof versions.
> >
> > I now have the following:
>
> Sorry, some of those are not relevant here, just the _noprof stuff.

https://lore.kernel.org/all/20240327044649.9199-1-rdunlap@infradead.org/
which seems to not yet been pulled into mm-unstable should fix the
following warnings:

include/linux/slab.h:730: warning: Function parameter or struct member
'_n' not described in 'kcalloc'
include/linux/slab.h:730: warning: Function parameter or struct member
'_size' not described in 'kcalloc'
include/linux/slab.h:730: warning: Function parameter or struct member
'_flags' not described in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'n'
description in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'size'
description in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'flags'
description in 'kcalloc'

And https://lore.kernel.org/all/20240326054149.2121-1-rdunlap@infradead.org/
should handle the _noprof warnings. I can see this patch in
mm-unstable and running "make htmldocs" in mm-unstable does not show
the _noprof warnings anymore. Please let me know if I should try some
other command to reproduce these.
Thanks,
Suren.


>
> --
> Cheers,
> Stephen Rothwell

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-28  4:39       ` Stephen Rothwell
@ 2024-03-28  4:44         ` Stephen Rothwell
  2024-03-28  5:35           ` Suren Baghdasaryan
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2024-03-28  4:44 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: Randy Dunlap, Linux Doc Mailing List, Jonathan Corbet,
	Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

Hi all,

On Thu, 28 Mar 2024 15:39:47 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> On Mon, 25 Mar 2024 23:16:55 -0700 Suren Baghdasaryan <surenb@google.com> wrote:
> >
> > Thanks! I'll change back all the instances in the documentation where
> > we replaced original names with _noprof versions.  
> 
> I now have the following:

Sorry, some of those are not relevant here, just the _noprof stuff.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-26  6:16     ` Suren Baghdasaryan
@ 2024-03-28  4:39       ` Stephen Rothwell
  2024-03-28  4:44         ` Stephen Rothwell
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2024-03-28  4:39 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: Randy Dunlap, Linux Doc Mailing List, Jonathan Corbet,
	Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 9103 bytes --]

Hi all,

On Mon, 25 Mar 2024 23:16:55 -0700 Suren Baghdasaryan <surenb@google.com> wrote:
>
> Thanks! I'll change back all the instances in the documentation where
> we replaced original names with _noprof versions.

I now have the following:

mm/util.c:128: warning: expecting prototype for kmemdup_noprof(). Prototype was for kmemdup() instead
mm/util.c:613: warning: expecting prototype for kvmalloc_node_noprof(). Prototype was for kvmalloc_node() instead
mm/util.c:724: warning: expecting prototype for __vmalloc_array_noprof(). Prototype was for __vmalloc_array() instead
mm/util.c:739: warning: expecting prototype for vmalloc_array_noprof(). Prototype was for vmalloc_array() instead
mm/util.c:762: warning: expecting prototype for vcalloc_noprof(). Prototype was for vcalloc() instead
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h:1: warning: no structured comments found
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h:1: warning: no structured comments found
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:1: warning: no structured comments found
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'read_mpcc_state' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'mpc_init_single_inst' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'get_mpcc_for_dpp_from_secondary' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'get_mpcc_for_dpp' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'wait_for_idle' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'assert_mpcc_idle_before_connect' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'init_mpcc_list_from_hw' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_denorm' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_denorm_clamp' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_output_csc' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_ocsc_default' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_output_gamma' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'power_on_mpc_mem_pwr' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_dwb_mux' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'disable_dwb_mux' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'is_dwb_idle' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_out_rate_control' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_gamut_remap' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'program_1dlut' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'program_shaper' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'acquire_rmu' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'program_3dlut' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'release_rmu' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'get_mpc_out_mux' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_bg_color' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:547: warning: Function parameter or struct member 'set_mpc_mem_lp_mode' not described in 'mpc_funcs'
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h:1: warning: no structured comments found
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h:1: warning: no structured comments found
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.h:1: warning: no structured comments found
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.h:1: warning: no structured comments found
drivers/slimbus/stream.c:49: warning: Excess struct member 'segdist_codes' description in 'segdist_code'
include/linux/slab.h:730: warning: Function parameter or struct member '_n' not described in 'kcalloc'
include/linux/slab.h:730: warning: Function parameter or struct member '_size' not described in 'kcalloc'
include/linux/slab.h:730: warning: Function parameter or struct member '_flags' not described in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'n' description in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'size' description in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'flags' description in 'kcalloc'
mm/slub.c:3969: warning: expecting prototype for kmem_cache_alloc_node_noprof(). Prototype was for kmem_cache_alloc_node() instead
mm/util.c:128: warning: expecting prototype for kmemdup_noprof(). Prototype was for kmemdup() instead
mm/util.c:613: warning: expecting prototype for kvmalloc_node_noprof(). Prototype was for kvmalloc_node() instead
mm/util.c:724: warning: expecting prototype for __vmalloc_array_noprof(). Prototype was for __vmalloc_array() instead
mm/util.c:739: warning: expecting prototype for vmalloc_array_noprof(). Prototype was for vmalloc_array() instead
mm/util.c:762: warning: expecting prototype for vcalloc_noprof(). Prototype was for vcalloc() instead
mm/vmalloc.c:3722: warning: expecting prototype for __vmalloc_node_range_noprof(). Prototype was for __vmalloc_node_range() instead
mm/vmalloc.c:3867: warning: expecting prototype for __vmalloc_node_noprof(). Prototype was for __vmalloc_node() instead
mm/vmalloc.c:3940: warning: expecting prototype for vzalloc_noprof(). Prototype was for vzalloc() instead
mm/vmalloc.c:3978: warning: expecting prototype for vmalloc_node_noprof(). Prototype was for vmalloc_node() instead
mm/vmalloc.c:3996: warning: expecting prototype for vzalloc_node_noprof(). Prototype was for vzalloc_node() instead
mm/vmalloc.c:4024: warning: expecting prototype for vmalloc_32_noprof(). Prototype was for vmalloc_32() instead
mm/vmalloc.c:4040: warning: expecting prototype for vmalloc_32_user_noprof(). Prototype was for vmalloc_32_user() instead
mm/mempool.c:383: warning: expecting prototype for mempool_alloc_noprof(). Prototype was for mempool_alloc() instead
mm/page_alloc.c:4991: warning: expecting prototype for alloc_pages_exact_noprof(). Prototype was for alloc_pages_exact() instead
mm/page_alloc.c:5016: warning: expecting prototype for alloc_pages_exact_nid_noprof(). Prototype was for alloc_pages_exact_nid() instead
mm/page_alloc.c:6463: warning: expecting prototype for alloc_contig_range_noprof(). Prototype was for alloc_contig_range() instead
mm/page_alloc.c:6627: warning: expecting prototype for alloc_contig_pages_noprof(). Prototype was for alloc_contig_pages() instead
mm/mempolicy.c:2223: warning: expecting prototype for alloc_pages_mpol_noprof(). Prototype was for alloc_pages_mpol() instead
mm/mempolicy.c:2298: warning: expecting prototype for vma_alloc_folio_noprof(). Prototype was for vma_alloc_folio() instead
mm/mempolicy.c:2326: warning: expecting prototype for alloc_pages_noprof(). Prototype was for alloc_pages() instead
mm/util.c:128: warning: expecting prototype for kmemdup_noprof(). Prototype was for kmemdup() instead
mm/util.c:613: warning: expecting prototype for kvmalloc_node_noprof(). Prototype was for kvmalloc_node() instead
mm/util.c:724: warning: expecting prototype for __vmalloc_array_noprof(). Prototype was for __vmalloc_array() instead
mm/util.c:739: warning: expecting prototype for vmalloc_array_noprof(). Prototype was for vmalloc_array() instead
mm/util.c:762: warning: expecting prototype for vcalloc_noprof(). Prototype was for vcalloc() instead
mm/percpu.c:1745: warning: expecting prototype for pcpu_alloc_noprof(). Prototype was for pcpu_alloc() instead

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-26  5:44   ` Randy Dunlap
@ 2024-03-26  6:16     ` Suren Baghdasaryan
  2024-03-28  4:39       ` Stephen Rothwell
  0 siblings, 1 reply; 23+ messages in thread
From: Suren Baghdasaryan @ 2024-03-26  6:16 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Stephen Rothwell, Linux Doc Mailing List, Jonathan Corbet,
	Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List

On Mon, Mar 25, 2024 at 10:44 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>
>
>
> On 3/25/24 19:19, Suren Baghdasaryan wrote:
> > On Sun, Mar 24, 2024 at 6:36 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >>
> >> Hi all,
> >>
> >> After merging the mm tree, today's linux-next build (htmldocs) produced
> >> these warnings:
> >>
> >> include/linux/slab.h:545: warning: expecting prototype for kmem_cache_alloc(). Prototype was for kmem_cache_alloc_noprof() instead
> >> include/linux/slab.h:652: warning: expecting prototype for kmalloc(). Prototype was for kmalloc_noprof() instead
> >> include/linux/slab.h:692: warning: expecting prototype for kmalloc_array(). Prototype was for kmalloc_array_noprof() instead
> >> include/linux/slab.h:714: warning: expecting prototype for krealloc_array(). Prototype was for krealloc_array_noprof() instead
> >> include/linux/slab.h:730: warning: Function parameter or struct member '_n' not described in 'kcalloc'
> >> include/linux/slab.h:730: warning: Function parameter or struct member '_size' not described in 'kcalloc'
> >> include/linux/slab.h:730: warning: Function parameter or struct member '_flags' not described in 'kcalloc'
> >> include/linux/slab.h:730: warning: Excess function parameter 'n' description in 'kcalloc'
> >> include/linux/slab.h:730: warning: Excess function parameter 'size' description in 'kcalloc'
> >> include/linux/slab.h:730: warning: Excess function parameter 'flags' description in 'kcalloc'
> >> include/linux/slab.h:774: warning: expecting prototype for kzalloc(). Prototype was for kzalloc_noprof() instead
> >> mm/slab_common.c:1217: warning: expecting prototype for krealloc(). Prototype was for krealloc_noprof() instead
> >> mm/util.c:751: warning: expecting prototype for __vcalloc(). Prototype was for __vcalloc_noprof() instead
> >> mm/vmalloc.c:3897: warning: expecting prototype for vmalloc(). Prototype was for vmalloc_noprof() instead
> >> mm/vmalloc.c:3916: warning: expecting prototype for vmalloc_huge(). Prototype was for vmalloc_huge_noprof() instead
> >> mm/vmalloc.c:3953: warning: expecting prototype for vmalloc_user(). Prototype was for vmalloc_user_noprof() instead
> >> mm/mempool.c:245: warning: expecting prototype for mempool_init(). Prototype was for mempool_init_noprof() instead
> >> mm/mempool.c:271: warning: Function parameter or struct member 'gfp_mask' not described in 'mempool_create_node_noprof'
> >> mm/mempool.c:271: warning: Function parameter or struct member 'node_id' not described in 'mempool_create_node_noprof'
> >> mm/mempool.c:271: warning: expecting prototype for mempool_create_node(). Prototype was for mempool_create_node_noprof() instead
> >>
> >> Introduced by commits
> >>
> >>   c64e38ed88d1 ("mm/slab: enable slab allocation tagging for kmalloc and friends")
> >>   ea7b8933f21b ("mempool: hook up to memory allocation profiling")
> >>   576477564ede ("mm: vmalloc: enable memory allocation profiling")
> >>
> >> from the mm-unstable branch of the mm tree.
> >
> > Thanks for the report, Stephen!
> > Let us check with Randy Dunlap how we should handle these. I assume we
> > still want documentation to document kmalloc(), not kmalloc_noprof().
> > Maybe there is a way to mute these warnings.
>
> A proposed patch is here:
>   https://lore.kernel.org/lkml/20240326054149.2121-1-rdunlap@infradead.org/T/#u

Thanks! I'll change back all the instances in the documentation where
we replaced original names with _noprof versions.

>
>
> --
> #Randy

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-26  2:19 ` Suren Baghdasaryan
@ 2024-03-26  5:44   ` Randy Dunlap
  2024-03-26  6:16     ` Suren Baghdasaryan
  0 siblings, 1 reply; 23+ messages in thread
From: Randy Dunlap @ 2024-03-26  5:44 UTC (permalink / raw)
  To: Suren Baghdasaryan, Stephen Rothwell, Linux Doc Mailing List,
	Jonathan Corbet
  Cc: Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List



On 3/25/24 19:19, Suren Baghdasaryan wrote:
> On Sun, Mar 24, 2024 at 6:36 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>>
>> Hi all,
>>
>> After merging the mm tree, today's linux-next build (htmldocs) produced
>> these warnings:
>>
>> include/linux/slab.h:545: warning: expecting prototype for kmem_cache_alloc(). Prototype was for kmem_cache_alloc_noprof() instead
>> include/linux/slab.h:652: warning: expecting prototype for kmalloc(). Prototype was for kmalloc_noprof() instead
>> include/linux/slab.h:692: warning: expecting prototype for kmalloc_array(). Prototype was for kmalloc_array_noprof() instead
>> include/linux/slab.h:714: warning: expecting prototype for krealloc_array(). Prototype was for krealloc_array_noprof() instead
>> include/linux/slab.h:730: warning: Function parameter or struct member '_n' not described in 'kcalloc'
>> include/linux/slab.h:730: warning: Function parameter or struct member '_size' not described in 'kcalloc'
>> include/linux/slab.h:730: warning: Function parameter or struct member '_flags' not described in 'kcalloc'
>> include/linux/slab.h:730: warning: Excess function parameter 'n' description in 'kcalloc'
>> include/linux/slab.h:730: warning: Excess function parameter 'size' description in 'kcalloc'
>> include/linux/slab.h:730: warning: Excess function parameter 'flags' description in 'kcalloc'
>> include/linux/slab.h:774: warning: expecting prototype for kzalloc(). Prototype was for kzalloc_noprof() instead
>> mm/slab_common.c:1217: warning: expecting prototype for krealloc(). Prototype was for krealloc_noprof() instead
>> mm/util.c:751: warning: expecting prototype for __vcalloc(). Prototype was for __vcalloc_noprof() instead
>> mm/vmalloc.c:3897: warning: expecting prototype for vmalloc(). Prototype was for vmalloc_noprof() instead
>> mm/vmalloc.c:3916: warning: expecting prototype for vmalloc_huge(). Prototype was for vmalloc_huge_noprof() instead
>> mm/vmalloc.c:3953: warning: expecting prototype for vmalloc_user(). Prototype was for vmalloc_user_noprof() instead
>> mm/mempool.c:245: warning: expecting prototype for mempool_init(). Prototype was for mempool_init_noprof() instead
>> mm/mempool.c:271: warning: Function parameter or struct member 'gfp_mask' not described in 'mempool_create_node_noprof'
>> mm/mempool.c:271: warning: Function parameter or struct member 'node_id' not described in 'mempool_create_node_noprof'
>> mm/mempool.c:271: warning: expecting prototype for mempool_create_node(). Prototype was for mempool_create_node_noprof() instead
>>
>> Introduced by commits
>>
>>   c64e38ed88d1 ("mm/slab: enable slab allocation tagging for kmalloc and friends")
>>   ea7b8933f21b ("mempool: hook up to memory allocation profiling")
>>   576477564ede ("mm: vmalloc: enable memory allocation profiling")
>>
>> from the mm-unstable branch of the mm tree.
> 
> Thanks for the report, Stephen!
> Let us check with Randy Dunlap how we should handle these. I assume we
> still want documentation to document kmalloc(), not kmalloc_noprof().
> Maybe there is a way to mute these warnings.

A proposed patch is here:
  https://lore.kernel.org/lkml/20240326054149.2121-1-rdunlap@infradead.org/T/#u


-- 
#Randy

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-03-25  1:36 linux-next: build warnings after merge of the mm tree Stephen Rothwell
@ 2024-03-26  2:19 ` Suren Baghdasaryan
  2024-03-26  5:44   ` Randy Dunlap
  0 siblings, 1 reply; 23+ messages in thread
From: Suren Baghdasaryan @ 2024-03-26  2:19 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Andrew Morton, Kent Overstreet, Linux Kernel Mailing List,
	Linux Next Mailing List, Randy Dunlap

On Sun, Mar 24, 2024 at 6:36 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi all,
>
> After merging the mm tree, today's linux-next build (htmldocs) produced
> these warnings:
>
> include/linux/slab.h:545: warning: expecting prototype for kmem_cache_alloc(). Prototype was for kmem_cache_alloc_noprof() instead
> include/linux/slab.h:652: warning: expecting prototype for kmalloc(). Prototype was for kmalloc_noprof() instead
> include/linux/slab.h:692: warning: expecting prototype for kmalloc_array(). Prototype was for kmalloc_array_noprof() instead
> include/linux/slab.h:714: warning: expecting prototype for krealloc_array(). Prototype was for krealloc_array_noprof() instead
> include/linux/slab.h:730: warning: Function parameter or struct member '_n' not described in 'kcalloc'
> include/linux/slab.h:730: warning: Function parameter or struct member '_size' not described in 'kcalloc'
> include/linux/slab.h:730: warning: Function parameter or struct member '_flags' not described in 'kcalloc'
> include/linux/slab.h:730: warning: Excess function parameter 'n' description in 'kcalloc'
> include/linux/slab.h:730: warning: Excess function parameter 'size' description in 'kcalloc'
> include/linux/slab.h:730: warning: Excess function parameter 'flags' description in 'kcalloc'
> include/linux/slab.h:774: warning: expecting prototype for kzalloc(). Prototype was for kzalloc_noprof() instead
> mm/slab_common.c:1217: warning: expecting prototype for krealloc(). Prototype was for krealloc_noprof() instead
> mm/util.c:751: warning: expecting prototype for __vcalloc(). Prototype was for __vcalloc_noprof() instead
> mm/vmalloc.c:3897: warning: expecting prototype for vmalloc(). Prototype was for vmalloc_noprof() instead
> mm/vmalloc.c:3916: warning: expecting prototype for vmalloc_huge(). Prototype was for vmalloc_huge_noprof() instead
> mm/vmalloc.c:3953: warning: expecting prototype for vmalloc_user(). Prototype was for vmalloc_user_noprof() instead
> mm/mempool.c:245: warning: expecting prototype for mempool_init(). Prototype was for mempool_init_noprof() instead
> mm/mempool.c:271: warning: Function parameter or struct member 'gfp_mask' not described in 'mempool_create_node_noprof'
> mm/mempool.c:271: warning: Function parameter or struct member 'node_id' not described in 'mempool_create_node_noprof'
> mm/mempool.c:271: warning: expecting prototype for mempool_create_node(). Prototype was for mempool_create_node_noprof() instead
>
> Introduced by commits
>
>   c64e38ed88d1 ("mm/slab: enable slab allocation tagging for kmalloc and friends")
>   ea7b8933f21b ("mempool: hook up to memory allocation profiling")
>   576477564ede ("mm: vmalloc: enable memory allocation profiling")
>
> from the mm-unstable branch of the mm tree.

Thanks for the report, Stephen!
Let us check with Randy Dunlap how we should handle these. I assume we
still want documentation to document kmalloc(), not kmalloc_noprof().
Maybe there is a way to mute these warnings.

>
> --
> Cheers,
> Stephen Rothwell

^ permalink raw reply	[flat|nested] 23+ messages in thread

* linux-next: build warnings after merge of the mm tree
@ 2024-03-25  1:36 Stephen Rothwell
  2024-03-26  2:19 ` Suren Baghdasaryan
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2024-03-25  1:36 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Kent Overstreet, Suren Baghdasaryan, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 2692 bytes --]

Hi all,

After merging the mm tree, today's linux-next build (htmldocs) produced
these warnings:

include/linux/slab.h:545: warning: expecting prototype for kmem_cache_alloc(). Prototype was for kmem_cache_alloc_noprof() instead
include/linux/slab.h:652: warning: expecting prototype for kmalloc(). Prototype was for kmalloc_noprof() instead
include/linux/slab.h:692: warning: expecting prototype for kmalloc_array(). Prototype was for kmalloc_array_noprof() instead
include/linux/slab.h:714: warning: expecting prototype for krealloc_array(). Prototype was for krealloc_array_noprof() instead
include/linux/slab.h:730: warning: Function parameter or struct member '_n' not described in 'kcalloc'
include/linux/slab.h:730: warning: Function parameter or struct member '_size' not described in 'kcalloc'
include/linux/slab.h:730: warning: Function parameter or struct member '_flags' not described in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'n' description in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'size' description in 'kcalloc'
include/linux/slab.h:730: warning: Excess function parameter 'flags' description in 'kcalloc'
include/linux/slab.h:774: warning: expecting prototype for kzalloc(). Prototype was for kzalloc_noprof() instead
mm/slab_common.c:1217: warning: expecting prototype for krealloc(). Prototype was for krealloc_noprof() instead
mm/util.c:751: warning: expecting prototype for __vcalloc(). Prototype was for __vcalloc_noprof() instead
mm/vmalloc.c:3897: warning: expecting prototype for vmalloc(). Prototype was for vmalloc_noprof() instead
mm/vmalloc.c:3916: warning: expecting prototype for vmalloc_huge(). Prototype was for vmalloc_huge_noprof() instead
mm/vmalloc.c:3953: warning: expecting prototype for vmalloc_user(). Prototype was for vmalloc_user_noprof() instead
mm/mempool.c:245: warning: expecting prototype for mempool_init(). Prototype was for mempool_init_noprof() instead
mm/mempool.c:271: warning: Function parameter or struct member 'gfp_mask' not described in 'mempool_create_node_noprof'
mm/mempool.c:271: warning: Function parameter or struct member 'node_id' not described in 'mempool_create_node_noprof'
mm/mempool.c:271: warning: expecting prototype for mempool_create_node(). Prototype was for mempool_create_node_noprof() instead

Introduced by commits

  c64e38ed88d1 ("mm/slab: enable slab allocation tagging for kmalloc and friends")
  ea7b8933f21b ("mempool: hook up to memory allocation profiling")
  576477564ede ("mm: vmalloc: enable memory allocation profiling")

from the mm-unstable branch of the mm tree.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2024-02-21  5:27 Stephen Rothwell
@ 2024-02-21 17:12 ` SeongJae Park
  0 siblings, 0 replies; 23+ messages in thread
From: SeongJae Park @ 2024-02-21 17:12 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Andrew Morton, SeongJae Park, Linux Kernel Mailing List,
	Linux Next Mailing List

On Wed, 21 Feb 2024 16:27:45 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:

> --Sig_/rZSz2XyBy4/Li.uOi0DLWDM
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: quoted-printable
> 
> Hi all,
> 
> After merging the mm tree, today's linux-next build (htmldocs) produced
> these warnings:
> 
> Documentation/admin-guide/mm/damon/usage.rst:186: WARNING: undefined label:
>  'damon_design_confiurable_operations_set'
> Documentation/admin-guide/mm/damon/usage.rst:369: WARNING: undefined label:
>  'damon_design_damos_quota_auto_tuning'
> 
> Introduced by commits
> 
>   afc858f0e6db ("Docs/mm/damon: move DAMON operation sets list from the usage
> to the design document")
>   d50e871bd78b ("Docs/admin-guide/mm/damon/usage: document quota goal metric
> file")
> 
> from the mm-unstable branch of the mm tree.

Thank you for this nice report.  Just sent fixes:
https://lore.kernel.org/damon/20240221170852.55529-1-sj@kernel.org/


Thanks,
SJ

[...]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* linux-next: build warnings after merge of the mm tree
@ 2024-02-21  5:27 Stephen Rothwell
  2024-02-21 17:12 ` SeongJae Park
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2024-02-21  5:27 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SeongJae Park, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

Hi all,

After merging the mm tree, today's linux-next build (htmldocs) produced
these warnings:

Documentation/admin-guide/mm/damon/usage.rst:186: WARNING: undefined label: 'damon_design_confiurable_operations_set'
Documentation/admin-guide/mm/damon/usage.rst:369: WARNING: undefined label: 'damon_design_damos_quota_auto_tuning'

Introduced by commits

  afc858f0e6db ("Docs/mm/damon: move DAMON operation sets list from the usage to the design document")
  d50e871bd78b ("Docs/admin-guide/mm/damon/usage: document quota goal metric file")

from the mm-unstable branch of the mm tree.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2023-07-27  4:46 ` Aneesh Kumar K.V
@ 2023-07-27  5:00   ` Stephen Rothwell
  0 siblings, 0 replies; 23+ messages in thread
From: Stephen Rothwell @ 2023-07-27  5:00 UTC (permalink / raw)
  To: Aneesh Kumar K.V
  Cc: Andrew Morton, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

Hi Aneesh,

On Thu, 27 Jul 2023 10:16:19 +0530 "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com> wrote:
>
> I will send this as a separate patch to linuxppc-dev ? Even though the
> warning started with this series because it is using functions in
> meminit from remove_pte_table, marking remove_pte_table correctly is
> applicable outside series that caused this warning ?

Please just keep it with the patch that exposed this situation i.e. in
Andrew's tree.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2023-07-27  4:28 Stephen Rothwell
@ 2023-07-27  4:46 ` Aneesh Kumar K.V
  2023-07-27  5:00   ` Stephen Rothwell
  0 siblings, 1 reply; 23+ messages in thread
From: Aneesh Kumar K.V @ 2023-07-27  4:46 UTC (permalink / raw)
  To: Stephen Rothwell, Andrew Morton
  Cc: Linux Kernel Mailing List, Linux Next Mailing List

Stephen Rothwell <sfr@canb.auug.org.au> writes:

> Hi all,
>
> After merging the mm tree, today's linux-next build (powerpc allyesconfig)
> produced these warnings:
>
> WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x230 (section: .text.remove_pte_table) -> free_vmemmap_pages (section: .meminit.text)
> WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x43c (section: .text.remove_pte_table) -> vmemmap_populated (section: .meminit.text)
> WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x4a4 (section: .text.remove_pte_table) -> free_vmemmap_pages (section: .meminit.text)
>
> Introduced by commit
>
>   25081814314b ("powerpc/book3s64/vmemmap: switch radix to use a different vmemmap handling function")
>

I will send this as a separate patch to linuxppc-dev ? Even though the
warning started with this series because it is using functions in
meminit from remove_pte_table, marking remove_pte_table correctly is
applicable outside series that caused this warning ?

From 29ddcbbcae6ec2a7b70015274b2d5c4ec9b6beea Mon Sep 17 00:00:00 2001
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Date: Thu, 27 Jul 2023 10:02:37 +0530
Subject: [PATCH] powerpc/mm: Fix section mismatch warning

remove_pte_table is only called from remove_pmd_table which is marked
__meminit. These functions are used only during memory hotplug and they
also call functions marked __meminit. Mark remote_pte_table also with
__meminit so that we can avoid the section mismatch warning below.

WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x230 (section: .text.remove_pte_table) -> free_vmemmap_pages (section: .meminit.text)
WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x43c (section: .text.remove_pte_table) -> vmemmap_populated (section: .meminit.text)
WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x4a4 (section: .text.remove_pte_table) -> free_vmemmap_pages (section: .meminit.text)

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
---
 arch/powerpc/mm/book3s64/radix_pgtable.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/mm/book3s64/radix_pgtable.c b/arch/powerpc/mm/book3s64/radix_pgtable.c
index 59aaa30a7c0d..96679018e7fb 100644
--- a/arch/powerpc/mm/book3s64/radix_pgtable.c
+++ b/arch/powerpc/mm/book3s64/radix_pgtable.c
@@ -782,9 +782,9 @@ static void __meminit free_vmemmap_pages(struct page *page,
 		free_pages((unsigned long)page_address(page), order);
 }
 
-static void remove_pte_table(pte_t *pte_start, unsigned long addr,
-			     unsigned long end, bool direct,
-			     struct vmem_altmap *altmap)
+static void __meminit remove_pte_table(pte_t *pte_start, unsigned long addr,
+				       unsigned long end, bool direct,
+				       struct vmem_altmap *altmap)
 {
 	unsigned long next, pages = 0;
 	pte_t *pte;
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* linux-next: build warnings after merge of the mm tree
@ 2023-07-27  4:28 Stephen Rothwell
  2023-07-27  4:46 ` Aneesh Kumar K.V
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2023-07-27  4:28 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Aneesh Kumar K.V, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 767 bytes --]

Hi all,

After merging the mm tree, today's linux-next build (powerpc allyesconfig)
produced these warnings:

WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x230 (section: .text.remove_pte_table) -> free_vmemmap_pages (section: .meminit.text)
WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x43c (section: .text.remove_pte_table) -> vmemmap_populated (section: .meminit.text)
WARNING: modpost: vmlinux: section mismatch in reference: remove_pte_table+0x4a4 (section: .text.remove_pte_table) -> free_vmemmap_pages (section: .meminit.text)

Introduced by commit

  25081814314b ("powerpc/book3s64/vmemmap: switch radix to use a different vmemmap handling function")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2023-05-08  4:54 Stephen Rothwell
@ 2023-05-08 16:10 ` Liam R. Howlett
  0 siblings, 0 replies; 23+ messages in thread
From: Liam R. Howlett @ 2023-05-08 16:10 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Andrew Morton, Linux Kernel Mailing List, Linux Next Mailing List

* Stephen Rothwell <sfr@canb.auug.org.au> [230508 00:54]:
> Hi all,
> 
> After merging the mm tree, today's linux-next build (htmldocs) produced
> these warnings:
> 
> lib/maple_tree.c:6054: warning: Function parameter or member 'mas' not described in 'mas_find_setup'
> lib/maple_tree.c:6054: warning: Function parameter or member 'max' not described in 'mas_find_setup'
> lib/maple_tree.c:6054: warning: Function parameter or member 'entry' not described in 'mas_find_setup'
> lib/maple_tree.c:6157: warning: Function parameter or member 'mas' not described in 'mas_find_rev_setup'
> lib/maple_tree.c:6157: warning: Function parameter or member 'min' not described in 'mas_find_rev_setup'
> lib/maple_tree.c:6157: warning: Function parameter or member 'entry' not described in 'mas_find_rev_setup'

Thanks.  I'll fix these.

> 
> Introduced by commits
> 
>   ef6a3f9e88a1 ("maple_tree: add mas_next_range() and mas_find_range() interfaces")
>   3bd55a4fa16d ("maple_tree: add mas_prev_range() and mas_find_range_rev interface")
> 
> -- 
> Cheers,
> Stephen Rothwell



^ permalink raw reply	[flat|nested] 23+ messages in thread

* linux-next: build warnings after merge of the mm tree
@ 2023-05-08  4:54 Stephen Rothwell
  2023-05-08 16:10 ` Liam R. Howlett
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2023-05-08  4:54 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Liam R. Howlett, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 963 bytes --]

Hi all,

After merging the mm tree, today's linux-next build (htmldocs) produced
these warnings:

lib/maple_tree.c:6054: warning: Function parameter or member 'mas' not described in 'mas_find_setup'
lib/maple_tree.c:6054: warning: Function parameter or member 'max' not described in 'mas_find_setup'
lib/maple_tree.c:6054: warning: Function parameter or member 'entry' not described in 'mas_find_setup'
lib/maple_tree.c:6157: warning: Function parameter or member 'mas' not described in 'mas_find_rev_setup'
lib/maple_tree.c:6157: warning: Function parameter or member 'min' not described in 'mas_find_rev_setup'
lib/maple_tree.c:6157: warning: Function parameter or member 'entry' not described in 'mas_find_rev_setup'

Introduced by commits

  ef6a3f9e88a1 ("maple_tree: add mas_next_range() and mas_find_range() interfaces")
  3bd55a4fa16d ("maple_tree: add mas_prev_range() and mas_find_range_rev interface")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2022-08-23  3:54 Stephen Rothwell
@ 2022-08-23 14:55 ` Liam Howlett
  0 siblings, 0 replies; 23+ messages in thread
From: Liam Howlett @ 2022-08-23 14:55 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Andrew Morton, Matthew Wilcox (Oracle),
	Linux Kernel Mailing List, Linux Next Mailing List

* Stephen Rothwell <sfr@canb.auug.org.au> [220822 23:54]:
> Hi all,
> 
> After merging the mm tree, today's linux-next build (htmldocs) produced
> these warnings:
> 
> include/linux/maple_tree.h:230: warning: Function parameter or member '__flags' not described in 'MTREE_INIT'
> include/linux/maple_tree.h:230: warning: Excess function parameter 'flags' description in 'MTREE_INIT'
> include/linux/maple_tree.h:243: warning: Function parameter or member '__flags' not described in 'MTREE_INIT_EXT'
> include/linux/maple_tree.h:243: warning: Function parameter or member '__lock' not described in 'MTREE_INIT_EXT'
> include/linux/maple_tree.h:243: warning: Excess function parameter 'flags' description in 'MTREE_INIT_EXT'
> include/linux/maple_tree.h:243: warning: Excess function parameter 'lock' description in 'MTREE_INIT_EXT'
> include/linux/maple_tree.h:523: warning: Function parameter or member '__mas' not described in 'mas_for_each'
> include/linux/maple_tree.h:523: warning: Function parameter or member '__entry' not described in 'mas_for_each'
> include/linux/maple_tree.h:523: warning: Function parameter or member '__max' not described in 'mas_for_each'
> include/linux/maple_tree.h:523: warning: Excess function parameter 'mas' description in 'mas_for_each'
> include/linux/maple_tree.h:523: warning: Excess function parameter 'entry' description in 'mas_for_each'
> include/linux/maple_tree.h:523: warning: Excess function parameter 'max' description in 'mas_for_each'
> include/linux/maple_tree.h:658: warning: Function parameter or member '__tree' not described in 'mt_for_each'
> include/linux/maple_tree.h:658: warning: Function parameter or member '__entry' not described in 'mt_for_each'
> include/linux/maple_tree.h:658: warning: Function parameter or member '__index' not described in 'mt_for_each'
> include/linux/maple_tree.h:658: warning: Function parameter or member '__max' not described in 'mt_for_each'
> include/linux/maple_tree.h:658: warning: Excess function parameter 'tree' description in 'mt_for_each'
> include/linux/maple_tree.h:658: warning: Excess function parameter 'entry' description in 'mt_for_each'
> include/linux/maple_tree.h:658: warning: Excess function parameter 'index' description in 'mt_for_each'
> include/linux/maple_tree.h:658: warning: Excess function parameter 'max' description in 'mt_for_each'
> 
> Introduced by commit
> 
>   96ba2a9525fb ("Maple Tree: add new data structure")
> 

Thanks.  I forgot to update the docs when I updated the arguments.  I'll
send out a patch shortly.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* linux-next: build warnings after merge of the mm tree
@ 2022-08-23  3:54 Stephen Rothwell
  2022-08-23 14:55 ` Liam Howlett
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2022-08-23  3:54 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Liam R. Howlett, Matthew Wilcox (Oracle),
	Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 2388 bytes --]

Hi all,

After merging the mm tree, today's linux-next build (htmldocs) produced
these warnings:

include/linux/maple_tree.h:230: warning: Function parameter or member '__flags' not described in 'MTREE_INIT'
include/linux/maple_tree.h:230: warning: Excess function parameter 'flags' description in 'MTREE_INIT'
include/linux/maple_tree.h:243: warning: Function parameter or member '__flags' not described in 'MTREE_INIT_EXT'
include/linux/maple_tree.h:243: warning: Function parameter or member '__lock' not described in 'MTREE_INIT_EXT'
include/linux/maple_tree.h:243: warning: Excess function parameter 'flags' description in 'MTREE_INIT_EXT'
include/linux/maple_tree.h:243: warning: Excess function parameter 'lock' description in 'MTREE_INIT_EXT'
include/linux/maple_tree.h:523: warning: Function parameter or member '__mas' not described in 'mas_for_each'
include/linux/maple_tree.h:523: warning: Function parameter or member '__entry' not described in 'mas_for_each'
include/linux/maple_tree.h:523: warning: Function parameter or member '__max' not described in 'mas_for_each'
include/linux/maple_tree.h:523: warning: Excess function parameter 'mas' description in 'mas_for_each'
include/linux/maple_tree.h:523: warning: Excess function parameter 'entry' description in 'mas_for_each'
include/linux/maple_tree.h:523: warning: Excess function parameter 'max' description in 'mas_for_each'
include/linux/maple_tree.h:658: warning: Function parameter or member '__tree' not described in 'mt_for_each'
include/linux/maple_tree.h:658: warning: Function parameter or member '__entry' not described in 'mt_for_each'
include/linux/maple_tree.h:658: warning: Function parameter or member '__index' not described in 'mt_for_each'
include/linux/maple_tree.h:658: warning: Function parameter or member '__max' not described in 'mt_for_each'
include/linux/maple_tree.h:658: warning: Excess function parameter 'tree' description in 'mt_for_each'
include/linux/maple_tree.h:658: warning: Excess function parameter 'entry' description in 'mt_for_each'
include/linux/maple_tree.h:658: warning: Excess function parameter 'index' description in 'mt_for_each'
include/linux/maple_tree.h:658: warning: Excess function parameter 'max' description in 'mt_for_each'

Introduced by commit

  96ba2a9525fb ("Maple Tree: add new data structure")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: linux-next: build warnings after merge of the mm tree
  2022-05-11 10:20 Stephen Rothwell
@ 2022-05-11 16:06 ` Johannes Weiner
  0 siblings, 0 replies; 23+ messages in thread
From: Johannes Weiner @ 2022-05-11 16:06 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Andrew Morton, Linux Kernel Mailing List, Linux Next Mailing List

On Wed, May 11, 2022 at 08:20:45PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the mm tree, today's linux-next build (htmldocs) produced
> these warnings:
> 
> Documentation/filesystems/proc.rst:1155: WARNING: Definition list ends without a blank line; unexpected unindent.
> Documentation/filesystems/proc.rst:1161: WARNING: Unexpected indentation.
> Documentation/filesystems/proc.rst:1162: WARNING: Block quote ends without a blank line; unexpected unindent.
> Documentation/filesystems/proc.rst:1165: WARNING: Unexpected indentation.
> 
> Introduced by commit
> 
>   9e43c820f7b2 ("Documentation: filesystems: proc: update meminfo section")

The patch below fixes it. The html output looks good too.

Andrew, could you please pick this up as delta for    ^^^ ? Thanks!

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
---

diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst
index 736ed384750c..9749ff8c0ecf 100644
--- a/Documentation/filesystems/proc.rst
+++ b/Documentation/filesystems/proc.rst
@@ -1146,16 +1146,9 @@ CmaTotal
               Memory reserved for the Contiguous Memory Allocator (CMA)
 CmaFree
               Free remaining memory in the CMA reserves
-HugePages_Total
-HugePages_Free
-HugePages_Rsvd
-HugePages_Surp
-Hugepagesize
-Hugetlb
+HugePages_Total, HugePages_Free, HugePages_Rsvd, HugePages_Surp, Hugepagesize, Hugetlb
               See Documentation/admin-guide/mm/hugetlbpage.rst.
-DirectMap4k
-DirectMap2M
-DirectMap1G
+DirectMap4k, DirectMap2M, DirectMap1G
               Breakdown of page table sizes used in the kernel's
               identity mapping of RAM
 

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* linux-next: build warnings after merge of the mm tree
@ 2022-05-11 10:20 Stephen Rothwell
  2022-05-11 16:06 ` Johannes Weiner
  0 siblings, 1 reply; 23+ messages in thread
From: Stephen Rothwell @ 2022-05-11 10:20 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Johannes Weiner, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

Hi all,

After merging the mm tree, today's linux-next build (htmldocs) produced
these warnings:

Documentation/filesystems/proc.rst:1155: WARNING: Definition list ends without a blank line; unexpected unindent.
Documentation/filesystems/proc.rst:1161: WARNING: Unexpected indentation.
Documentation/filesystems/proc.rst:1162: WARNING: Block quote ends without a blank line; unexpected unindent.
Documentation/filesystems/proc.rst:1165: WARNING: Unexpected indentation.

Introduced by commit

  9e43c820f7b2 ("Documentation: filesystems: proc: update meminfo section")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2024-03-31 16:43 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22  6:50 linux-next: build warnings after merge of the mm tree Stephen Rothwell
2022-11-22  9:24 ` [PATCH] mm: fix indentation of bdi sysfs description Bagas Sanjaya
  -- strict thread matches above, loose matches on Subject: below --
2024-03-25  1:36 linux-next: build warnings after merge of the mm tree Stephen Rothwell
2024-03-26  2:19 ` Suren Baghdasaryan
2024-03-26  5:44   ` Randy Dunlap
2024-03-26  6:16     ` Suren Baghdasaryan
2024-03-28  4:39       ` Stephen Rothwell
2024-03-28  4:44         ` Stephen Rothwell
2024-03-28  5:35           ` Suren Baghdasaryan
2024-03-29 22:49             ` Stephen Rothwell
2024-03-29 23:01               ` Suren Baghdasaryan
2024-03-29 23:01                 ` Suren Baghdasaryan
2024-02-21  5:27 Stephen Rothwell
2024-02-21 17:12 ` SeongJae Park
2023-07-27  4:28 Stephen Rothwell
2023-07-27  4:46 ` Aneesh Kumar K.V
2023-07-27  5:00   ` Stephen Rothwell
2023-05-08  4:54 Stephen Rothwell
2023-05-08 16:10 ` Liam R. Howlett
2022-08-23  3:54 Stephen Rothwell
2022-08-23 14:55 ` Liam Howlett
2022-05-11 10:20 Stephen Rothwell
2022-05-11 16:06 ` Johannes Weiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).