From patchwork Tue Jul 24 11:07:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 142766 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp7130253ljj; Tue, 24 Jul 2018 04:07:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc4oH7DtxOziH/PYrEP9xq8blfET8XTI62aMyzTBxV2fYsMiVPWWMsJBcOhJzH+LbHu8pOD X-Received: by 2002:a17:902:6e09:: with SMTP id u9-v6mr16182705plk.13.1532430476621; Tue, 24 Jul 2018 04:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532430476; cv=none; d=google.com; s=arc-20160816; b=dmz8Y+orNxfnG0sJW3FE2s0V7+FaudXp8D2y5Y/HSjMslkZ3chQ6jBEsPbViLfui3i qoZgpAFl8N/6S+xGrkX31bwCaoEMCEixoUsbwxLIfv3KJ2+Kh9qiXtN00XXy3Iu8lSal 3C1dq3c7/tF+Oqais/086HWJVvsJfKrHjzxyMCDJYwbWj/1BhnrIxsxEJ+pmt8cEUyIp uR+BdcFwZK2YxRDYtlk20nBPrxa8XAey938HU23EbWG7ZrLyAJDJEgHytn4KeYoQm63v J7T/wBQEWYfqeR8adh+tdIIk6L8auEugeODnn/eBK9tRlj2tXJk3DFu3yITw+M1tZ2X/ 32Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=R54edcnP8SIc/DDomtb0hFpOTDIJrqJONJ0adIeyXc8=; b=hlGKctGaJONXyLBxw93acGEf3ppLKwDJpfo+1FHNCas2b4gxK5bnAI5RexnHdxnWwc zOHmM/Bqq3PFvR5wpDSujb9OTKkpgrAvWrL83bE6XWiSvWoN53bdXcr8rKZ0HlFOAPcQ mK7wXwxEGxu2XJ3XCsOPQW8PIKULCtLOUFWpYcoIHOo86pfmlmttPHL3noGD2tFXjbuD wFQP60sjHZbFkInG2d74Z3k+CUYebgxPbnkFpOhJZRJHuRx7wre6lTtjZF7d0aK83c+4 HAj7KvwRXe6LiaDwZAcTjqyxaGCuTUyJUD1VArY7J+nLlMgvjKiA8iXBIwmYNBkosgOD vUOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19-v6si10346881pgv.327.2018.07.24.04.07.56; Tue, 24 Jul 2018 04:07:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388728AbeGXMNs (ORCPT + 31 others); Tue, 24 Jul 2018 08:13:48 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:39627 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388196AbeGXMNs (ORCPT ); Tue, 24 Jul 2018 08:13:48 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0M5gVc-1fxXDS2Td2-00xcBg; Tue, 24 Jul 2018 13:07:50 +0200 From: Arnd Bergmann To: Andrew Morton , Eric Biggers , Al Viro , Greg Kroah-Hartman Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] eventfs: include linux/errno.h in header Date: Tue, 24 Jul 2018 13:07:13 +0200 Message-Id: <20180724110737.3985088-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:EaZLP1ln1XERN2do726xHF8PsMLl8sf2X/ECuPcP5KWpi0zRPfQ 4CoOa1PxvRmbVUdkLQ9UVZ90Z8FhI/3v4vIaRSySl2eGPvSUPNY5aOZOWfAlZn/jp9FBRzi z2fqwz8eLvbniP1fpyhPbM/aJ0MwMnh4Rbk++1zPtATM5yMlFbR+8YczHO3lIZ2xmYejp2h GH6viKnvh79JhDz7mhgAA== X-UI-Out-Filterresults: notjunk:1; V01:K0:U7a4NBuKkw4=:4xaUhXEBZhYOMUKCAw8I3w ojqkyVsxUPnC+noSR1oURxXBvU8M71wfvUjdfD/u2EAz50XqQr3WrHbgxbZ9UOHSGpjFge9gC /x1hbpkOh23ewnbmW/5j4UiU0BqFpEJrVHdmiGeqPSRxcUkdRavTRF0hhQb1VMkT4BM0zmnbv XDbEERD6LH6r9aZoYa/dSaVEbQ7w9PleBql/UpljOfp0HpCx6tCXA21QWW7bawLVb/F8/N4+o q9XppxZcVTX8zCVbxbtH4j0i6dI0mRrYHqKB5G9Dqo3FU0W90jYJT0/wA0jaOE9ghucXhgO2R dXzM5Xx9k7WHBSBkJ0Ub07Q6vWzjgyylc43e7yGE0TcL91SM+SkMBPP9gG4ORHMD++X040nYr RvGkEB8GI9DOwcAhzyRYv+sJcvnPlbfqGMGipAkiVwdUMgNjOYFlKjo0+QQ6++LZnmj02HwkY hNdTVPENxXpyCj2qybH/AKSKoNiWrLzPyDCEC3AVNsb2Xn49knzeuTGi2tsIZrrviaJ1juq2T ErsVVkNwb5U8GoRirZ9EqErSpmAgqxwAkD4cAKCqt+eZuO8FhH+F39xNg2jP+yga2zjT3dgOq Tr+EKJ6HjxsBSY6cR9L5FCaqIL6o0LHj6APNJtvV6bOqxTIo6L8zRUniZHgx5DztKncMBh8uY QTWQKI6VhKRADjxplWKw34GDbUa3lwsShqiY5noqaWy3mXFy6cBMBy03ZRbT6NtJLem8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new gasket staging driver ran into a randconfig build failure when CONFIG_EVENTFD is disabled: In file included from drivers/staging/gasket/gasket_interrupt.h:11, from drivers/staging/gasket/gasket_interrupt.c:4: include/linux/eventfd.h: In function 'eventfd_ctx_fdget': include/linux/eventfd.h:51:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration] I can't see anything wrong with including eventfd.h before err.h, so the easiest fix is to make it possible to do this by including the file where it is needed. Fixes: 9a69f5087ccc ("drivers/staging: Gasket driver framework + Apex driver") Signed-off-by: Arnd Bergmann --- include/linux/eventfd.h | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 diff --git a/include/linux/eventfd.h b/include/linux/eventfd.h index 7094718b653b..ffcc7724ca21 100644 --- a/include/linux/eventfd.h +++ b/include/linux/eventfd.h @@ -11,6 +11,7 @@ #include #include +#include /* * CAREFUL: Check include/uapi/asm-generic/fcntl.h when defining