From patchwork Mon Sep 9 20:46:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 173424 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp4877879ilq; Mon, 9 Sep 2019 13:46:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwth81PpG+l5IIzX7SgxUKnxlGqGudODjZKXLC5/i8di8OBcwqFCIctlSa4ZEjXkc1M9wJG X-Received: by 2002:a05:6402:6da:: with SMTP id n26mr6159203edy.234.1568062013504; Mon, 09 Sep 2019 13:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568062013; cv=none; d=google.com; s=arc-20160816; b=i3mSN6sUnn/6NznJhOW4fQj+B0hA33V9CgPn+0Bw0QoaiN+/DlOzO7lKKMLt3w3YLq XDNZJFiQ9Km3t9yHb/H5i5fnXjpyPqFTYE3TTGVHrQXTXTfnVhHnVjeBDc3i3rLARDk5 DCyVgC6cz1O//gS25riAI5AZn7FB/5DfCIKHwVbzY9SCZehLuR8A0cXf4cuhMsIIvEzr 5c+pRyCLI/aS/l+xymLFH+Oq0hqRfjHMPb8mMunpL8kQe6/ukVOeLv35Ci2TAKaaXxZg vXPjYIwmjA26zXu08K5YPt5DUjlChvfxr4ekKtc4etUaoTTQKRbCvKslbrfqyPWZJ2zw AQtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=nT8Q3xew1dMHFLT2sgNLCoo6FvdMZLBMAQBHs4N5sYE=; b=RUo43ngGAcfBDhJCePoTpSIcv4OWA8HlxsA1XmM4il2GFimwCcK7xCzIXaL9sQ4/vn PJOuoUnh7t4Yq6nGpK349UZ3bkfAe4KWPUPcGfxHwabWExQWZUOJDRxJAMWCUmiv432B JHkxwrK7SjxlBYNWMoZcL8leB9C4NXz4Q35xvf6nA6XgmtLXYm4QecG03qpLjM87oP9I gHXJ/35CVPAxcD5SoytbTEjBpyeMC0k6gr5F0fMlNeLNcVrLt/WmNbB7IEw1+oaiQm2L GY/i/kgwjp5s1s0KLofAd5T7+ocbeM7nQ8r25iBZuO3A1ulf6+gd+Ee5y8j6i0itdsnj uNHg== 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 k9si9615408edb.56.2019.09.09.13.46.53; Mon, 09 Sep 2019 13:46:53 -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 S2391764AbfIIUqv (ORCPT + 28 others); Mon, 9 Sep 2019 16:46:51 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:41691 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726806AbfIIUqv (ORCPT ); Mon, 9 Sep 2019 16:46:51 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPA (Nemesis) id 1McH1Q-1ihaFj11VE-00ceqT; Mon, 09 Sep 2019 22:46:35 +0200 From: Arnd Bergmann To: Casey Schaufler , James Morris , "Serge E. Hallyn" Cc: Arnd Bergmann , David Howells , Kees Cook , Al Viro , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] smack: include linux/watch_queue.h Date: Mon, 9 Sep 2019 22:46:25 +0200 Message-Id: <20190909204631.1076624-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:7kPRGYZSWYf2iP8zTqFhK7+b0tun5SPyfoyi+uDXVHze5EFuFqS Nzh3llpFi4dmcPwTfZOoHLg3he80h016/nSZQMEE/LclAAnZshx65ZWiqrpp6ewK6y+iKZp TK40a875Caah6kL2Z6OJLqQYd5DMCurbxVGHv0veJL+f1WJ2vGkPvJG60YwKcr4mbQFoVH7 vp56UYM1KdXNtRtxjDX7w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:W2q+6/0M+sY=:+ZeLnOSbtYroQQf1oURVYy tLW6O3suuY3f2DJRTvLJJ5eHugugl9w3/Xk4a7r3lF0IypVF31eKbWJx5y3rqcE1m/RatIfWG XtEZFlH3ZPdHQM/mqlqzCTWlF7zYpEP0e7yoRZc39KYUwkf0ZBPCx9h/gZ8JOV4Q+/yV5aZvk JC9gLeRRxkpaXqI3LKGVm5LOERxEdSQ+gIwlIUkNcKGeoQJ9f2pvGQfBTu/7ab/FB9HcyqnwD ObLCydlDoh63tdoUJnJ56cGM8NRymT1nHGc2tksdOQpN8zayjEOKEkw/XsWO7vbUwB2Fjy4Uc mxGmdOSJRZVAOiIPIQzs7w98KpRc4EIaMlzO0csfbh2K0WBjUpAQD9Su1m1j2jaOJ/imYFUuy LAF1whCkZe78ABAsSJ7BBJrShKIu2cT/fAOyIF6Ri57qRZysNbI8vlUCGUJ1QIZmM8bBzSYhd KfyKiTI9DfWBseZDKQCG/weOSi+d7Iz4UwjV04OiP5nkneaJ4hcxg/LObLUo64pxAXPinw1/w HOndy9Nv/Mbfb67ZUAnSBQSILI2HpkrRRxXU/A6NTpSb7wrLx8GU0nenXxPo29Jx5oHU5TV/l l7jZfIS5r2HfRV4yfAYlsnNzrNGug8+hrv+t/pLG9kPNem3mQSGbZsOQdfiYeOwDekweKIELt cTVLn2GZ6HKMqq2T8Qoe9NXh4O7WcTSkeGWAyidRN86l9tS9qdRqtwpPE5L06H+l3fLrrbmcl ZqkkB/ktI44sgFMOrSTBMFTNA5CCnO1mDoe+RRjeVfsljPlXdC1ciRxb3HdigWb352tcZlBbA YcyviTOFF8uU8aAGMaL2xSduJYRVQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In some randconfig builds, the lack of an explicit #include in smack_lsm.c causes a build failure: security/smack/smack_lsm.c:4384:7: error: incomplete definition of type 'struct watch_notification' if (n->type == WATCH_TYPE_META) ~^ include/linux/device.h:46:8: note: forward declaration of 'struct watch_notification' struct watch_notification; ^ security/smack/smack_lsm.c:4384:17: error: use of undeclared identifier 'WATCH_TYPE_META' if (n->type == WATCH_TYPE_META) Fixes: 5301fef8ca60 ("smack: Implement the watch_key and post_notification hooks [untested]") Signed-off-by: Arnd Bergmann --- security/smack/smack_lsm.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.0 diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index a15e76489683..5120dd9c6335 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -42,6 +42,7 @@ #include #include #include +#include #include "smack.h" #define TRANS_TRUE "TRUE"