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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 644B8C05027 for ; Mon, 6 Feb 2023 17:28:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjBFR2J (ORCPT ); Mon, 6 Feb 2023 12:28:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbjBFR2C (ORCPT ); Mon, 6 Feb 2023 12:28:02 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27BA04684; Mon, 6 Feb 2023 09:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675704450; x=1707240450; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9MpOg/e1tMdiWWJ9lP+bpHqg1Mk6yUXpiIjkXYKqsLQ=; b=KpBiHlZAQVA8zC0wKWkpn11yqhlAAcPm9ga1k6J7rMtFhAzIDFFze5jh zf9YCJQaREMFJFdcangATlILVY3lF8FFWJwhvYC40LW3IXIyhbvMR8eXd sj0qurs4k+o2QOIIXO6b7O+BjesiP6O2XSaGh4DDPsgby/7gg2CnN+iMw MuoG2C3qcA7Nx4SuKx1V3nnlzdf4Nb2PGS/1nobvc0V/FZLI911Gwl9pV XL2+1Fk4VaNGylyJYJ0V04lCz3VvWzG2sKtdhX1j6gaNBkjhlpG2Wi29U rlfz9C7yfOif3N9Xq6qkG8KMpfPfK50LCwFIUYcIwiVl1Jll3PWy4lLGV A==; X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="317270844" X-IronPort-AV: E=Sophos;i="5.97,276,1669104000"; d="scan'208";a="317270844" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2023 09:25:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="840435152" X-IronPort-AV: E=Sophos;i="5.97,276,1669104000"; d="scan'208";a="840435152" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 06 Feb 2023 09:25:07 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pP5Ep-0002hI-0F; Mon, 06 Feb 2023 17:25:07 +0000 Date: Tue, 7 Feb 2023 01:24:24 +0800 From: kernel test robot To: Martin Liu , robh+dt@kernel.org, frowand.list@gmail.com Cc: oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, surenb@google.com, minchan@kernel.org, tkjos@google.com, liumartin@google.com Subject: Re: [PATCH] of: reserved-mem: expose reserved-mem details via debugfs Message-ID: <202302070150.S0t7TNwD-lkp@intel.com> References: <20230206142714.4151047-1-liumartin@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230206142714.4151047-1-liumartin@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Martin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on robh/for-next] [also build test WARNING on linus/master v6.2-rc7 next-20230206] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Martin-Liu/of-reserved-mem-expose-reserved-mem-details-via-debugfs/20230206-222927 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20230206142714.4151047-1-liumartin%40google.com patch subject: [PATCH] of: reserved-mem: expose reserved-mem details via debugfs config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230207/202302070150.S0t7TNwD-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/5d479d32b3863f2ec8d10d756aa57cf29046e334 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Martin-Liu/of-reserved-mem-expose-reserved-mem-details-via-debugfs/20230206-222927 git checkout 5d479d32b3863f2ec8d10d756aa57cf29046e334 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/of/of_reserved_mem.c: In function 'of_reserved_mem_debug_show': >> drivers/of/of_reserved_mem.c:465:46: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=] 465 | seq_printf(m, "%pa..%pa ( %7lu KB ) %5s %12s %s\n", &rmem->base, | ~~~^ | | | long unsigned int | %7llu 466 | &end, rmem->size / 1024, | ~~~~~~~~~~~~~~~~~ | | | phys_addr_t {aka long long unsigned int} vim +465 drivers/of/of_reserved_mem.c 450 451 #if defined(CONFIG_DEBUG_FS) 452 static int of_reserved_mem_debug_show(struct seq_file *m, void *private) 453 { 454 unsigned int i; 455 size_t sum = 0; 456 457 for (i = 0; i < reserved_mem_count; i++) { 458 const struct reserved_mem *rmem = &reserved_mem[i]; 459 unsigned long node = rmem->fdt_node; 460 phys_addr_t end = rmem->base + rmem->size - 1; 461 bool nomap = (of_get_flat_dt_prop(node, "no-map", NULL)) != NULL; 462 bool reusable = (of_get_flat_dt_prop(node, "reusable", NULL)) != NULL; 463 464 sum += rmem->size; > 465 seq_printf(m, "%pa..%pa ( %7lu KB ) %5s %12s %s\n", &rmem->base, 466 &end, rmem->size / 1024, 467 nomap ? "nomap" : "map", 468 reusable ? "reusable" : "non-reusable", 469 rmem->name ? rmem->name : "unknown"); 470 } 471 seq_printf(m, "Total %d regions, %zu KB\n", 472 reserved_mem_count, 473 sum / 1024); 474 return 0; 475 } 476 DEFINE_SHOW_ATTRIBUTE(of_reserved_mem_debug); 477 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests