Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1424774rwr; Thu, 20 Apr 2023 15:05:03 -0700 (PDT) X-Google-Smtp-Source: AKy350bdqRFpvB08SCUL8Clr4Pvtz3w7VgobCnxJxPubZyKR+Mg/lBDJzisv7USe4A6p8+zcNzPG X-Received: by 2002:a17:903:294c:b0:1a1:e01e:7279 with SMTP id li12-20020a170903294c00b001a1e01e7279mr2551093plb.4.1682028303049; Thu, 20 Apr 2023 15:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682028303; cv=none; d=google.com; s=arc-20160816; b=Fw2JrmxapmI4xyBMi9A988EYqxpfXJEPWtSOG74VDblsRmHWR0xGCmUg4FZ2/Swmvw l6fobF+6d80C4mWClhyG/495pD5/IEf/+YdO2YrhG0qUivWAXiZbjOxgPw1m1cdA971D 7T4kuvz19owvuXKBOTk7+rZBeR2KxV95WGbW7afAevjzrzWV2k8IHr2xf2mu7oZn1Sh9 myP7EzGl8b4X0HWfTlgrMs7zGbt8HVCigjycRfpNLSMfJNylt0wCaOZIB9cjZQlgRkSe 38exv0dnUj7jwqyBbXrTKcbgAEIaByrKd/EcMlod/OyYWuy4SpqlmzO/Wqnr7wqD19Cl 18jQ== 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=N2j33+8HO5+uzDoSvsY3KkXM9PejbUEPdKriWdbVGHI=; b=TQKZYtrQLzDFcJ2cmpdKx6IBickeC7Qf0XVGkF6RjErdHMSi85MonEcEqWNFWNmuFb Hsb68kntoiE/PQ5dw8RrdQjaDXztIfaopXu5WEQ4SngakevfEGU5YfcsOld9pVmZWLg5 MAG+lBcKbDBrTLDika2cg8QjZyi3Inz1rc4AOeTf/Q4U6kzbGZ0nf2ZECZGozWALXuWt r+bQrYbS4o8OxZx/JqGombCdDzj8wNxy+t16bft9Pqxe/QQlBmJ9Oy3Jof4uGw5r9KK7 ou7Qk188Fr45it/UUQeWEeSli44eK8o9fGbV/DoB7vbLJ2FjXTI/CUxPclXsqxVU3jPC IR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZeeC2let; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc11-20020a17090b1c0b00b0023a147a7892si3178947pjb.64.2023.04.20.15.04.49; Thu, 20 Apr 2023 15:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZeeC2let; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232777AbjDTVz3 (ORCPT + 99 others); Thu, 20 Apr 2023 17:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231464AbjDTVz0 (ORCPT ); Thu, 20 Apr 2023 17:55:26 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 407FC6A58 for ; Thu, 20 Apr 2023 14:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682027704; x=1713563704; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=t3czZOqFysE70gZ1FG7p9KYiKP26cjyeQp3Qt2Ds+PE=; b=ZeeC2letk7+BETmEKNlpxeGnwL2kD7ck9ZKW//9x9QXMPKbFdnJu0GpB /YRmuRoe0EHdqYyGwzri1kU73q2Iilc/axzL7mB976K8e1L/lN5ZR+ZWr LPomrmvI6znoy8t/PSgrxaC/JZkc4yKa80wI6+itScwM8G8+ITWv8YRj/ Jmc3PWKEPAG6njBQjMbBzQGzqIFVoHzpGIoxrvnbRaD3xzNJUL0uZ2X/v u9c/UfTkG/izHFgqoyRCwr/o8z35GzbW9wGc3SxAwxs6hzrTG9WAaDuag +QNWza41qPjMOJ4bHXHhUVyMjiciw9tA5X6zv4svhtGUzavfiAz9L0f3N A==; X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="408793412" X-IronPort-AV: E=Sophos;i="5.99,213,1677571200"; d="scan'208";a="408793412" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2023 14:55:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="692068702" X-IronPort-AV: E=Sophos;i="5.99,213,1677571200"; d="scan'208";a="692068702" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 20 Apr 2023 14:55:00 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1ppcEx-000g8E-0u; Thu, 20 Apr 2023 21:54:55 +0000 Date: Fri, 21 Apr 2023 05:54:29 +0800 From: kernel test robot To: Chris Down , linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Petr Mladek , Greg Kroah-Hartman , Sergey Senozhatsky , Steven Rostedt , John Ogness , Geert Uytterhoeven , kernel-team@fb.com Subject: Re: [PATCH v4 1/2] printk: Do not delay messages which aren't solicited by any console Message-ID: <202304210550.jdh8v273-lkp@intel.com> References: <43d7f8d6e4b45a1a76fceef2d117bbc3954bc0bf.1681994221.git.chris@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43d7f8d6e4b45a1a76fceef2d117bbc3954bc0bf.1681994221.git.chris@chrisdown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chris, kernel test robot noticed the following build errors: [auto build test ERROR on cb0856346a60fe3eb837ba5e73588a41f81ac05f] url: https://github.com/intel-lab-lkp/linux/commits/Chris-Down/printk-Do-not-delay-messages-which-aren-t-solicited-by-any-console/20230420-204202 base: cb0856346a60fe3eb837ba5e73588a41f81ac05f patch link: https://lore.kernel.org/r/43d7f8d6e4b45a1a76fceef2d117bbc3954bc0bf.1681994221.git.chris%40chrisdown.name patch subject: [PATCH v4 1/2] printk: Do not delay messages which aren't solicited by any console config: arc-randconfig-r043-20230416 (https://download.01.org/0day-ci/archive/20230421/202304210550.jdh8v273-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/db9fb81bc5f175ef48cb317c24da85d0f6d4391d git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Chris-Down/printk-Do-not-delay-messages-which-aren-t-solicited-by-any-console/20230420-204202 git checkout db9fb81bc5f175ef48cb317c24da85d0f6d4391d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash fs// kernel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304210550.jdh8v273-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/printk/printk.c: In function 'boot_delay_msec': >> kernel/printk/printk.c:1297:64: error: expected ')' before 'return' 1297 | if ((boot_delay == 0 || system_state >= SYSTEM_RUNNING) | ~ ^ | ) 1298 | return; | ~~~~~~ >> kernel/printk/printk.c:1315:1: error: expected expression before '}' token 1315 | } | ^ kernel/printk/printk.c:1295:23: warning: unused variable 'timeout' [-Wunused-variable] 1295 | unsigned long timeout; | ^~~~~~~ kernel/printk/printk.c:1294:28: warning: unused variable 'k' [-Wunused-variable] 1294 | unsigned long long k; | ^ vim +1297 kernel/printk/printk.c bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1291 db9fb81bc5f175 kernel/printk/printk.c Chris Down 2023-04-20 1292 static void boot_delay_msec(void) bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1293 { bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1294 unsigned long long k; bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1295 unsigned long timeout; bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1296 ff48cd26fc4889 kernel/printk/printk.c Thomas Gleixner 2017-05-16 @1297 if ((boot_delay == 0 || system_state >= SYSTEM_RUNNING) bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1298 return; bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1299 3a3b6ed2235f2f kernel/printk.c Dave Young 2009-09-22 1300 k = (unsigned long long)loops_per_msec * boot_delay; bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1301 bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1302 timeout = jiffies + msecs_to_jiffies(boot_delay); bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1303 while (k) { bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1304 k--; bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1305 cpu_relax(); bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1306 /* bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1307 * use (volatile) jiffies to prevent bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1308 * compiler reduction; loop termination via jiffies bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1309 * is secondary and may or may not happen. bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1310 */ bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1311 if (time_after(jiffies, timeout)) bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1312 break; bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1313 touch_nmi_watchdog(); bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1314 } bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 @1315 } bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1316 #else db9fb81bc5f175 kernel/printk/printk.c Chris Down 2023-04-20 1317 static inline void boot_delay_msec(void) bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1318 { bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1319 } bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1320 #endif bfe8df3d314bdd kernel/printk.c Randy Dunlap 2007-10-16 1321 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests