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 B3167C83F2D for ; Sun, 3 Sep 2023 16:34:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245150AbjICQeH (ORCPT ); Sun, 3 Sep 2023 12:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237525AbjICQeF (ORCPT ); Sun, 3 Sep 2023 12:34:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AD70106 for ; Sun, 3 Sep 2023 09:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693758843; x=1725294843; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=t75gZj8/JojuJqXjbSk+tbgRYT/4F+UKHQ9sLub0LzY=; b=hLdBlGhLe3A40W6TBTyQyxZyzSdodpD1dXka7CkkjGEgmCUc3x1Fkw0d KALldamiXLAFF/Uc7Y2IWz/X2jw93bDFW9FK7VvWxGMMALzzABXQm85IN JKbO72ohvf5r5gu/0jCz5wHiDQIFwhXDLQNm+9gkXHxQuo9IGAiSk/WPV W6WNOrocuLg8JQ/fDaxpR3qX9Ow+g3m1y3Fv7wdqjW0GlazfiBBQ9nFiU HBKX3vcaOClIbwlACp4QUU7F1KLYSMfc5soXmAR8GxiRwDLXY6KYdMvh/ Ka0BVFSiRNMiXbh2GlVe19uFKrElvEu/M/ebkitde68YjWEQZg2OsNY8F A==; X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="380251774" X-IronPort-AV: E=Sophos;i="6.02,225,1688454000"; d="scan'208";a="380251774" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2023 09:34:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="1071323476" X-IronPort-AV: E=Sophos;i="6.02,225,1688454000"; d="scan'208";a="1071323476" Received: from lkp-server01.sh.intel.com (HELO 5d8055a4f6aa) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 03 Sep 2023 09:33:59 -0700 Received: from kbuild by 5d8055a4f6aa with local (Exim 4.96) (envelope-from ) id 1qcq2v-0003Hj-0y; Sun, 03 Sep 2023 16:33:57 +0000 Date: Mon, 4 Sep 2023 00:32:59 +0800 From: kernel test robot To: John Ogness , Petr Mladek Cc: oe-kbuild-all@lists.linux.dev, Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH printk v3 2/7] printk: nbcon: Add acquire/release logic Message-ID: <202309040038.Cn1kd5bN-lkp@intel.com> References: <20230903150539.245076-3-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230903150539.245076-3-john.ogness@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, kernel test robot noticed the following build warnings: [auto build test WARNING on cb65d08d735e00cc55ad7700a82a453bb88c93a3] url: https://github.com/intel-lab-lkp/linux/commits/John-Ogness/printk-Add-non-BKL-nbcon-console-basic-infrastructure/20230903-230708 base: cb65d08d735e00cc55ad7700a82a453bb88c93a3 patch link: https://lore.kernel.org/r/20230903150539.245076-3-john.ogness%40linutronix.de patch subject: [PATCH printk v3 2/7] printk: nbcon: Add acquire/release logic config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20230904/202309040038.Cn1kd5bN-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230904/202309040038.Cn1kd5bN-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/202309040038.Cn1kd5bN-lkp@intel.com/ All warnings (new ones prefixed by >>): >> kernel/printk/nbcon.c:392: warning: expecting prototype for nbcon_context_try_acquire_hostile(). Prototype was for nbcon_context_acquire_hostile() instead vim +392 kernel/printk/nbcon.c 379 380 /** 381 * nbcon_context_try_acquire_hostile - Acquire via unsafe hostile takeover 382 * @ctxt: The context of the caller 383 * @cur: The current console state 384 * 385 * @cur is updated to the new console state. 386 * 387 * The general procedure is to set @prio (forcing ownership). This method 388 * must only be used as a final attempt during panic. 389 */ 390 static void nbcon_context_acquire_hostile(struct nbcon_context *ctxt, 391 struct nbcon_state *cur) > 392 { 393 unsigned int cpu = smp_processor_id(); 394 struct console *con = ctxt->console; 395 struct nbcon_state new; 396 397 do { 398 new.atom = cur->atom; 399 new.cpu = cpu; 400 new.prio = ctxt->prio; 401 new.unsafe |= cur->unsafe_takeover; 402 new.unsafe_takeover |= cur->unsafe; 403 404 } while (!nbcon_state_try_cmpxchg(con, cur, &new)); 405 406 cur->atom = new.atom; 407 } 408 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki