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 82975C46CA1 for ; Sun, 15 Oct 2023 10:06:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229596AbjJOKGW (ORCPT ); Sun, 15 Oct 2023 06:06:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbjJOKGV (ORCPT ); Sun, 15 Oct 2023 06:06:21 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F41B0F3; Sun, 15 Oct 2023 03:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697364379; x=1728900379; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7UOJ3TZyf1lJoRWCpFGUSBPXBrcL5yCoPC+XN8DoJBw=; b=UgXldoKm0dAyi2APl2VGUV7glm6DPx4VlVnFBhv89/YbL+N55xsYDL+x fGsePY8bbHndYo+HtCl/ycrcv6Sdb0PJxGGSt/RwFxjlAH2k3Y6WxBVNW NRlqRasUfpD7iCimLT3B0bROXG3Lm29WWq4kg+eEnTPfzhgxVMObVmaQU wR1xOrL73VlgL5+MLVW/BGtinibm+sOvucsbmuWgH3OPCnfCT/BpoMuYA YG7HULMaJPlYAghsF9ekZPsMi1ILTsqg3M/ht+0EstrJiwMYqSsvWcRnE 4nRE8+FzoHM1fDJtE/vnW823fUvaWUpHeHqwWFLGaHGWTlBxsASWA6AOp Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="449571888" X-IronPort-AV: E=Sophos;i="6.03,226,1694761200"; d="scan'208";a="449571888" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2023 03:06:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="821228975" X-IronPort-AV: E=Sophos;i="6.03,226,1694761200"; d="scan'208";a="821228975" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 15 Oct 2023 03:06:13 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qry0h-0007J1-0x; Sun, 15 Oct 2023 10:06:11 +0000 Date: Sun, 15 Oct 2023 18:05:54 +0800 From: kernel test robot To: Shyam Sundar S K , hdegoede@redhat.com, markgross@kernel.org, ilpo.jarvinen@linux.intel.com, basavaraj.natikar@amd.com, jikos@kernel.org, benjamin.tissoires@redhat.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: oe-kbuild-all@lists.linux.dev, Shyam Sundar S K , amd-gfx@lists.freedesktop.org, platform-driver-x86@vger.kernel.org, dri-devel@lists.freedesktop.org, Patil.Reddy@amd.com, linux-input@vger.kernel.org, mario.limonciello@amd.com Subject: Re: [PATCH v3 09/16] platform/x86/amd/pmf: Add facility to dump TA inputs Message-ID: <202310151704.ofb4HSxK-lkp@intel.com> References: <20231010125917.138225-10-Shyam-sundar.S-k@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231010125917.138225-10-Shyam-sundar.S-k@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Hi Shyam, kernel test robot noticed the following build errors: [auto build test ERROR on hid/for-next] [also build test ERROR on drm-misc/drm-misc-next linus/master v6.6-rc5 next-20231013] [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/Shyam-Sundar-S-K/platform-x86-amd-pmf-Add-PMF-TEE-interface/20231010-210347 base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next patch link: https://lore.kernel.org/r/20231010125917.138225-10-Shyam-sundar.S-k%40amd.com patch subject: [PATCH v3 09/16] platform/x86/amd/pmf: Add facility to dump TA inputs config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231015/202310151704.ofb4HSxK-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231015/202310151704.ofb4HSxK-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/202310151704.ofb4HSxK-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/printk.h:564, from include/linux/kernel.h:30, from arch/x86/include/asm/percpu.h:27, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/slab.h:16, from include/linux/resource_ext.h:11, from include/linux/acpi.h:13, from drivers/platform/x86/amd/pmf/pmf.h:14, from drivers/platform/x86/amd/pmf/sps.c:11: drivers/platform/x86/amd/pmf/sps.c: In function 'amd_pmf_dump_sps_defaults': >> drivers/platform/x86/amd/pmf/sps.c:50:65: error: implicit declaration of function 'source_as_str' [-Werror=implicit-function-declaration] 50 | pr_debug("--- Source:%s Mode:%s ---\n", source_as_str(i), slider_as_str(j)); | ^~~~~~~~~~~~~ include/linux/dynamic_debug.h:224:29: note: in definition of macro '__dynamic_func_call_cls' 224 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls' 250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:269:9: note: in expansion of macro '_dynamic_func_call' 269 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:579:9: note: in expansion of macro 'dynamic_pr_debug' 579 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/platform/x86/amd/pmf/sps.c:50:25: note: in expansion of macro 'pr_debug' 50 | pr_debug("--- Source:%s Mode:%s ---\n", source_as_str(i), slider_as_str(j)); | ^~~~~~~~ drivers/platform/x86/amd/pmf/sps.c:50:34: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 50 | pr_debug("--- Source:%s Mode:%s ---\n", source_as_str(i), slider_as_str(j)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:345:21: note: in definition of macro 'pr_fmt' 345 | #define pr_fmt(fmt) fmt | ^~~ include/linux/dynamic_debug.h:248:9: note: in expansion of macro '__dynamic_func_call_cls' 248 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls' 250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:269:9: note: in expansion of macro '_dynamic_func_call' 269 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:579:9: note: in expansion of macro 'dynamic_pr_debug' 579 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/platform/x86/amd/pmf/sps.c:50:25: note: in expansion of macro 'pr_debug' 50 | pr_debug("--- Source:%s Mode:%s ---\n", source_as_str(i), slider_as_str(j)); | ^~~~~~~~ drivers/platform/x86/amd/pmf/sps.c:50:47: note: format string is defined here 50 | pr_debug("--- Source:%s Mode:%s ---\n", source_as_str(i), slider_as_str(j)); | ~^ | | | char * | %d cc1: some warnings being treated as errors vim +/source_as_str +50 drivers/platform/x86/amd/pmf/sps.c a82ebb3d800d7b Shyam Sundar S K 2023-05-10 41 a82ebb3d800d7b Shyam Sundar S K 2023-05-10 42 static void amd_pmf_dump_sps_defaults(struct amd_pmf_static_slider_granular *data) a82ebb3d800d7b Shyam Sundar S K 2023-05-10 43 { a82ebb3d800d7b Shyam Sundar S K 2023-05-10 44 int i, j; a82ebb3d800d7b Shyam Sundar S K 2023-05-10 45 a82ebb3d800d7b Shyam Sundar S K 2023-05-10 46 pr_debug("Static Slider Data - BEGIN\n"); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 47 a82ebb3d800d7b Shyam Sundar S K 2023-05-10 48 for (i = 0; i < POWER_SOURCE_MAX; i++) { a82ebb3d800d7b Shyam Sundar S K 2023-05-10 49 for (j = 0; j < POWER_MODE_MAX; j++) { a82ebb3d800d7b Shyam Sundar S K 2023-05-10 @50 pr_debug("--- Source:%s Mode:%s ---\n", source_as_str(i), slider_as_str(j)); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 51 pr_debug("SPL: %u mW\n", data->prop[i][j].spl); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 52 pr_debug("SPPT: %u mW\n", data->prop[i][j].sppt); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 53 pr_debug("SPPT_ApuOnly: %u mW\n", data->prop[i][j].sppt_apu_only); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 54 pr_debug("FPPT: %u mW\n", data->prop[i][j].fppt); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 55 pr_debug("STTMinLimit: %u mW\n", data->prop[i][j].stt_min); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 56 pr_debug("STT_SkinTempLimit_APU: %u C\n", a82ebb3d800d7b Shyam Sundar S K 2023-05-10 57 data->prop[i][j].stt_skin_temp[STT_TEMP_APU]); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 58 pr_debug("STT_SkinTempLimit_HS2: %u C\n", a82ebb3d800d7b Shyam Sundar S K 2023-05-10 59 data->prop[i][j].stt_skin_temp[STT_TEMP_HS2]); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 60 } a82ebb3d800d7b Shyam Sundar S K 2023-05-10 61 } a82ebb3d800d7b Shyam Sundar S K 2023-05-10 62 a82ebb3d800d7b Shyam Sundar S K 2023-05-10 63 pr_debug("Static Slider Data - END\n"); a82ebb3d800d7b Shyam Sundar S K 2023-05-10 64 } a82ebb3d800d7b Shyam Sundar S K 2023-05-10 65 #else a82ebb3d800d7b Shyam Sundar S K 2023-05-10 66 static void amd_pmf_dump_sps_defaults(struct amd_pmf_static_slider_granular *data) {} a82ebb3d800d7b Shyam Sundar S K 2023-05-10 67 #endif a82ebb3d800d7b Shyam Sundar S K 2023-05-10 68 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki