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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB397C3ABC9 for ; Fri, 16 May 2025 16:06:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8064010EB1B; Fri, 16 May 2025 16:06:43 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="kS5/oVpJ"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4172910EB1B for ; Fri, 16 May 2025 16:06:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1747411602; x=1778947602; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lCtZvQAv2uMtkjARD2U6nFwLmPac17dYnQZojBjeyQk=; b=kS5/oVpJhRsp4hXTdXA8WonpH3GTfCx8ehqfyMIlKnP2yn7A9xiJVZGi eMDDu1wXkN1aB17P5uPSnwGxZGckE7alYHvjLaTPY4Ov2iAL0Nbv/WlzB d3cUZkl86eGnnc0cepFmBd8W35IALVOWxl2uw3bD2LnCsRCXK/f+O0NVQ pX5kcYGD+vatn9JO+AbzdEHcG1xJsCzN0S5lencDj8QAD9EcrMqNokb/P Td3rMcc6WMNQPcLsQ8jR+HVzMtgG1Oktpmf69Swy6eBPy78rGjEPlof7y JPMLTy5/p2iVpJJaAtthp9XgPRPPmQuyuyUc7Lppcr/pPgPDGS9vZd3U3 A==; X-CSE-ConnectionGUID: wkW4pWU2Q32FUPzYnfryBQ== X-CSE-MsgGUID: sElenu1/Qt6wPvWDYBPRQg== X-IronPort-AV: E=McAfee;i="6700,10204,11435"; a="66941162" X-IronPort-AV: E=Sophos;i="6.15,294,1739865600"; d="scan'208";a="66941162" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2025 09:06:42 -0700 X-CSE-ConnectionGUID: Tthsgx73RNCmfggFToX5Ng== X-CSE-MsgGUID: wSKnr4k5RGCBNI3ZcHGf+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,294,1739865600"; d="scan'208";a="169772603" Received: from unknown (HELO d368ed45d7ae.iind.intel.com) ([10.66.234.123]) by fmviesa001.fm.intel.com with ESMTP; 16 May 2025 09:06:39 -0700 From: Jeevaka Prabu Badrappan To: igt-dev@lists.freedesktop.org Cc: zbigniew.kempczynski@intel.com, kamil.konieczny@intel.com, markyacoub@google.com, seanpaul@google.com, carlos.santa@intel.com, sapna1.singh@intel.com, Jeevaka Prabu Badrappan , Kamil Konieczny Subject: [PATCH i-g-t v6 10/14] lib/igt_core: Conditionally define __noreturn for non-Android platforms Date: Fri, 16 May 2025 16:05:47 +0000 Message-ID: <20250516160551.58760-11-jeevaka.badrappan@intel.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250516160551.58760-1-jeevaka.badrappan@intel.com> References: <20250516160551.58760-1-jeevaka.badrappan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Ensure __noreturn is defined only if it is not already defined, addressing compatibility with Android where __noreturn is predefined. Signed-off-by: Jeevaka Prabu Badrappan Acked-by: Zbigniew KempczyƄski Reviewed-by: Kamil Konieczny --- lib/igt_core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index 45170e215..2db579423 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -86,7 +86,9 @@ #define igt_assume(e) BUILD_BUG_ON_INVALID(e) #endif +#ifndef __noreturn #define __noreturn __attribute__((noreturn)) +#endif #define __maybe_unused __attribute__((unused)) extern const char* __igt_test_description __attribute__((weak)); -- 2.49.0