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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3F73C3DA41 for ; Thu, 11 Jul 2024 11:43:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4A3736B0096; Thu, 11 Jul 2024 07:43:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 42CC56B0098; Thu, 11 Jul 2024 07:43:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2A5CE6B0099; Thu, 11 Jul 2024 07:43:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 099C96B0096 for ; Thu, 11 Jul 2024 07:43:28 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 6EFBC140558 for ; Thu, 11 Jul 2024 11:43:27 +0000 (UTC) X-FDA: 82327286454.25.CB71039 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by imf07.hostedemail.com (Postfix) with ESMTP id DDB444000D for ; Thu, 11 Jul 2024 11:43:24 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NEsfksa9; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720698188; a=rsa-sha256; cv=none; b=VOtYTF9zvQZTdrcfy5ATzhP0j+AC3vh5ZrPc8dIGWhxj7kvOLJbMY1T6nC3LIXlQsBP5cM CxCtM6w2J1S8M+AGWPfBIFpFSFoC+3DlvmoURu9tYoUoAr/HrLdivTKJU/GBsfyn/GXwPR 6I86h8Rq8BT4NCDnnard3usHUO7KJAY= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NEsfksa9; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720698188; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=mMPRvHnsPmCUSOVJ7Y8rimEan03tayFB49RXNyh1YTI=; b=2L34qw3+VQTkCsRVGKWwk9Ee+kcLkYvaVNMcLh5pb4nzH135fFXirC32PBG7n6i/iCjD0y keXFsosrs+9lkI0APIv4Ik9RaMgJ7JpbTXXVDhBNUJDst561mfQmsgp9yo8LzLqFsI62Kv I/G+8xgJ/iVmWRpSHLJeMdK4+1BXoDY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720698205; x=1752234205; h=date:from:to:cc:subject:message-id:mime-version; bh=b6rzflAv65RWok2IvipOANm4pwqZvG194Z47r/ZtYsE=; b=NEsfksa98rs6AmzYn1RsY75AhTLZx+hkEfftAIPXR4YGoRawxiXUfzLe kylVAdwIZrtjjaQUBogUOYaNxp37L7IxI9nxVIv7vOJab+wNekb0mm1bx KNVPiq4lTPUALRTM7fX2NmLVXnKyUe5Uvux5YlPb068Va5N3ySQt6RRwj 4jnbbmys1xlHQV1Ir3ssTb0/gWCfpW2aUNYNm2zwBv9rHvHk2jfYk5fDK bnmZTkte9GuuhzRrvY8hF1yyFuvsfAg3qp/YUHW+xeczGsmwgwHowuggj +VwQe3ul/LAtaxUHOeBcJxFJ4wZJOqJsrGUDkYpa14T4mT2f3Ufw5GR16 A==; X-CSE-ConnectionGUID: wcv2ZKNRRX6SJU+L6dnyhg== X-CSE-MsgGUID: OeVmayK2S+m0vS34NpZ2ew== X-IronPort-AV: E=McAfee;i="6700,10204,11129"; a="17913982" X-IronPort-AV: E=Sophos;i="6.09,200,1716274800"; d="scan'208";a="17913982" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2024 04:43:23 -0700 X-CSE-ConnectionGUID: cQU1w8qGQf22o/VQo6Nhxw== X-CSE-MsgGUID: /1zGK+vFSW6oMwUen3xyfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,200,1716274800"; d="scan'208";a="53124942" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 11 Jul 2024 04:43:21 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sRsCl-000ZDm-1G; Thu, 11 Jul 2024 11:43:19 +0000 Date: Thu, 11 Jul 2024 19:42:43 +0800 From: kernel test robot To: Christophe Leroy Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton , Peter Xu Subject: [linux-next:master 12377/12643] arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined Message-ID: <202407111910.kbzq5PZK-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Stat-Signature: ma6w53pu8gjogk469insi3k617yth6ft X-Rspamd-Queue-Id: DDB444000D X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1720698204-999866 X-HE-Meta: U2FsdGVkX18JhJUTS9oKFQq30tFI7LtbaNFrHTHlZTTruiJRFpTLkA3lTECcpAmeYk+SwZgpwdMh1/XPEtdNgAwrufK7KQDRYsNkSdMOZZivEbBm4wd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zxhXEYNKPYysbxeTmLk2g1L3d8J0/VZAznlVrIy9+lKp2XjAg01LQIr1MX+2ZwBvMBl39b5JP4OBlw/X9VDXpNBbl6UxKoTGQrfa6i6cDR7X3m5m6LtI9mhzssWxow/EZtVELib6QNPKjkYq9qVZMobIOy4ChxklktO6ZHK3GU/H9kDWyl5 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f477dd6eede3ecedc8963478571d99ec3bf3f762 commit: 4d460b397e28528bab4b2cea6a9337560e78b0b8 [12377/12643] mm: add p{g/4}d_leaf() in asm-generic/pgtable-nop{4/u}d.h config: loongarch-randconfig-r031-20230725 (https://download.01.org/0day-ci/archive/20240711/202407111910.kbzq5PZK-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240711/202407111910.kbzq5PZK-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/202407111910.kbzq5PZK-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/pgtable.h:6, from include/linux/mm.h:30, from arch/loongarch/kernel/asm-offsets.c:9: >> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined 614 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/loongarch/include/asm/pgtable.h:18: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | -- In file included from arch/loongarch/include/asm/uaccess.h:17, from include/linux/uaccess.h:11, from include/linux/sched/task.h:13, from include/linux/sched/signal.h:9, from include/linux/rcuwait.h:6, from include/linux/percpu-rwsem.h:7, from include/linux/fs.h:33, from include/linux/debugfs.h:15, from drivers/hwmon/pmbus/ibm-cffps.c:8: >> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined 614 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/loongarch/include/asm/pgtable.h:18: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | drivers/hwmon/pmbus/ibm-cffps.c: In function 'ibm_cffps_debugfs_read': drivers/hwmon/pmbus/ibm-cffps.c:169:60: warning: '%02X' directive output may be truncated writing between 2 and 8 bytes into a region of size 3 [-Wformat-truncation=] 169 | snprintf(&data[i * 2], 3, "%02X", rc); | ^~~~ drivers/hwmon/pmbus/ibm-cffps.c:169:59: note: directive argument in the range [0, 2147483647] 169 | snprintf(&data[i * 2], 3, "%02X", rc); | ^~~~~~ drivers/hwmon/pmbus/ibm-cffps.c:169:33: note: 'snprintf' output between 3 and 9 bytes into a destination of size 3 169 | snprintf(&data[i * 2], 3, "%02X", rc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hwmon/pmbus/ibm-cffps.c:180:60: warning: '%04X' directive output may be truncated writing between 4 and 8 bytes into a region of size 5 [-Wformat-truncation=] 180 | snprintf(&data[i * 4], 5, "%04X", rc); | ^~~~ drivers/hwmon/pmbus/ibm-cffps.c:180:59: note: directive argument in the range [0, 2147483647] 180 | snprintf(&data[i * 4], 5, "%04X", rc); | ^~~~~~ drivers/hwmon/pmbus/ibm-cffps.c:180:33: note: 'snprintf' output between 5 and 9 bytes into a destination of size 5 180 | snprintf(&data[i * 4], 5, "%04X", rc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/pgtable.h:6, from include/linux/mm.h:30, from arch/loongarch/kernel/asm-offsets.c:9: >> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined 614 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/loongarch/include/asm/pgtable.h:18: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | In file included from include/linux/pgtable.h:6, from include/linux/mm.h:30, from arch/loongarch/include/asm/vdso.h:10, from arch/loongarch/vdso/vgetcpu.c:6: >> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined 614 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/loongarch/include/asm/pgtable.h:18: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | In file included from include/linux/pgtable.h:6, from include/linux/mm.h:30, from arch/loongarch/include/asm/vdso.h:10, from arch/loongarch/include/asm/vdso/vdso.h:11, from arch/loongarch/include/asm/vdso/gettimeofday.h:13, from include/vdso/datapage.h:149, from lib/vdso/gettimeofday.c:5, from : >> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined 614 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/loongarch/include/asm/pgtable.h:18: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | vim +/pud_leaf +614 arch/loongarch/include/asm/pgtable.h d4b6f1562a3c32 Huacai Chen 2022-05-31 612 303be4b33562a5 Hongchen Zhang 2023-09-06 613 #define pmd_leaf(pmd) ((pmd_val(pmd) & _PAGE_HUGE) != 0) 303be4b33562a5 Hongchen Zhang 2023-09-06 @614 #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) 303be4b33562a5 Hongchen Zhang 2023-09-06 615 :::::: The code at line 614 was first introduced by commit :::::: 303be4b33562a5b689261ced1616bf16ad49efa7 LoongArch: mm: Add p?d_leaf() definitions :::::: TO: Hongchen Zhang :::::: CC: Huacai Chen -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki