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 C591FC7EE23 for ; Tue, 9 May 2023 16:57:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234621AbjEIQ5T (ORCPT ); Tue, 9 May 2023 12:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234562AbjEIQ5O (ORCPT ); Tue, 9 May 2023 12:57:14 -0400 Received: from out-60.mta1.migadu.com (out-60.mta1.migadu.com [95.215.58.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BE954C0E for ; Tue, 9 May 2023 09:57:11 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1683651429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mk2GM0+dzxVCnTybx12Btfro6vDgTHvnILBWigNj4c8=; b=gvv06Eflh4cSDF3nvay9HJM/D+7UHiIBgSqj7ssD0zLDoqIlYSxw9l1oY17SVUZrK3Vf42 LpQMzG48+j/L6sANVmqlFcGlIj8Ig7PqI9jibpFr9xJNtXIt8bjU+VZFJiOgnKqSEWGJ49 SPTS/U6/Tr/fe9ohzRHhEAZUr9KkMOU= From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org Cc: Kent Overstreet , Miguel Ojeda , Nick Desaulniers , Kent Overstreet Subject: [PATCH 01/32] Compiler Attributes: add __flatten Date: Tue, 9 May 2023 12:56:26 -0400 Message-Id: <20230509165657.1735798-2-kent.overstreet@linux.dev> In-Reply-To: <20230509165657.1735798-1-kent.overstreet@linux.dev> References: <20230509165657.1735798-1-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org From: Kent Overstreet This makes __attribute__((flatten)) available, which is used by bcachefs. Signed-off-by: Kent Overstreet Cc: Miguel Ojeda (maintainer:COMPILER ATTRIBUTES) Cc: Nick Desaulniers (reviewer:COMPILER ATTRIBUTES) Signed-off-by: Kent Overstreet --- include/linux/compiler_attributes.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h index e659cb6fde..e56793bc08 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h @@ -366,4 +366,9 @@ */ #define __fix_address noinline __noclone +/* + * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-flatten-function-attribute + */ +#define __flatten __attribute__((flatten)) + #endif /* __LINUX_COMPILER_ATTRIBUTES_H */ -- 2.40.1