Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1487377rdb; Wed, 16 Aug 2023 12:58:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERj1jqN68JNg/VZCm0wKHejELjj2PolLXQzJB6dtKRdoiElZQwK1tq2ER0K0E8v3LxqR0a X-Received: by 2002:a17:903:451:b0:1b7:f546:44d7 with SMTP id iw17-20020a170903045100b001b7f54644d7mr2276868plb.17.1692215906918; Wed, 16 Aug 2023 12:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692215906; cv=none; d=google.com; s=arc-20160816; b=NZsuoTABET7XFkwNZdkcPmRp6a7v130dNImhwLDSn6MjfcH8v89DySbSfKQMBZXYT0 e/GM0RfguNto3dEx6ZjKIxMCPNw7+W/8S22+DefYYBUqn3StimRwMht2WaRD28ABbz9U bqGZBeFNJgxLKc7JGYXt+vH2f2aKzyNXOlw0vjggpvE2A9XZ7Rijny0bwiMQjP28ZNRN HxIQqaLeOLuhG2PanvI8lWJWJAfjZorjAgnNeYNVILgOcot3mmR5CcZdvZe9ipHpnlZD mN9ZC4WJjwtU+7MRqLjShe1xTdscZn5jhbbgZzuTKUTc0+BJh+yYBzH4Dik4kLZOpmjx ac2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=aXvMsdVW1VYVl4/UVWJto2hJTHkaaE7819fVRGYsLRo=; fh=Cu0fRWRbz8mICk5m17K1cmGjgU9xXw7BUezuQhY3KlY=; b=q3nrOO7Cut7AjJkbc7WmBXSKBon5CiqJokrj39ugM3B0n8ZE6iv8qGaq1AB9YpeY0Q 96Hz3hEBfEd04DTiIjhwwPEVcE9ccLXWnpJg2mUMEJ3BWlTUvrmDkELO9huwMcOMSuPe yvxg2tVY6g3cmf9if1AK6Yi4YLWB6vHiL1EFoUzMSidYMf9ZbowCvM/ZR3qpsujT3beS 2M/+cUX2kTjpg7DZ/1hwZ5gXEmviH5AH+Ot1YxKZYUxD/F9u6Ca3d/6M405gqlT8ypSC AQucob7ElqMiFKYjVYKh/U+u1M0mqa3w1CWRVEtap6ZJ+A4sgpc2OAc5ZcJVTlkWhbys kqiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@intel.com header.s=Intel header.b=DK5dfPJw; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020a638f15000000b005688fedd3efsi84500pgd.181.2023.08.16.12.58.14; Wed, 16 Aug 2023 12:58:26 -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=fail header.i=@intel.com header.s=Intel header.b=DK5dfPJw; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245668AbjHPNnP (ORCPT + 99 others); Wed, 16 Aug 2023 09:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343518AbjHPNnH (ORCPT ); Wed, 16 Aug 2023 09:43:07 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92C8D30E0 for ; Wed, 16 Aug 2023 06:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692193369; x=1723729369; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DDaqR8jxXrDXXR9QxQxqg4qA72d+XQzUFNNFvJlV6zg=; b=DK5dfPJwfbR1Tci7KqfiBz8rw5L4dmjUKjOvh5KqgcOzLRyTFg381k9t p782gSiUymXIU/swAZnybXEVseNXT8+nSW74ZRJe2khF9uRlGt1+b/1qZ UqxUuiaRMsOYzjAG3PaZXna4Gv2aYxFBo++09SBNIHu5X0JH8uMRpvtSc dM6aoBCU1lSBezFlOQEp5lyR1t09rZl6q6tgMxjvC1GY+jGrLzm7XE6uF QSzaW8QQvGe3KV1tTGIZkKunP7RyGoSDHGgKqdzVagXzhh2PNAlpSAbv3 Lw0yRgAKQvI3nMP8VcodU3J+2JlSmvAO+GGRoc3yGP+k2EQkqK0vXgDVh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="436435605" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="436435605" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2023 06:42:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="711118952" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="711118952" Received: from himal-super-server.iind.intel.com ([10.145.169.168]) by orsmga006.jf.intel.com with ESMTP; 16 Aug 2023 06:42:45 -0700 From: Himal Prasad Ghimiray Cc: Himal Prasad Ghimiray , Lucas De Marchi , Rodrigo Vivi , Badal Nilawar , Akinobu Mita , Jason Gunthorpe , Jens Axboe , Qi Zheng , linux-kernel@vger.kernel.org Subject: [PATCH 1/1] fault-inject: Include linux/types.h by default. Date: Wed, 16 Aug 2023 19:17:48 +0530 Message-Id: <20230816134748.979231-1-himal.prasad.ghimiray@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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") 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 Signed-off-by: Himal Prasad Ghimiray --- 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