Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6098687rwr; Tue, 9 May 2023 10:09:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6G33ZXRzuUtZIJMV6HdQ/gsdk0pBlPTj2IIuktbTYrMl2EJK+PlriVwRleL/t1nwOZO7Bd X-Received: by 2002:a17:902:ce81:b0:1aa:efad:f2d4 with SMTP id f1-20020a170902ce8100b001aaefadf2d4mr19285435plg.63.1683652179267; Tue, 09 May 2023 10:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683652179; cv=none; d=google.com; s=arc-20160816; b=PW2RZsgO7JsagTGlj/85fTz5o786lTpzGvrB7QN/PTjKrcKQXvoWNKmQGaUJDg/yMn bTaoAQW421cJjf9EAx/Y8u6beKFtp0kdg6qOEZ1F5cAHRlWv7q4Tnd4ZG93NUQiRpdYH x8Ie3L7O9628iJNqTcoMwdtfGc0fAhM+R3ofI36b4s/OmxN4yTzlyOEuHCDUurdwaQqT LejpYKyJbuNSmWS1ci659UVUfknQUH/+8DbQU4EtSUszLW6EMh7aVSfZHC+IxI9xLDvu GAzPf0uifpmvi+X7ky+qnNSLuzBjkK0XAbZqIPUfHM72DdmsKmZoGtP66zC5eJjGm2Fa 2vmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mk2GM0+dzxVCnTybx12Btfro6vDgTHvnILBWigNj4c8=; b=udC2uAkXgK5YPUz1sLLI+8ZIUFlJnNir9l3yv+8jMSDrhFb0W2himqxZqrEP9aIeAQ hN2lIR+j9ODVFnsVdK/i9xxoXVJkbdePC5QdHb8xoekOXeCjq4mgxtnm9GAeDfpVFYyY L4lZ7s8L0EBZ8+YENVrcTsMm4tFI3clWNgKUZ+kfjrs+NmWCFFplc8dP03oohiQudQjt bJ2eTwpPOls+9Bm6pPIedrCdASw7mh9OA9KWooZtovDtmrVsj0HBa1r8SHr76dRODK6m f+LBIAxsPn7Q+6VMXeBm5+BjY+G9dR+SDQinHxlfxOVYUEeu07V9pOdDnMDx39zYlwqT X+Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=gvv06Efl; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170903028400b001aaff9c8dd1si1841066plr.427.2023.05.09.10.09.22; Tue, 09 May 2023 10:09:39 -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=@linux.dev header.s=key1 header.b=gvv06Efl; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234788AbjEIQ5U (ORCPT + 99 others); Tue, 9 May 2023 12:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjEIQ5O (ORCPT ); Tue, 9 May 2023 12:57:14 -0400 Received: from out-4.mta1.migadu.com (out-4.mta1.migadu.com [95.215.58.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 765A149EB 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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