Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp629669pxb; Tue, 1 Feb 2022 07:18:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWHA+taM9B8dEzfPphGlR1t75xKMmRUH+mV1PZou+pzcKd7gycyD8p6SULssQIOjj3MutC X-Received: by 2002:a05:6402:c15:: with SMTP id co21mr25485591edb.185.1643728699522; Tue, 01 Feb 2022 07:18:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643728699; cv=none; d=google.com; s=arc-20160816; b=ix4oj/FbhEZyzdkde6YAPBeH3TXWyN0un6yBLjQMaGJ6QNpQe9phvXw1y78xl6hl4G wuJ+v/AKAiEip39d8Thz29cVI3FGtqjf9w424bynaB6C7C1qT2ibXL/hSP6WJVJHcwlJ seVpXDPhGGpLWysETBwfSgVLd8Akhm/gJiSi1Hvd/8fxixOXL+bDRezM2ob6yPiYy+iX 9amz1tQNVOwGZH74w0tr5ZdG5ToFk107YZr9IAIgqra5Sv1QXm3zQmMpfB0kkha7vjuD +hcUuNGTq3HC8neGbEwusYvPNCOZN/kV3OKy20RtJiB3n5SQw3PyUIeE4vko5eq+unmx HYvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QZm8KMovJtu6wFEV2bc595tyxaJorr1uBcHgJ2l+Z7w=; b=RVMX0+nnADY0W4DzknHbdY5zQP0M6WE4/ftFFWdPQNtwl9LsgJw0eXMzWFkD1OAFxM 6HqOtMRrET1uUIRMrsuHIjfL1K8lE5PyxOZkPhbyg6FQ6vmXIWJmU+io7p40kP2UpAOB MQ8sZLWJPz/4rCIjPKnNF7b5Khsvja4xnk/n4rUEXh1Vq2YGk1staJrquq3SE38OER2c NuGQ0Zfp+jbYIRU9RG6w3h7fQtyV4mQXWChQyUH4U69YPQWD8yruJvEXPNiP+sEKPz7w 67xek5I9upHzStyy2g8cKx+b02nFfnwV+6d7mZ8bVR4ZL87a3TQ1iNWgY4HObSAwxTI0 GxbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=O9+fsqwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si9074800ejh.124.2022.02.01.07.17.52; Tue, 01 Feb 2022 07:18:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=O9+fsqwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357415AbiAaCxK (ORCPT + 99 others); Sun, 30 Jan 2022 21:53:10 -0500 Received: from mga06.intel.com ([134.134.136.31]:41207 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357393AbiAaCxI (ORCPT ); Sun, 30 Jan 2022 21:53:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643597587; x=1675133587; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7lGNzKZJkvkP+E3JiYcU2azS9V5iFuZ31UoQmJQLXXo=; b=O9+fsqwiDCKQcISzwXy8E/tn16XTqKWXEfqcX88E22TM+bcIbuluugIE QhUNHxgkXofHQP8EQPiJ6uqg2f0zpBucCe/POx+VmhM2i7YuUrcjx8HcZ 2oHGaPqTRxlCJxxQuCRSU36k1uW3A+XA0Ju9bWo6kwT4QAdOQoWTySyVa W53NAjHgm8qBSlWxsKo5MSQPM7bgd/UCuWl4f5bdBZUetTLIIvzlbKMTC Q9iBJSGo4G+UEzI8vjea/3LAttsu9U839coWAQrBsFDC6jPCgyX34Tfih ZaKQlAtjfX13XG1STW5nFxczVgECVAN0gRGNWplhtaoO7ki9iIta/BxNS Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10243"; a="308122614" X-IronPort-AV: E=Sophos;i="5.88,329,1635231600"; d="scan'208";a="308122614" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2022 18:53:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,329,1635231600"; d="scan'208";a="598719790" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 30 Jan 2022 18:53:03 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nEMoQ-000RIQ-Me; Mon, 31 Jan 2022 02:53:02 +0000 Date: Mon, 31 Jan 2022 10:52:54 +0800 From: kernel test robot To: Terry Bowman , linux@roeck-us.net, linux-watchdog@vger.kernel.org, jdelvare@suse.com, linux-i2c@vger.kernel.org, wsa@kernel.org, andy.shevchenko@gmail.com, rafael.j.wysocki@intel.com Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, wim@linux-watchdog.org Subject: Re: [PATCH v4 2/4] Watchdog: sp5100_tco: Refactor MMIO base address initialization Message-ID: <202201311012.U53Rg3e2-lkp@intel.com> References: <20220130191225.303115-3-terry.bowman@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220130191225.303115-3-terry.bowman@amd.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Terry, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on groeck-staging/hwmon-next] [also build test WARNING on linux/master linus/master v5.17-rc2 next-20220128] [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] url: https://github.com/0day-ci/linux/commits/Terry-Bowman/Watchdog-sp5100_tco-Replace-cd6h-cd7h-port-I-O-accesses-with-MMIO-accesses/20220131-031525 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next config: x86_64-randconfig-m001-20220131 (https://download.01.org/0day-ci/archive/20220131/202201311012.U53Rg3e2-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/e6855f66e7e915cd09a8f8dae411997df8a7c641 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Terry-Bowman/Watchdog-sp5100_tco-Replace-cd6h-cd7h-port-I-O-accesses-with-MMIO-accesses/20220131-031525 git checkout e6855f66e7e915cd09a8f8dae411997df8a7c641 # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/watchdog/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/pci.h:37, from drivers/watchdog/sp5100_tco.c:40: drivers/watchdog/sp5100_tco.c: In function 'sp5100_tco_prepare_base': >> drivers/watchdog/sp5100_tco.c:270:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'void *' [-Wformat=] 270 | dev_info(dev, "Using 0x%08x for watchdog MMIO address\n", tco->tcobase); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:16: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:150:51: note: in expansion of macro 'dev_fmt' 150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/watchdog/sp5100_tco.c:270:2: note: in expansion of macro 'dev_info' 270 | dev_info(dev, "Using 0x%08x for watchdog MMIO address\n", tco->tcobase); | ^~~~~~~~ drivers/watchdog/sp5100_tco.c:270:28: note: format string is defined here 270 | dev_info(dev, "Using 0x%08x for watchdog MMIO address\n", tco->tcobase); | ~~~^ | | | unsigned int | %08p vim +270 drivers/watchdog/sp5100_tco.c 238 239 static u32 sp5100_tco_prepare_base(struct sp5100_tco *tco, 240 u32 mmio_addr, 241 u32 alt_mmio_addr, 242 const char *dev_name) 243 { 244 struct device *dev = tco->wdd.parent; 245 246 dev_dbg(dev, "Got 0x%08x from SBResource_MMIO register\n", mmio_addr); 247 248 if (!mmio_addr && !alt_mmio_addr) 249 return -ENODEV; 250 251 /* Check for MMIO address and alternate MMIO address conflicts */ 252 if (mmio_addr) 253 mmio_addr = sp5100_tco_request_region(dev, mmio_addr, dev_name); 254 255 if (!mmio_addr && alt_mmio_addr) 256 mmio_addr = sp5100_tco_request_region(dev, alt_mmio_addr, dev_name); 257 258 if (!mmio_addr) { 259 dev_err(dev, "Failed to reserve MMIO or alternate MMIO region\n"); 260 return -EBUSY; 261 } 262 263 tco->tcobase = devm_ioremap(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE); 264 if (!tco->tcobase) { 265 dev_err(dev, "MMIO address 0x%08x failed mapping\n", mmio_addr); 266 devm_release_mem_region(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE); 267 return -ENOMEM; 268 } 269 > 270 dev_info(dev, "Using 0x%08x for watchdog MMIO address\n", tco->tcobase); 271 272 return 0; 273 } 274 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org