Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp692086pxj; Thu, 10 Jun 2021 10:18:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYxAl+KmsXkfCLplZfVA1HGTR8VmiLAgSvjf/sdJ8k+Hs3xUCB9R55xRcF5lxbasUNG8fI X-Received: by 2002:a17:906:5a88:: with SMTP id l8mr623082ejq.163.1623345526678; Thu, 10 Jun 2021 10:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623345526; cv=none; d=google.com; s=arc-20160816; b=WwCO8CwqJUCSH8+PPid9WQbMgx/k1LUidDPm59QLerUL/TisPvdYliEUmJMmHJxmlj FZfqjf4yPZ/lFNfhQLvEqi6OFuORFIw0TahnGsxCkT9SJwZmXfQAyXrKdqyZ/gK8pPg9 FC7rXZ1/jSuTuNYtKRE36I5f1deizD5XlQCuSMDHKAxWtgR+7amv6cAqSITB8gwmSlmE RyoBdYpVUAMWB67m5VDQDnocjVBAn7bdOHSS5Mh1rGGsXlS0Zt5GS+2Zi9oTMicAU+rQ mrj1yr++n3nKjS48VF6PsdnmCZgezhn+bLtUpiEJ/PU5QO/yfbtcLNVGLxJAXqGAGMDZ xa8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=xrcK9iOXmTh55gmK1vfkC1viqRPFZ9noMB/T92243/k=; b=csSvkbfyRyn/uNrXTjtozzkuzC9H+XiG3AnHXXGPLdgChT1bVvM2TF9+aXFx3TyuSm NS0u7+B6i9u8goSrumPqBwA+SHxxSBYYaCk2XlQDpkbKJDTXo43/oG6MoNdZtgvjM4nE avt0TETt9bqCK/c93uUQs2K6HO64BqNGzyf0X0pUDpQcI441K6YMDiIYuCAr/F7IvZsn caAygzGhBu9dEKx43giMLuK5/XTlLKe43R6bTWr8Hny946YF4dlEU/RTHkoEsIsBto/6 2Uh+LTS3cHaGQSxbFX9V5/03jYXuhUOpr15Nysuy3m0F5Iw5eutxL8gHUZCtH3njzody HLnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=qfxZdiGH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si3179470edb.418.2021.06.10.10.18.22; Thu, 10 Jun 2021 10:18:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=qfxZdiGH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbhFJRSt (ORCPT + 99 others); Thu, 10 Jun 2021 13:18:49 -0400 Received: from linux.microsoft.com ([13.77.154.182]:59066 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbhFJRSp (ORCPT ); Thu, 10 Jun 2021 13:18:45 -0400 Received: from localhost.localdomain (c-73-42-176-67.hsd1.wa.comcast.net [73.42.176.67]) by linux.microsoft.com (Postfix) with ESMTPSA id DF1B420B83C2; Thu, 10 Jun 2021 10:16:48 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DF1B420B83C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1623345409; bh=xrcK9iOXmTh55gmK1vfkC1viqRPFZ9noMB/T92243/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qfxZdiGHKs17jAlXW8SXaZ3Mn4R1ebNptsfQoVqLF+ZVOhg6ZMsy4t3Si4Yj37DHE J1SDquKgH0c1RyAujXjmAgcBtQ4sRzjuRyCshgzxSpJO+Zs6/htmHnj4j7sv3Zag4a yc/74D4dmBdG14dp7ZxJnoiNR1mWzYRfxzngzZZA= From: Lakshmi Ramasubramanian To: zohar@linux.ibm.com, robh@kernel.org, bauerman@linux.ibm.com Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, tusharsu@linux.microsoft.com Subject: [PATCH 2/2] ima: Fix warning: no previous prototype for function 'ima_post_key_create_or_update' Date: Thu, 10 Jun 2021 10:15:53 -0700 Message-Id: <20210610171553.3806-2-nramas@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210610171553.3806-1-nramas@linux.microsoft.com> References: <20210610171553.3806-1-nramas@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function prototype for ima_post_key_create_or_update() is present in 'linux/ima.h'. But this header file is not included in ima_asymmetric_keys.c where the function is implemented. This results in the following compiler warning when "-Wmissing-prototypes" flag is turned on: security/integrity/ima/ima_asymmetric_keys.c:29:6: warning: no previous prototype for 'ima_post_key_create_or_update' [-Wmissing-prototypes] Include the header file 'linux/ima.h' in ima_asymmetric_keys.c to fix the compiler warning. Fixes: 88e70da170e8 (IMA: Define an IMA hook to measure keys) Cc: stable@vger.kernel.org Signed-off-by: Lakshmi Ramasubramanian --- security/integrity/ima/ima_asymmetric_keys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/integrity/ima/ima_asymmetric_keys.c b/security/integrity/ima/ima_asymmetric_keys.c index 1fb0b0e09559..c985418698a4 100644 --- a/security/integrity/ima/ima_asymmetric_keys.c +++ b/security/integrity/ima/ima_asymmetric_keys.c @@ -11,6 +11,7 @@ #include #include +#include #include "ima.h" /** -- 2.25.1