From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1945605240064246195==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [cxl:preview 48/60] drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} Date: Thu, 27 Jan 2022 17:44:09 +0800 Message-ID: <202201271653.C879dFKr-lkp@intel.com> List-Id: --===============1945605240064246195== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview head: 41c2d219a2c8e14de644f4e953e0c57402c3e884 commit: 99fd0afb6e1b21f8de1179f39f491347b6f3f04d [48/60] cxl/region: Introd= uce concept of region configuration config: csky-randconfig-p002-20220126 (https://download.01.org/0day-ci/arch= ive/20220127/202201271653.C879dFKr-lkp(a)intel.com/config) compiler: csky-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commi= t/?id=3D99fd0afb6e1b21f8de1179f39f491347b6f3f04d git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/= cxl/cxl.git git fetch --no-tags cxl preview git checkout 99fd0afb6e1b21f8de1179f39f491347b6f3f04d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dcsky SHELL=3D/bin/bash drivers/cxl/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/cxl/core/region.c: In function 'offset_show': >> drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argumen= t of type 'long long unsigned int', but argument 3 has type 'resource_size_= t' {aka 'unsigned int'} [-Wformat=3D] 119 | return sysfs_emit(buf, "%#llx\n", | ~~~~^ | | | long long unsigned int | %#x 120 | cxld->platform_res.start - cxlr->res->= start); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ | | | resource_size= _t {aka unsigned int} vim +119 drivers/cxl/core/region.c 109 = 110 static ssize_t offset_show(struct device *dev, struct device_attribu= te *attr, 111 char *buf) 112 { 113 struct cxl_decoder *cxld =3D to_cxl_decoder(dev->parent); 114 struct cxl_region *cxlr =3D to_cxl_region(dev); 115 = 116 if (!cxlr->res) 117 return sysfs_emit(buf, "\n"); 118 = > 119 return sysfs_emit(buf, "%#llx\n", 120 cxld->platform_res.start - cxlr->res->start); 121 } 122 static DEVICE_ATTR_RO(offset); 123 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1945605240064246195==-- 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C70CBC433EF for ; Thu, 27 Jan 2022 09:44:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238820AbiA0Jo5 (ORCPT ); Thu, 27 Jan 2022 04:44:57 -0500 Received: from mga09.intel.com ([134.134.136.24]:36813 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238818AbiA0Jox (ORCPT ); Thu, 27 Jan 2022 04:44:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643276693; x=1674812693; h=date:from:to:cc:subject:message-id:mime-version; bh=GBYvIZcsiJMxHaFpT+Xr97H7ksdyXVDdjbcAU2Jnhhw=; b=Kt9TiLxK+sr+W4ra//e/ACCf1KohkuDPqAcytIfneIGyvpOHmmHJAJui 1WqJCDXCiT9eSD9f1mDArsc2QFITNzLNBZYIraQ4SzGg2myd08coSHsUD CZrvWlWbFYu6btebQcgsMNf3g+lUkDMce6j+JVCu7tfF0W/zjNlqyugQ5 RDeRampBdcteQ0DTRlWWF0R78lDX/eEcox/XgBDIv3vNzCC5rMxgkRf+K zjT5V0RVkZbUZ/NXuQOeQfPDrg/3eWQSlwx1E/7AmmMJxLyptcMDCnMyq qC4W5wjOLjRkNlUHU0hIe6RHuu+cxkj40V24YhFLpuUfEprpdGRo3+Mho Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10239"; a="246580237" X-IronPort-AV: E=Sophos;i="5.88,320,1635231600"; d="scan'208";a="246580237" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2022 01:44:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,320,1635231600"; d="scan'208";a="618268754" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jan 2022 01:44:50 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nD1Kk-000MQP-86; Thu, 27 Jan 2022 09:44:50 +0000 Date: Thu, 27 Jan 2022 17:44:09 +0800 From: kernel test robot To: Ben Widawsky Cc: kbuild-all@lists.01.org, Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , linux-kernel@vger.kernel.org Subject: [cxl:preview 48/60] drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} Message-ID: <202201271653.C879dFKr-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview head: 41c2d219a2c8e14de644f4e953e0c57402c3e884 commit: 99fd0afb6e1b21f8de1179f39f491347b6f3f04d [48/60] cxl/region: Introduce concept of region configuration config: csky-randconfig-p002-20220126 (https://download.01.org/0day-ci/archive/20220127/202201271653.C879dFKr-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=99fd0afb6e1b21f8de1179f39f491347b6f3f04d git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git git fetch --no-tags cxl preview git checkout 99fd0afb6e1b21f8de1179f39f491347b6f3f04d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash drivers/cxl/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/cxl/core/region.c: In function 'offset_show': >> drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=] 119 | return sysfs_emit(buf, "%#llx\n", | ~~~~^ | | | long long unsigned int | %#x 120 | cxld->platform_res.start - cxlr->res->start); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | resource_size_t {aka unsigned int} vim +119 drivers/cxl/core/region.c 109 110 static ssize_t offset_show(struct device *dev, struct device_attribute *attr, 111 char *buf) 112 { 113 struct cxl_decoder *cxld = to_cxl_decoder(dev->parent); 114 struct cxl_region *cxlr = to_cxl_region(dev); 115 116 if (!cxlr->res) 117 return sysfs_emit(buf, "\n"); 118 > 119 return sysfs_emit(buf, "%#llx\n", 120 cxld->platform_res.start - cxlr->res->start); 121 } 122 static DEVICE_ATTR_RO(offset); 123 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org