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 446E9C41513 for ; Sat, 12 Aug 2023 06:06:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 525B56B0074; Sat, 12 Aug 2023 02:06:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4D5176B0078; Sat, 12 Aug 2023 02:06:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3C3376B007B; Sat, 12 Aug 2023 02:06:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 2C69E6B0074 for ; Sat, 12 Aug 2023 02:06:11 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id F373DA0359 for ; Sat, 12 Aug 2023 06:06:10 +0000 (UTC) X-FDA: 81114417342.30.4E4B1A8 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by imf14.hostedemail.com (Postfix) with ESMTP id EE30B100005 for ; Sat, 12 Aug 2023 06:06:07 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Pm+RpZxq; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691820369; 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=1onJOpe5iTGn7S4Qxkx+9sAcLPdvzMQj22WTtzNLNO8=; b=7uL1/XBgXI3OPZmsfPsYgAbSXS50uhwTZPm9ArrfXf/EfOYR/vGXkZ8VAgavVZ//qKWCkN cOCBCi3stUQTL0vXeljkB4kDMP8xL1NGYD4wlylbwr1XoWM/oadBHzKc4O5QlbXpzkLHVO MVwbKR0JoAtPYblzI8UB6va4uLgImcA= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Pm+RpZxq; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691820369; a=rsa-sha256; cv=none; b=bCEU/f7DlXAksYSclpVmHPJ5O7g4YDLi0AbDb+9CNql28O58G4oej6f4MLbNlzMYR1mN7Y /Fz8rC/X2oTOXKNi/aHjnF7xn+cbrpQR3UYvsPwYWCB2YsNmxivqGsUh0gfaIZ2lEsPfzy aLjbK9COVHjJzICxfkpGpIRGAfbCEHo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691820368; x=1723356368; h=date:from:to:cc:subject:message-id:mime-version; bh=aZgYin/KqAO+3PwPM5RffpI06r0zRp7eGWvzv2e5KNQ=; b=Pm+RpZxqIS0CiLAIF78dOvQSR86BfuAfuKzF6q9YNuKeJI271Sq2N1WX f4q5MIKjShgSX/+14QZ0Qbgd+gGGn/7tLnucDkEZ7DyfklDxOUSjERJXA Em2Qg1RN4JdV+RezV6Ls18e/q9nHhKMWA67xxVKy96gsvzS6b/IwkKU9L qFr9SRQS2YCVUudpvWLsCIvJrBjQMryPB0ooY1LrWDgo+CozI4a0FK2/j 00gTQPLrbPJtb3+t/jicuEtD8ERuGVj4yitpGGx0O8XtdqRGEQdwE5Tz0 zCSjrtGOE/2uJDDRzDHFQkq7kAVoqDNhy57lZd7iMKYpj0Zct4Rjp4Qe5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="458176603" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="458176603" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 23:06:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="846999315" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="846999315" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 11 Aug 2023 23:06:04 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qUhlD-0008Jh-2E; Sat, 12 Aug 2023 06:06:03 +0000 Date: Sat, 12 Aug 2023 14:05:23 +0800 From: kernel test robot To: Vlastimil Babka Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org Subject: [vbabka:slab-orders 1/2] mm/slub.c:6262:26: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') Message-ID: <202308121325.FhwUCFCC-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: EE30B100005 X-Stat-Signature: yrdiptbdjffpbn17jxxqa41x9r9ghzie X-HE-Tag: 1691820367-184228 X-HE-Meta: U2FsdGVkX184TNKtwGE4t9vAiYpgUWPSrPRDnkvN3436Bu76F9+4ZXEq+JnVjDnNmkAEeiPX6mirZk0md7EFnACMt5++DykAAAfWR9u2DdH041YXnqJbi9OHNjqt9Ax1nF1dnGBxYJ2cjxBtASByHfZ6LiusAIGdhMLCIJhK4Q1TWxQje02t+6hqlgRg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vcQbvpdrb0v/wEJ5eybKoNtVgxQyvwdq2E96kEP6iaDZmolHV4AtYntdWIvSSVoLit42mnzVV4VFn 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git slab-orders head: 93d25b5ac13e097b8c7274a7ca354d2a4d88d7ae commit: e036e48cc75073b52ea9ccf837574f95ad58604d [1/2] mm, slub: print out results for calculate_order() with varying parameters config: hexagon-randconfig-r041-20230812 (https://download.01.org/0day-ci/archive/20230812/202308121325.FhwUCFCC-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230812/202308121325.FhwUCFCC-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/202308121325.FhwUCFCC-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from mm/slub.c:14: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from mm/slub.c:14: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from mm/slub.c:14: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ mm/slub.c:2276:15: warning: variable 'partial_slabs' set but not used [-Wunused-but-set-variable] 2276 | unsigned int partial_slabs = 0; | ^ >> mm/slub.c:6262:26: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat] 6262 | pr_info("%10lu\t%d\n", size, order); | ~~~~~ ^~~~ | %10zu include/linux/printk.h:528:34: note: expanded from macro 'pr_info' 528 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ~~~ ^~~~~~~~~~~ include/linux/printk.h:455:60: note: expanded from macro 'printk' 455 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) | ~~~ ^~~~~~~~~~~ include/linux/printk.h:427:19: note: expanded from macro 'printk_index_wrap' 427 | _p_func(_fmt, ##__VA_ARGS__); \ | ~~~~ ^~~~~~~~~~~ 8 warnings generated. vim +6262 mm/slub.c 6248 6249 static void __print_all_orders(unsigned int page_shift, unsigned int nr_cpus) 6250 { 6251 int last_order = -1; 6252 6253 pr_info("Calculated slab orders for page_shift %u nr_cpus %u:\n", 6254 page_shift, nr_cpus); 6255 6256 for (size_t size = 8; size < 1024*1024; size += 8) { 6257 int order = __calculate_order(size, page_shift, nr_cpus); 6258 6259 if (order == last_order) 6260 continue; 6261 > 6262 pr_info("%10lu\t%d\n", size, order); 6263 6264 last_order = order; 6265 } 6266 } 6267 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki