Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp146632lqj; Wed, 10 Apr 2024 06:44:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWaY7iZZCQa9KFVpe+8IiKG5XEEAy7q4g6XrHqAciWeFoZl1CifpwsBcM3qorHJ6dZrg9dSjeKIqjIzKkfTj/Nkq+TEmx3ZnUPgQzJ6kQ== X-Google-Smtp-Source: AGHT+IEAaZ0ased6WytJ4wuBI8kw7KthII+Xy9ZxkDWl6R94NR5BtvC6A+R6KD/LZRthqFVyCWX4 X-Received: by 2002:a17:90a:2dcc:b0:29d:e75b:e73a with SMTP id q12-20020a17090a2dcc00b0029de75be73amr2162903pjm.49.1712756689250; Wed, 10 Apr 2024 06:44:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712756689; cv=pass; d=google.com; s=arc-20160816; b=kBVmDC/q4Iie+z/NJQUHlwwehUwq/D9EHbvN+QrEMYhHRx3gldJKf3+TAss6WuDry8 SM8mZl3qPJ65TzPINhAIq8fO4YZe78Yvav87wR4We9abDxdMZfT7Tq/t9cgUm8Vei8f/ KGD4i0zK1OIFbB/bZKoiFwIQ08y+LTIuQ7brkUTPqu/PfvQkmS8/H0vUskGV+iLZpIgp YMfXZfx95oxahy7JMJm0GwVA+huzo4MCfbLZbKm3tJMwiXLCFTW9w0l1Y6UcwrQ/ZLXW HORKn4INnpTe6jXjPS3JZdCxNAL3lxm4yjOHcVm1oA2RDSTKOMUBxENVFiaFZcRfRs+l 2psw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=KwQlq3dHMBbHFJgBvGfq0MD4JNEuGrK4SOgKVn/Q9pA=; fh=LvYN7ZL/oAos4HfLcQRUpRBYmj6FizeOHbo6IfuZHCs=; b=pI20CSUtWb1Cb1yGukvYiWZ99ZYTdlVCwtYAZJAONcw+WCfLbjgGAi9fuaGnkNx9cO lpmnxUQ4CtesvO6vuSr3MPHJgAb/2UusqiggFVGtPqNDWNAeRSroz6s4nf+JH6jBZMsg XljtH4tgDfdkmCddQihb93TG78dJz19BaUdI9UjObK8KIKPJPVshaxjDYKN5QGS5IpNX EsydJ9ed9k9X8TunU74zol9kRA7bS966GmYgw1ZXiw6wiKoeVCJIsoO/SsZ0D8/1wQ2t O3e1n5Ak36xjbEEGBKFgjZvBRzQYxzJFl3eT05R0pVmw3MjLNJ6c8qsTlkhBKDQBg1sI 6ZgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="AmoWUq/S"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-138557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a9-20020a17090a8c0900b002a539f46c08si1605080pjo.39.2024.04.10.06.44.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 06:44:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="AmoWUq/S"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-138557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2764BB28B82 for ; Wed, 10 Apr 2024 13:03:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00A4815B979; Wed, 10 Apr 2024 13:03:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AmoWUq/S" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F48815B154 for ; Wed, 10 Apr 2024 13:03:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712754207; cv=none; b=n/fCH+b6hM3Q82UYf7h2TpNYeWmREjlhyuVwSX8u+Yf1RY8uWvlfoK/FJ7sxo5tINW4scTbLUV2nuOvYLEJ5tucYSD2+aMKJx+xbvl0fHphzaLqUTFdLqo1gUYZiHvX5Dzs4OhhPh0BaSLbbpFsQ/cbvnkpK4E8zkYsaLdvpeq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712754207; c=relaxed/simple; bh=UW+YjKe/SSODcQQ6LYMimv0tZKSU2Le4NnPmmrfldhY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BJiL2ERZK1Un532JBnCxLMQM/HKnmNuDMvbHO8SlqjirWN11l+VXi7R7JmmaZf/K8RiHrKsuQ71wgem/LZGO4o6g7Vl60Wx/pZe12zhzZ3lmJUAVRc3OE/DLEUS21YkjgEohJbUqbDKvMaluNoqrzeH27u3FF8Phf5YTAhftvPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AmoWUq/S; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712754206; x=1744290206; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=UW+YjKe/SSODcQQ6LYMimv0tZKSU2Le4NnPmmrfldhY=; b=AmoWUq/SSPNbCBYlQMwek4LSjP3hiwH36G/Y7WZdSiVem9Zjgk/33h6V J70ejfZ7dX4qAHsYM9fjWAqXT37l4o41LkdUg6t2Aq6fJuIUDbdFsREfi JRfUVVrbAjT8BMnesMeH+epUSkF4q19tpmaWHQYvoN3TBh0PScHjejfW9 8T7vlug0h3u74SQlSh8EKxAH+WBqrHsdkm0t9yPGGAtcQ/mYE7YG/0PJq C2lD/76ZIR0UWiAxpBr7ruEOtA+TGKDfay/0nGyL+8vhbnlEYFU6Rf+7b p2H6vzzOooSemHzPNP0O5KAGgfF/1QHRa/gEp9MRrdCia4lgwDPWkNHML Q==; X-CSE-ConnectionGUID: /g49CbRATwqJUNgYkq7pAw== X-CSE-MsgGUID: 8fAQZ/dfQZKA2HRVlrDOFQ== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="7971107" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="7971107" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 06:03:25 -0700 X-CSE-ConnectionGUID: ZjJTaaeLSO6YKJPNdSTLRg== X-CSE-MsgGUID: QdEW8+lKTw+h72LHZ2yrmw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="20520492" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.251.214.234]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 06:03:22 -0700 Message-ID: <52cf2d1a-76ec-48cb-96c3-211fa1eb721a@intel.com> Date: Wed, 10 Apr 2024 16:03:16 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: tinyconfig: kernel/time/timekeeping.c:286:1: error: no return statement in function returning non-void [-Werror=return-type] To: Naresh Kamboju , open list , lkft-triage@lists.linaro.org, Linux Regressions Cc: Thomas Gleixner , Stephen Boyd , John Stultz , Arnd Bergmann , Dan Carpenter , Anders Roxell References: Content-Language: en-US From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/04/24 13:56, Naresh Kamboju wrote: > The powerpc,s390, superSh and sparc tinyconfig builds failed due to > following build > warnings / errors on the Linux next-20240410 with gcc-13 and gcc-11. > > List build failures: > --- > * s390, build > - gcc-13-tinyconfig - failed > - gcc-8-tinyconfig - failed > > * sh, build > - gcc-11-tinyconfig - failed > > * sparc, build > - gcc-11-tinyconfig - failed > > * mips, build > - gcc-12-tinyconfig - failed > - gcc-8-tinyconfig - failed > > * powerpc, build > - gcc-13-tinyconfig - failed > - gcc-8-tinyconfig - failed > > Reported-by: Linux Kernel Functional Testing > > Build log: > -------- > kernel/time/timekeeping.c: In function 'timekeeping_debug_get_ns': > kernel/time/timekeeping.c:286:1: error: no return statement in > function returning non-void [-Werror=return-type] > 286 | } > | ^ > cc1: some warnings being treated as errors Using unreachable() in the default BUG() seems to make this go away. diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 6e794420bd39..891bd9b0be70 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -156,7 +156,7 @@ extern __printf(1, 2) void __warn_printk(const char *fmt, ...); #else /* !CONFIG_BUG */ #ifndef HAVE_ARCH_BUG -#define BUG() do {} while (1) +#define BUG() do { do {} while (1) ; unreachable(); } while (0) #endif #ifndef HAVE_ARCH_BUG_ON > > steps to reproduce: > --- > # tuxmake --runtime podman --target-arch powerpc --toolchain gcc-13 > --kconfig tinyconfig > > Links: > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240410/testrun/23380322/suite/build/test/gcc-13-tinyconfig/details/ > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240410/testrun/23380301/suite/build/test/gcc-11-tinyconfig/history/ > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240410/testrun/23380301/suite/build/tests/ > > -- > Linaro LKFT > https://lkft.linaro.org