Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1236333rdb; Fri, 2 Feb 2024 20:33:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhELx0hpUnljjByOuNzLoovhjc5U1OpiNzgf+m3bDlY2gUYNOCrxeVN74G9UimCMTTngma X-Received: by 2002:a17:906:dfcb:b0:a36:32d1:5140 with SMTP id jt11-20020a170906dfcb00b00a3632d15140mr7256253ejc.16.1706934835098; Fri, 02 Feb 2024 20:33:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706934835; cv=pass; d=google.com; s=arc-20160816; b=UQgdALCD89MW0izHWSHTgWTuz/J+xiQJpQ767s8jq4HCLs/QXGSH7B5ixRduDMdDnr Kz0rujt+ItvB332y6Daii4WPr0k3X+jkS0wAcuFfjcSX+uMVRWu9o9YJjU9bvs4UhiuO dpwabuZ+GAICdpyZOXbc2lWQPiPLXByajYvCm0mkhj6ihvT1x+X91RqgM3pLRN4ltj03 7ijtXAGQrcRUiF6FBTkQmgTn+0hAeSPcOdsHmmcNnZp140nwBdxhj1nJ8JqP5CEGqC/f C3x/OibVH1sb8/NivrEFIPGRzKPbxIKQCdlm+xkrSob+s9NtXkruD156rjKY/ko9u4G/ JLLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GcXXYUgVSL9kjl2XrH/4D3QOseZ7ki/ehIxouq4tLTI=; fh=04cXK1frUmrzOqExp8MHIgXaP87+LjkGU0TUkadpuwY=; b=jFZRGKi0aTa5YaAan+JyuotwTYzy8TDGqWKE7j3gLzDGJZvWwnvPaYd65lMucO0EOi y9rGM35hF3yRYgl6zFCrHjQ/Xp8+r6ONWfylZFzjeSyPyZmGzrrtgQIA/YQFV2HatQop mE6EZprYRFcGqgQktyy2J5Rj0cqjZTMB+mOKw7R0aeND3tvbQruwtZF9eiGjO3EEwD/Y GOT5WrOQN/NSbNeE8v4Mf4T+wi2+0tYvP9U4CNFGnRmpu+7XwNVyJMUrP5VENsPfj7BB C0sOToQB00NtkKpWwFAMYALVMvfxqwyiLsvnkMozFIDOyX9LQwXLD6TRzEuEO/uoA2n5 AQsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Ob/JSzh4"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCWIMT1IWbaxs5bxBkgDqEXqEwbiLmeUcQG6vD8bABstVe4/qSavdY7IteQ8XB7oNUTodm3wVMdDnnSFpOEz/56lHUtZSBZhREQgydM/iQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p25-20020a170906229900b00a3104d032dfsi1418920eja.394.2024.02.02.20.33.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 20:33:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Ob/JSzh4"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 48AE01F26318 for ; Sat, 3 Feb 2024 04:33:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 001B711CBE; Sat, 3 Feb 2024 04:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ob/JSzh4" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27A22F9E9; Sat, 3 Feb 2024 04:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706934072; cv=none; b=hGm5cPbLFWPlzDVCn5UQcheK4SpZZpO2Zd3vg27wTqO0BqjQVmTBFyIL1U4dP7tIZQrMtbAc28Oh0YqXh8bm/UFG8yO29ysqx7MVSzPrkq5cUsopb9tZNPa8z0TT2onZBRx51YIiZXF1u86RxJtsPbvXkiuyY+fyZUkeWczIlxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706934072; c=relaxed/simple; bh=l8fqb95s8syuE8Cx9UHSXoTZx0Bim/EsdxuGX0FstWM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JlrzzMn17WcE2+omPjIlPfNkxA0NKTNLHLUghMgDF/+ZPCZDIVCkqZSTb/VKnsiAkcTvvDhgozch9yumz3cd1MH8jWlq6sQrKln6gcS/fClkKlTsU/YTny3GCO3iEH8tiaaBxfiZHrDHgDMWCSTAXHqk2Pajr47r0Ho/S32GrtQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Ob/JSzh4; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706934070; x=1738470070; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=l8fqb95s8syuE8Cx9UHSXoTZx0Bim/EsdxuGX0FstWM=; b=Ob/JSzh4WBeKLXmCRYHxj0k/fdIaMYdMwTw8tdPiN6OBBPCRuSofnoie S1W2a9wUCnGYYPfO6jYcARhZ+lqAEe3Gl/OwtWWHAN0hotGLHnFB3Br5M uSESZkJIcczAzGtKcgbjHv7KCE7PkqYcOVU+6oCessqMcJIX9FLyjM09M H54X4/G5CPOSGm16CojGP7Kgr3BWLmXPdbZBuw+Mvp0U6EfYkvPIYVRUA bijxowSmPI5RZbHPi4dCPhNXEwDKRQSAn4UC/xuA/WZS8A+1UpkAlsJsc NAWyQngE3ZSfJtF1sZf1h+y1D2kapn2p27ZvPdM9MLVCDW9BEem6zoVWo w==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="11655561" X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="11655561" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 20:21:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="31047732" Received: from lkp-server02.sh.intel.com (HELO 59f4f4cd5935) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 02 Feb 2024 20:21:04 -0800 Received: from kbuild by 59f4f4cd5935 with local (Exim 4.96) (envelope-from ) id 1rW7WX-0004cQ-0G; Sat, 03 Feb 2024 04:21:01 +0000 Date: Sat, 3 Feb 2024 12:20:06 +0800 From: kernel test robot To: Andrew Davis , Sebastian Reichel , Manivannan Sadhasivam , Cristian Ciocaltea , Florian Fainelli , Ray Jui , Scott Branden , Bjorn Andersson , Konrad Dybcio , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno Cc: oe-kbuild-all@lists.linux.dev, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Andrew Davis Subject: Re: [PATCH 09/18] power: reset: rmobile-reset: Use devm_register_sys_off_handler(RESTART) Message-ID: <202402031246.nZHDnDnf-lkp@intel.com> References: <20240201180102.70395-10-afd@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201180102.70395-10-afd@ti.com> Hi Andrew, kernel test robot noticed the following build warnings: [auto build test WARNING on sre-power-supply/for-next] [also build test WARNING on mani-mhi/mhi-next soc/for-next linus/master v6.8-rc2 next-20240202] [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/Andrew-Davis/power-reset-atc260x-poweroff-Use-devm_register_sys_off_handler-RESTART/20240202-020809 base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next patch link: https://lore.kernel.org/r/20240201180102.70395-10-afd%40ti.com patch subject: [PATCH 09/18] power: reset: rmobile-reset: Use devm_register_sys_off_handler(RESTART) config: hexagon-randconfig-r122-20240202 (https://download.01.org/0day-ci/archive/20240203/202402031246.nZHDnDnf-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 7dd790db8b77c4a833c06632e903dc4f13877a64) reproduce: (https://download.01.org/0day-ci/archive/20240203/202402031246.nZHDnDnf-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/202402031246.nZHDnDnf-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/power/reset/rmobile-reset.c:24:40: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] __iomem *sysc_base2 @@ got void *cb_data @@ drivers/power/reset/rmobile-reset.c:24:40: sparse: expected void [noderef] __iomem *sysc_base2 drivers/power/reset/rmobile-reset.c:24:40: sparse: got void *cb_data >> drivers/power/reset/rmobile-reset.c:45:47: sparse: sparse: incorrect type in argument 5 (different address spaces) @@ expected void *cb_data @@ got void [noderef] __iomem *[assigned] sysc_base2 @@ drivers/power/reset/rmobile-reset.c:45:47: sparse: expected void *cb_data drivers/power/reset/rmobile-reset.c:45:47: sparse: got void [noderef] __iomem *[assigned] sysc_base2 vim +24 drivers/power/reset/rmobile-reset.c 21 22 static int rmobile_reset_handler(struct sys_off_data *data) 23 { > 24 void __iomem *sysc_base2 = data->cb_data; 25 26 /* Let's assume we have acquired the HPB semaphore */ 27 writel(RESCNT2_PRES, sysc_base2 + RESCNT2); 28 29 return NOTIFY_DONE; 30 } 31 32 static int rmobile_reset_probe(struct platform_device *pdev) 33 { 34 void __iomem *sysc_base2; 35 int error; 36 37 sysc_base2 = devm_platform_ioremap_resource(pdev, 0); 38 if (IS_ERR(sysc_base2)) 39 return PTR_ERR(sysc_base2); 40 41 error = devm_register_sys_off_handler(&pdev->dev, 42 SYS_OFF_MODE_RESTART, 43 SYS_OFF_PRIO_HIGH, 44 rmobile_reset_handler, > 45 sysc_base2); 46 if (error) { 47 dev_err(&pdev->dev, 48 "cannot register restart handler (err=%d)\n", error); 49 return error; 50 } 51 52 return 0; 53 } 54 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki