From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30C86C531C9 for ; Fri, 24 Jul 2026 17:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6cdT8t9h3yt/zKVd24lkQCq2fH9Gx8Vx54Fl912gDe4=; b=0Plo8WZYD3vGimRZh2Dc5x8zkD UAd6FjEFm5RuGTYQmIqhf6YTysIeB6Zn31U8nTzO9EONa81gS0Mzq32o+zKu9Kxb2CZqRHCpbS8zg q0OK+CXvM9GhM1C3LAqB0JJicXW409pOo9xou4maPDHZ9/jtY1XFFkEd33vqHKz6YT60TDPAIAFz0 m6ur7Na/CFb0ahIZzLdYPj4m0EEpBnJxDxQPK6rdUF9KAFGaVJItbT8OL2j5QrOuqxOJVL1r+hfx+ h3eh0k65LfzuCYSEC3rV+GX5CUMLU7THmVJX4bjFc5kRG84819ZFJWn8+MxRWxMdJwKs4RadjLXx/ l5gBxJjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wnJME-0000000Gucf-09bs; Fri, 24 Jul 2026 17:06:46 +0000 Received: from mgamail.intel.com ([192.198.163.15]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wnJMB-0000000Guc3-2fez for linux-arm-kernel@lists.infradead.org; Fri, 24 Jul 2026 17:06:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784912804; x=1816448804; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=et0UWU7GWJFC1gjDPbpE9qllm2y/YzAgaFxgHja6Us0=; b=GLdfE0kBiHcA9igp3Vt1oPMOc2pfzqyJs1lQLY3u1W/pS5s5ujn2YwP6 +HXqSqhDHQ4+TgdH5Aba6SQjYY/9Emg7qbR9reZQGReGU49hQlbCJoqwN w3BnW+eEbYau9ZVJUOMScBYcVMrtg7lb2wmkwVW4D40MM7kcus4Se8ldE DPChv4uWEc7kB9v/XvxHy625pl4u5B42DxFBWCfV6WN+5aZM+JwWOb1DQ vHsA+OMfvipbogVjL3j8s5INbgaD1MkWCKTKAx9xAw3+boWqmlxOl9QCf m2XbDwcdcYorQAjPQWhX0wI8vtyIjBKSed5N6nYyxpsLabDkHHqPYEMdz Q==; X-CSE-ConnectionGUID: e8VKwboaRqq7AEimh5e8nQ== X-CSE-MsgGUID: LPSpfQOtQ5u8eQzXEE3BVQ== X-IronPort-AV: E=McAfee;i="6800,10657,11854"; a="85699574" X-IronPort-AV: E=Sophos;i="6.25,182,1779174000"; d="scan'208";a="85699574" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2026 10:06:42 -0700 X-CSE-ConnectionGUID: 0Olbifv3SQGISQFQH44YYw== X-CSE-MsgGUID: mR8xJkYlS+WK7oBFT9Sivg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,182,1779174000"; d="scan'208";a="254835244" Received: from igk-lkp-server01.igk.intel.com (HELO 3cba2a188a06) ([10.211.93.152]) by fmviesa010.fm.intel.com with ESMTP; 24 Jul 2026 10:06:35 -0700 Received: from kbuild by 3cba2a188a06 with local (Exim 4.98.2) (envelope-from ) id 1wnJM1-000000000z4-0zCh; Fri, 24 Jul 2026 17:06:33 +0000 Date: Fri, 24 Jul 2026 19:06:07 +0200 From: kernel test robot To: Pedro Falcato , Andrew Morton , David Hildenbrand Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Pedro Falcato , Catalin Marinas , Will Deacon , "James E.J. Bottomley" , Helge Deller , Madhavan Srinivasan , Michael Ellerman , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , "Matthew Wilcox (Oracle)" , Jan Kara , Zi Yan , Baolin Wang , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Usama Arif , Kevin Brodsky , Muhammad Usama Anjum , 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 Message-ID: <202607241905.9UNne8Y8-lkp@intel.com> References: <20260724102017.141532-6-pfalcato@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260724102017.141532-6-pfalcato@suse.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260724_100643_705730_485FDEC2 X-CRM114-Status: GOOD ( 13.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 | 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