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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A79FDCAC5A7 for ; Thu, 25 Sep 2025 15:31:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 50FF210E97B; Thu, 25 Sep 2025 15:31:34 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="YI/2h8BM"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 29A5810E97B for ; Thu, 25 Sep 2025 15:31:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758814293; x=1790350293; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ICtwjw/cDqxlbtBd+vd9OvqVhxcoYE4gqtN8z1wBFQU=; b=YI/2h8BMcGlm8VmozaY6IuJm4jW8nMsjwauKPdUWKfdMRotWnBTuXEXB 97nbbxHqUmjZbIGU/ANJ6rvc2NKs1SX0jJcCHNxbse6oLETkMVF64eQ1L ctud8J+kThW1ahPexrGEgi+gm3E/+Z9OkD2Zjs+TB1OuTVqpQAhZGlCg7 QmvC0eh+tIiXz0HPbmJgZP4zIsjN+K+H2SlEmpn8oYyUJPbsNv3oDM1BW TIlb7aZGzJf1t4r9iMAw0fSUZdJXHECr8urZieIil2m+zYQy57CRPw+SZ eNBePoTc/UnQvg67oTOGF7qpIhYNVgtNCmSMMPZyloR04HMZyyXGtuiJr g==; X-CSE-ConnectionGUID: IusprvsRRU+I9XQ53zMM5Q== X-CSE-MsgGUID: thDoJvtKS8yHWhsTo52q1g== X-IronPort-AV: E=McAfee;i="6800,10657,11564"; a="78572509" X-IronPort-AV: E=Sophos;i="6.18,292,1751266800"; d="scan'208";a="78572509" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2025 08:31:33 -0700 X-CSE-ConnectionGUID: FNGNocOQQHaIivuoZ7GMQQ== X-CSE-MsgGUID: o4vhrpcgRU+NVd7QSyLGrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,292,1751266800"; d="scan'208";a="214492547" Received: from lkp-server02.sh.intel.com (HELO 84c55410ccf6) ([10.239.97.151]) by orviesa001.jf.intel.com with ESMTP; 25 Sep 2025 08:31:31 -0700 Received: from kbuild by 84c55410ccf6 with local (Exim 4.96) (envelope-from ) id 1v1nwI-0005Lf-0h; Thu, 25 Sep 2025 15:31:23 +0000 Date: Thu, 25 Sep 2025 23:30:37 +0800 From: kernel test robot To: "Mario Limonciello (AMD)" , Alex Deucher , "Rafael J . Wysocki" Cc: oe-kbuild-all@lists.linux.dev, Samuel Zhang , amd-gfx@lists.freedesktop.org, "(open list:HIBERNATION (aka Software Suspend, aka swsusp))" , "aka swsusp)), Mario Limonciello" , Ionut Nechita Subject: Re: [PATCH 2/3] PM: hibernate: Add pm_hibernation_mode_is_suspend() Message-ID: <202509252350.szp2l5YT-lkp@intel.com> References: <20250924205211.1059571-3-superm1@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250924205211.1059571-3-superm1@kernel.org> X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Hi Mario, kernel test robot noticed the following build warnings: [auto build test WARNING on amd-pstate/linux-next] [also build test WARNING on amd-pstate/bleeding-edge linus/master v6.17-rc7 next-20250924] [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/Mario-Limonciello-AMD/PM-hibernate-Fix-hybrid-sleep/20250925-045432 base: https://git.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git linux-next patch link: https://lore.kernel.org/r/20250924205211.1059571-3-superm1%40kernel.org patch subject: [PATCH 2/3] PM: hibernate: Add pm_hibernation_mode_is_suspend() config: i386-randconfig-004-20250925 (https://download.01.org/0day-ci/archive/20250925/202509252350.szp2l5YT-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250925/202509252350.szp2l5YT-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/202509252350.szp2l5YT-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/power/hibernate.c: In function 'pm_hibernation_mode_is_suspend': kernel/power/hibernate.c:88:36: error: 'HIBERNATION_SUSPEND' undeclared (first use in this function); did you mean 'HIBERNATION_SHUTDOWN'? 88 | return hibernation_mode == HIBERNATION_SUSPEND; | ^~~~~~~~~~~~~~~~~~~ | HIBERNATION_SHUTDOWN kernel/power/hibernate.c:88:36: note: each undeclared identifier is reported only once for each function it appears in kernel/power/hibernate.c: In function 'hibernate': kernel/power/hibernate.c:875:41: error: 'HIBERNATION_SUSPEND' undeclared (first use in this function); did you mean 'HIBERNATION_SHUTDOWN'? 875 | if (hibernation_mode != HIBERNATION_SUSPEND) | ^~~~~~~~~~~~~~~~~~~ | HIBERNATION_SHUTDOWN kernel/power/hibernate.c: In function 'pm_hibernation_mode_is_suspend': >> kernel/power/hibernate.c:89:1: warning: control reaches end of non-void function [-Wreturn-type] 89 | } | ^ vim +89 kernel/power/hibernate.c 82 83 /** 84 * pm_hibernation_mode_is_suspend - Check if hibernation has been set to suspend 85 */ 86 bool pm_hibernation_mode_is_suspend(void) 87 { > 88 return hibernation_mode == HIBERNATION_SUSPEND; > 89 } 90 EXPORT_SYMBOL_GPL(pm_hibernation_mode_is_suspend); 91 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki