Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1268403rdb; Wed, 20 Sep 2023 04:48:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkLCvhbjBm/WrNfbGfcoTnIT+XjJPqVIO0DCVz+owhq8NR7pyDqdhGHW+BkejVlh2xWPXY X-Received: by 2002:a05:6a00:23d3:b0:68c:2be:67bb with SMTP id g19-20020a056a0023d300b0068c02be67bbmr2788860pfc.20.1695210484231; Wed, 20 Sep 2023 04:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695210484; cv=none; d=google.com; s=arc-20160816; b=ZrToc3f2Kp76/nB3jdJLmf1YPcYaX7wXpvzGvvPVPdN4bYqBKO522fqXew1scVH8EP QqVW0iBw1jcfECuFGCe6I2KC16L3skmlb7h/jVro7lurRIp+EHCWOWaZ6i8CF199T42K vwLksbiX7sAg6tROHlJAgtzuG+cjXA+3F2MMZcYZaiFEI8CON2XwcLGyxPIKa2sjrYcU Gw5i1gwP7rUnROcZkOg0IoAbE3ZQHvoWdz0+mlldcOBBDz9qW3RQkILkLqWn1JwsvAiA IwjmQIJMkErYFUoyER0UBOsCBgkxqMK/PfXekNJ0IA89E4G+YqN8eNVMf5pwYXjEx8IA TpsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OOLZ7OlOu3n3KKQaWZRGDQKbKo4NJZVvbMzka5h7QFs=; fh=yC2kb6eSwhkcdwARAYsuCLqojDPLt1EOfSn/4g7gwcM=; b=kZF6TcwArix2VPC1Q9T9ZWW6VXe4CLudB71vmCIC+bT9tz77VJ0y7UQCawmWmO4DC9 //5+tl1bdvEVHG6A2mdkAC9XibVFyCt+/+0Ff4A1lqT6rz3wSd9usrrtKMwiev0udy7S LV6U98m0XSNP1/qKpBMdIKWzVRL/rWep1/Wzl1YcuZtLJYzpzC7wW0wsncycaPJYRIvA /CHcVsErliW2vMA5CZnnemWqUXnQZZ16jQ6rQ666gFSs7/e++WcyuDsspsOUi5WNtzxc IGCpATgExTLKRKMuzIYeG0UcL5mo64YD/0w2BxSzTrqZrrpfcHgAltKzxJyPdGdvXTGF nTmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oADKTr2D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g67-20020a636b46000000b00578c64433d5si2395904pgc.877.2023.09.20.04.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:48:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oADKTr2D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8397F80D8FDD; Tue, 19 Sep 2023 22:18:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232269AbjITFSW (ORCPT + 99 others); Wed, 20 Sep 2023 01:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjITFSP (ORCPT ); Wed, 20 Sep 2023 01:18:15 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5F5AAB; Tue, 19 Sep 2023 22:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695187089; x=1726723089; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vgocaKsbmdpjMaJx3xBQwNzNeJ/8n5uXEO7B6NpSHU4=; b=oADKTr2DFtzWBehzbU1b0dT+mrZZy3zWDyc9MBFFQirNhbUlVSKHkGKu S7jYZv6nbBrWsdQZcMkhMSyeSOf2/icYFuy+2N9BS++jZbjfeGoIoFbR0 p2WHMIAeGCPfCa5eKNwz4LF+LFgHHkBIvrS4Bbazg/JA80+pEO7addN0t VNYMIWYZSZTFG/UKvE5zWKajG66DFGkxVpDy7Dd8g5nBv9xrElaGhN86e X6FeMU2bT1xO5RVAWPu+UR0PMBxX+ixeWL0748wjHfwVESREDyaTy/9t/ KSWm768hyYpIBSsq1rFqbF23cVssppfiF8ErtSOhpTmfQtC7zt9K8NnH5 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="383972294" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="383972294" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 22:18:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="775838770" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="775838770" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 19 Sep 2023 22:18:06 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qipb9-0008Km-36; Wed, 20 Sep 2023 05:18:03 +0000 Date: Wed, 20 Sep 2023 13:17:11 +0800 From: kernel test robot To: Mirsad Goran Todorovac , linux-acpi@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Robert Moore , "Rafael J. Wysocki" , Len Brown , Jung-uk Kim , Erik Kaneda Subject: Re: [PATCH v1 1/1] acpica: use spinlocks to fix the data-races reported by the KCSAN Message-ID: <202309201331.S2c1JL2h-lkp@intel.com> References: <20230920000139.15533-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230920000139.15533-1-mirsad.todorovac@alu.unizg.hr> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:18:33 -0700 (PDT) Hi Mirsad, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.6-rc2 next-20230920] [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/Mirsad-Goran-Todorovac/acpica-use-spinlocks-to-fix-the-data-races-reported-by-the-KCSAN/20230920-080345 base: linus/master patch link: https://lore.kernel.org/r/20230920000139.15533-1-mirsad.todorovac%40alu.unizg.hr patch subject: [PATCH v1 1/1] acpica: use spinlocks to fix the data-races reported by the KCSAN config: i386-randconfig-003-20230920 (https://download.01.org/0day-ci/archive/20230920/202309201331.S2c1JL2h-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/20230920/202309201331.S2c1JL2h-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/202309201331.S2c1JL2h-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/acpi/acpica/utdebug.c: In function 'acpi_debug_print': >> drivers/acpi/acpica/utdebug.c:145:13: warning: unused variable 'nesting_level' [-Wunused-variable] 145 | u32 nesting_level; | ^~~~~~~~~~~~~ vim +/nesting_level +145 drivers/acpi/acpica/utdebug.c 113 114 /******************************************************************************* 115 * 116 * FUNCTION: acpi_debug_print 117 * 118 * PARAMETERS: requested_debug_level - Requested debug print level 119 * line_number - Caller's line number (for error output) 120 * function_name - Caller's procedure name 121 * module_name - Caller's module name 122 * component_id - Caller's component ID 123 * format - Printf format field 124 * ... - Optional printf arguments 125 * 126 * RETURN: None 127 * 128 * DESCRIPTION: Print error message with prefix consisting of the module name, 129 * line number, and component ID. 130 * 131 ******************************************************************************/ 132 133 void ACPI_INTERNAL_VAR_XFACE 134 acpi_debug_print(u32 requested_debug_level, 135 u32 line_number, 136 const char *function_name, 137 const char *module_name, 138 u32 component_id, const char *format, ...) 139 { 140 acpi_thread_id thread_id; 141 va_list args; 142 #ifdef ACPI_APPLICATION 143 int fill_count; 144 #endif > 145 u32 nesting_level; 146 147 /* Check if debug output enabled */ 148 149 if (!ACPI_IS_DEBUG_ENABLED(requested_debug_level, component_id)) { 150 return; 151 } 152 153 /* 154 * Thread tracking and context switch notification 155 */ 156 thread_id = acpi_os_get_thread_id(); 157 if (thread_id != acpi_gbl_previous_thread_id) { 158 if (ACPI_LV_THREADS & acpi_dbg_level) { 159 acpi_os_printf 160 ("\n**** Context Switch from TID %u to TID %u ****\n\n", 161 (u32)acpi_gbl_previous_thread_id, (u32)thread_id); 162 } 163 164 acpi_gbl_previous_thread_id = thread_id; 165 WRITE_ONCE(acpi_gbl_nesting_level, 0); 166 } 167 168 /* 169 * Display the module name, current line number, thread ID (if requested), 170 * current procedure nesting level, and the current procedure name 171 */ 172 acpi_os_printf("%9s-%04d ", module_name, line_number); 173 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki