Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp104034rdh; Mon, 18 Dec 2023 05:46:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFD8FPfinTqM+rNy5xPQbpx/F+t7dYXpRy5aG9lQ91i10mcY5JAY3FnL4YDxVgAKESALxnr X-Received: by 2002:a05:600c:3b09:b0:40b:635b:adaa with SMTP id m9-20020a05600c3b0900b0040b635badaamr5778373wms.175.1702907176179; Mon, 18 Dec 2023 05:46:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702907176; cv=none; d=google.com; s=arc-20160816; b=eYXcLarxRXx9dnPBWUfX3vTO43hOTKe+pXLy54tILbVt0Va0RUPXexykba2xZ/Uh1R Hkocny+3Zo+Iw4WJb04Y1FnrMkDftgzcKyAaVdJBPNZCeMEAXJWUsmxHRZ96fp0nn/QI fhLauIX1w+q0ZL2GpTAXXN5GaTqclYugJ9tuoBD/QGrMRl/TZwwGEt4xm5vr3ZRIKFty SwUgkGcO58lsT53IpKjHxtdxFF529KA/+1xTrOSSO8MDFrNAPsVVDh2C7IJNjhiSuEMG 2cdS2YBaNSRsqbmnA/rRn3Dd3ldIVOqwqY4pn334pP/J2pU+8MiwNPTVGIANwooo9qTk bV+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=vyHALrTFiAETbb7K9nBjPew42oJbQK96cdCNQeJQwIY=; fh=vsATmAG1aaHbnoyg2VuP5j7QSsD079SFgbW4npO9y/M=; b=u/qq/qX3x3YDYAvF7mL6/IpOgewC3yb5rB9pDBXovefIUIgsX1vOUkpw9B9TR9fpR3 Wnx0vjVe813JOO5E2jOaZVqeJruJk1BSNCLu4vBPp2XaB8GyAe+to9wzvaeTLezbOIUc qBvV+oguggws1F7hNKbVSe1wCmQ7spNzTGDsONQ8hAp+1+MJDZvkBomExV/9wdglaZsh +4aTkO3LgolXK/INv+UPTtX6W1aWcnip352t/SLrxSfOjUYe3Q+lfS4S5wPfWBUJ/OEq RAzD78gae1JxbzLCZkpN3WD7h8enWlEsJrrIhZWdMXDG6O0yJ9F9+SpiFFOal68zsK+y boQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z5-20020a1709060ac500b00a233dcaf953si1485951ejf.731.2023.12.18.05.46.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 05:46:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D95851F232C9 for ; Mon, 18 Dec 2023 13:46:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B9A51D13B; Mon, 18 Dec 2023 13:46:03 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C1F87129EF7 for ; Mon, 18 Dec 2023 13:46:02 +0000 (UTC) Received: from rdvivi-mobl4 (unknown [192.55.55.58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPSA id 8A0B9C433C8; Mon, 18 Dec 2023 13:46:00 +0000 (UTC) Date: Mon, 18 Dec 2023 08:45:58 -0500 From: Rodrigo Vivi To: Himal Prasad Ghimiray Cc: Lucas De Marchi , Rodrigo Vivi , Badal Nilawar , Akinobu Mita , Jason Gunthorpe , Jens Axboe , Qi Zheng , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] fault-inject: Include linux/types.h by default. Message-ID: References: <20230816134748.979231-1-himal.prasad.ghimiray@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230816134748.979231-1-himal.prasad.ghimiray@intel.com> On Wed, Aug 16, 2023 at 07:17:48PM +0530, Himal Prasad Ghimiray wrote: > Functions should_fail_alloc_page, should_failslab, and __should_failslab > are declared irrespective of CONFIG_FAULT_INJECTION. These functions use > bool and gfp_t types, which are treated as unknown when > CONFIG_FAULT_INJECTION is disabled because the inclusion of linux/types.h > is missing. > > Fixes: 6ff1cb355e62 ("[PATCH] fault-injection capabilities infrastructure") gentle ping on this one. we'd like to be able to include fault-inject.c without adding extra includes that should be taken care by the fault-inject.h itself. > > Cc: Lucas De Marchi > Cc: Rodrigo Vivi > Cc: Badal Nilawar > Cc: Akinobu Mita > Cc: Jason Gunthorpe > Cc: Jens Axboe > Cc: Qi Zheng > Cc: linux-kernel@vger.kernel.org Cc: Andrew Morton Cc: Kefeng Wang > Signed-off-by: Himal Prasad Ghimiray Reviewed-by: Rodrigo Vivi > --- > include/linux/fault-inject.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/linux/fault-inject.h b/include/linux/fault-inject.h > index 481abf530b3c..f83ab2b6cd08 100644 > --- a/include/linux/fault-inject.h > +++ b/include/linux/fault-inject.h > @@ -2,9 +2,10 @@ > #ifndef _LINUX_FAULT_INJECT_H > #define _LINUX_FAULT_INJECT_H > > +#include > + > #ifdef CONFIG_FAULT_INJECTION > > -#include > #include > #include > #include > -- > 2.25.1 >