From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3DCA420ADF8 for ; Thu, 13 Nov 2025 08:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763023237; cv=none; b=NNXdS+ne4eeg3h49L5uWb0/9Sz501bc/azegVzvy2Qz9AaDvZhktE58p7tPAnfOxWtjDyRvqwj1BjJxA8r3g/Bc7JsKllew7iUiPQUEz2dbzf/v+JDr4cG9Q2oyQeVPe0hyk+9eTKDt2VCHXA2kjbH0lw53Uj/6APT/yAVpX76E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763023237; c=relaxed/simple; bh=60ZZn0RaxFokmxrmn9HfISJVT1aIkYNfunnuj0np1Pw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F4uTMBV0uzZ1pSno4ZyjN8a31CJJy8eAWHzZFYlT6u6ZJV0V1IeVDhRmQObhABikdYMYWRCxGp5GzjUGOBqC/v8AK6WRDm8v9b3NtIb3Z8mY5mIyPfDm9pPKyEC/RhwLT2YdJ+LoEVixme8kUbTdFRBCG2up11XAouRvptD9vUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=3H2qB260; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="3H2qB260" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=oJ3MIZLrxHKL3HXjB9g5ZhKNNJWUlT+3FdxZLvo6TYU=; b=3H2qB260bJGzdc+mmZgu7gbjP6 1tD87ZP9O2SQYeVz0R5sOPzmZUiDzhxP5hMx4R7leLOcXctMCAKcG5vKLyy9X+ppA+1/z49+ZC2KO 2KpYYgSaACQwf4BzVa7sPYVcLw9ABkTLAakb1cSccaVOrDJi6Kpf3gYH4WSokTCp3ib8fsjhaaTDC wAMU/QnGPc05g8wj/PrFiL203dpiEripAEpep5/4LLaxLnUq02mJcdQPKphySrabkUFuQ36qIVpkQ uoB7AeMpdvoml9M8Tp/iYlTBhsLy52Ipw5QoVCCT1q2StYTwG6fR6WbFgVrGOLdjF3q4Ufn5hZWAG OHBPvXbA==; Received: from 2a02-8389-2341-5b80-d601-7564-c2e0-491c.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:d601:7564:c2e0:491c] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vJSsa-0000000A7Nb-3vnA; Thu, 13 Nov 2025 08:40:33 +0000 From: Christoph Hellwig To: Vlastimil Babka , Andrew Morton Cc: Christoph Lameter , David Rientjes , Roman Gushchin , Harry Yoo , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Zi Yan , Eric Biggers , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/11] fault-inject: make enum fault_flags available unconditionally Date: Thu, 13 Nov 2025 09:39:42 +0100 Message-ID: <20251113084022.1255121-2-hch@lst.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251113084022.1255121-1-hch@lst.de> References: <20251113084022.1255121-1-hch@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html This will allow using should_fail_ex from code without having to make it conditional on CONFIG_FAULT_INJECTION. Signed-off-by: Christoph Hellwig --- include/linux/fault-inject.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/fault-inject.h b/include/linux/fault-inject.h index 8c829d28dcf3..58fd14c82270 100644 --- a/include/linux/fault-inject.h +++ b/include/linux/fault-inject.h @@ -8,6 +8,10 @@ struct dentry; struct kmem_cache; +enum fault_flags { + FAULT_NOWARN = 1 << 0, +}; + #ifdef CONFIG_FAULT_INJECTION #include @@ -36,10 +40,6 @@ struct fault_attr { struct dentry *dname; }; -enum fault_flags { - FAULT_NOWARN = 1 << 0, -}; - #define FAULT_ATTR_INITIALIZER { \ .interval = 1, \ .times = ATOMIC_INIT(1), \ -- 2.47.3