From: kernel test robot <lkp@intel.com>
To: Pedro Falcato <pfalcato@suse.de>,
Andrew Morton <akpm@linux-foundation.org>,
David Hildenbrand <david@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Pedro Falcato <pfalcato@suse.de>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
Helge Deller <deller@gmx.de>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Lorenzo Stoakes <ljs@kernel.org>,
"Liam R. Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@kernel.org>,
Mike Rapoport <rppt@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
Michal Hocko <mhocko@suse.com>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
Jan Kara <jack@suse.cz>, Zi Yan <ziy@nvidia.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Nico Pache <npache@redhat.com>,
Ryan Roberts <ryan.roberts@arm.com>, Dev Jain <dev.jain@arm.com>,
Barry Song <baohua@kernel.org>, Lance Yang <lance.yang@linux.dev>,
Usama Arif <usama.arif@linux.dev>,
Kevin Brodsky <kevin.brodsky@arm.com>,
Muhammad Usama Anjum <usama.anjum@arm.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/5] mm: constify the pte_offset_map_ro_nolock() return value
Date: Fri, 24 Jul 2026 19:06:07 +0200 [thread overview]
Message-ID: <202607241905.9UNne8Y8-lkp@intel.com> (raw)
In-Reply-To: <20260724102017.141532-6-pfalcato@suse.de>
Hi Pedro,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Pedro-Falcato/mm-constify-generic-pte_get/20260724-184321
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20260724102017.141532-6-pfalcato%40suse.de
patch subject: [PATCH 5/5] mm: constify the pte_offset_map_ro_nolock() return value
config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260724/202607241905.9UNne8Y8-lkp@intel.com/config)
compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260724/202607241905.9UNne8Y8-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607241905.9UNne8Y8-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/s390/kernel/asm-offsets.c:12:
./include/linux/pgtable.h: In function 'ptep_get_lockless':
>> ./include/linux/pgtable.h:782:25: warning: passing argument 1 of 'ptep_get' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
782 | return ptep_get(ptep);
| ^~~~
In file included from ./include/linux/pgtable.h:6:
./arch/s390/include/asm/pgtable.h:989:37: note: expected 'pte_t *' {aka 'long unsigned int *'} but argument is of type 'const pte_t *' {aka 'const long unsigned int *'}
989 | static inline pte_t ptep_get(pte_t *ptep)
| ~~~~~~~^~~~
--
In file included from ./include/linux/mm.h:31,
from ./arch/s390/include/asm/pgalloc.h:18,
from ./arch/s390/include/asm/mmu_context.h:11,
from ./arch/s390/include/asm/elf.h:173,
from ./include/linux/elf.h:6,
from ./include/linux/module.h:20,
from net/8021q/vlan.c:20:
./include/linux/pgtable.h: In function 'ptep_get_lockless':
>> ./include/linux/pgtable.h:782:25: warning: passing argument 1 of 'ptep_get' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
782 | return ptep_get(ptep);
| ^~~~
In file included from ./include/linux/pgtable.h:6:
./arch/s390/include/asm/pgtable.h:989:37: note: expected 'pte_t *' {aka 'long unsigned int *'} but argument is of type 'const pte_t *' {aka 'const long unsigned int *'}
989 | static inline pte_t ptep_get(pte_t *ptep)
| ~~~~~~~^~~~
net/8021q/vlan.c: In function 'register_vlan_device':
net/8021q/vlan.c:249:46: warning: '%i' directive output may be truncated writing between 1 and 4 bytes into a region of size between 0 and 15 [-Wformat-truncation=]
249 | snprintf(name, IFNAMSIZ, "%s.%i", real_dev->name, vlan_id);
| ^~
net/8021q/vlan.c:249:42: note: directive argument in the range [0, 4094]
249 | snprintf(name, IFNAMSIZ, "%s.%i", real_dev->name, vlan_id);
| ^~~~~~~
net/8021q/vlan.c:249:17: note: 'snprintf' output between 3 and 21 bytes into a destination of size 16
249 | snprintf(name, IFNAMSIZ, "%s.%i", real_dev->name, vlan_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/8021q/vlan.c:237:46: warning: '%.4i' directive output may be truncated writing 4 bytes into a region of size between 0 and 15 [-Wformat-truncation=]
237 | snprintf(name, IFNAMSIZ, "%s.%.4i", real_dev->name, vlan_id);
| ^~~~
net/8021q/vlan.c:237:42: note: directive argument in the range [0, 4094]
237 | snprintf(name, IFNAMSIZ, "%s.%.4i", real_dev->name, vlan_id);
| ^~~~~~~~~
net/8021q/vlan.c:237:17: note: 'snprintf' output between 6 and 21 bytes into a destination of size 16
237 | snprintf(name, IFNAMSIZ, "%s.%.4i", real_dev->name, vlan_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from ./include/linux/mm.h:31,
from ./arch/s390/include/asm/pgalloc.h:18,
from ./arch/s390/include/asm/mmu_context.h:11,
from ./arch/s390/include/asm/elf.h:173,
from ./include/linux/elf.h:6,
from ./include/linux/module.h:20,
from net/netfilter/ipvs/ip_vs_core.c:24:
./include/linux/pgtable.h: In function 'ptep_get_lockless':
>> ./include/linux/pgtable.h:782:25: warning: passing argument 1 of 'ptep_get' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
782 | return ptep_get(ptep);
| ^~~~
In file included from ./include/linux/pgtable.h:6:
./arch/s390/include/asm/pgtable.h:989:37: note: expected 'pte_t *' {aka 'long unsigned int *'} but argument is of type 'const pte_t *' {aka 'const long unsigned int *'}
989 | static inline pte_t ptep_get(pte_t *ptep)
| ~~~~~~~^~~~
net/netfilter/ipvs/ip_vs_core.c: In function 'ip_vs_in_icmp':
net/netfilter/ipvs/ip_vs_core.c:1768:15: warning: variable 'outer_proto' set but not used [-Wunused-but-set-variable]
1768 | char *outer_proto = "IPIP";
| ^~~~~~~~~~~
vim +782 ./include/linux/pgtable.h
024d232ae4fcd7 Peter Zijlstra 2020-11-26 775
2a4a06da8a4b93 Peter Zijlstra 2020-11-13 776 /*
2a4a06da8a4b93 Peter Zijlstra 2020-11-13 777 * We require that the PTE can be read atomically.
2a4a06da8a4b93 Peter Zijlstra 2020-11-13 778 */
024d232ae4fcd7 Peter Zijlstra 2020-11-26 779 #ifndef ptep_get_lockless
3cfe4c8a2f30c7 Pedro Falcato 2026-07-24 780 static inline pte_t ptep_get_lockless(const pte_t *ptep)
2a4a06da8a4b93 Peter Zijlstra 2020-11-13 781 {
2a4a06da8a4b93 Peter Zijlstra 2020-11-13 @782 return ptep_get(ptep);
2a4a06da8a4b93 Peter Zijlstra 2020-11-13 783 }
024d232ae4fcd7 Peter Zijlstra 2020-11-26 784 #endif
024d232ae4fcd7 Peter Zijlstra 2020-11-26 785
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-07-24 17:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 10:20 [PATCH 0/5] mm: add basic PTE const type-safety Pedro Falcato
2026-07-24 10:20 ` [PATCH 1/5] mm: constify generic pte_get*() Pedro Falcato
2026-07-24 10:20 ` [PATCH 2/5] mm/arm64: constify pte_get*() and contpte get logic Pedro Falcato
2026-07-24 10:20 ` [PATCH 3/5] mm/parisc: constify ptep_get() argument Pedro Falcato
2026-07-24 13:36 ` Usama Arif
2026-07-24 13:39 ` Usama Arif
2026-07-24 14:14 ` Matthew Wilcox
2026-07-24 15:03 ` Usama Arif
2026-07-24 15:32 ` Pedro Falcato
2026-07-24 15:48 ` Usama Arif
2026-07-24 10:20 ` [PATCH 4/5] mm/powerpc/8xx: " Pedro Falcato
2026-07-24 10:20 ` [PATCH 5/5] mm: constify the pte_offset_map_ro_nolock() return value Pedro Falcato
2026-07-24 17:06 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202607241905.9UNne8Y8-lkp@intel.com \
--to=lkp@intel.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=catalin.marinas@arm.com \
--cc=david@kernel.org \
--cc=deller@gmx.de \
--cc=dev.jain@arm.com \
--cc=jack@suse.cz \
--cc=kevin.brodsky@arm.com \
--cc=lance.yang@linux.dev \
--cc=liam@infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=maddy@linux.ibm.com \
--cc=mhocko@suse.com \
--cc=mpe@ellerman.id.au \
--cc=npache@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pfalcato@suse.de \
--cc=rppt@kernel.org \
--cc=ryan.roberts@arm.com \
--cc=surenb@google.com \
--cc=usama.anjum@arm.com \
--cc=usama.arif@linux.dev \
--cc=vbabka@kernel.org \
--cc=will@kernel.org \
--cc=willy@infradead.org \
--cc=ziy@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox