Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp692140pxj; Thu, 10 Jun 2021 10:18:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzps/KikNM4oIyd/Z8gGwXb8EFH4haEaIePAyf69dR2G6IeUKzwGu7KMBbRTNaHyfqdIqWP X-Received: by 2002:a17:906:bb0e:: with SMTP id jz14mr615192ejb.285.1623345530568; Thu, 10 Jun 2021 10:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623345530; cv=none; d=google.com; s=arc-20160816; b=woyOmx7M1OVMaPP18zFq9GGf68RLiNkSSkMV6aKyyJCFn0TA2sYh7QBJwZ9fTVkZji sQPSv6UosqkVZ/TvArDIfZAGNZ8peDuUCOjK2aol9Dr1OjNxcWT0EO2YMcYmi9dVoLqv bJQCDrdfHuNhScMUf0IuuvuWVFQidxG5O63VwOLsL894fwbqo/Dl+nhlb1pr9vfOiJD9 fHGyegS/y/mICrFY5ssfG1oNa5K2MQg4Cs9IEDfIWFdJVJkJkL+OVnqfs4h8uSuvLkFi JTM01V18P3BL0eXUCv6xq5QSGIGVL0TzSfE0VpRiVgUsIZ25cYyJ+79IdckIi6FECGE5 4a1Q== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=QI9MxdMZ4JjR7zc8B0qW2kh7lEaVTJjZJKw3Xc8/UQ0=; b=FyQYEznOCduAFbAXzMIzhb4MS1wJOvaBvq9pyEQATMUyGGEkL9gIe85+37n0czNQ0p FjRZiM4nBUofRsB3hMH7sYSYCMLFtbxNcY9smbCavU1LLa3myaLGSn7QzKEnoFacio77 IU+J8yWNfXQLxklExug151jKJGAP+b7s8BNamsQQOFDcem7ExOXNq1MKz48sJnbbiiti 2vIY7WzewjkpsptQAXYhXBorKm2CRX/iP8NQ4ZYStR/oEubnXeioxvDWBzpCHIC5bQd5 gafUnmGRNVTC4dmaMU4fkqOHxkztPKIcZ7QWU3fTngMlHDIe9J7l2oxIvNPn3qhUSUJk PoUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=hYKpETYc; 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 f27si2867824ejl.134.2021.06.10.10.18.25; Thu, 10 Jun 2021 10:18:50 -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=hYKpETYc; 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 S230272AbhFJRSq (ORCPT + 99 others); Thu, 10 Jun 2021 13:18:46 -0400 Received: from linux.microsoft.com ([13.77.154.182]:59056 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbhFJRSp (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 9E24420B7188; Thu, 10 Jun 2021 10:16:48 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9E24420B7188 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1623345408; bh=QI9MxdMZ4JjR7zc8B0qW2kh7lEaVTJjZJKw3Xc8/UQ0=; h=From:To:Cc:Subject:Date:From; b=hYKpETYchAV79TiOrMuCXLIhfzGEeKQ98EXbpq1maqFIZeeQbaz4cgNwlwB8Od/f+ 7DTdT5uoqH6Y2a40MMjVw4v+xqPY3EJUb5nSwnc8C7LigpG0YPgEnwKKR5x+GGmiiV SY63En9FWjQIVgxetFCHejBBLPnBSCkwiu0T5tK8= 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 1/2] ima: Fix warning: no previous prototype for function 'ima_add_kexec_buffer' Date: Thu, 10 Jun 2021 10:15:52 -0700 Message-Id: <20210610171553.3806-1-nramas@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 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_add_kexec_buffer() is present in 'linux/ima.h'. But this header file is not included in ima_kexec.c where the function is implemented. This results in the following compiler warning when "-Wmissing-prototypes" flag is turned on: security/integrity/ima/ima_kexec.c:81:6: warning: no previous prototype for function 'ima_add_kexec_buffer' [-Wmissing-prototypes] Include the header file 'linux/ima.h' in ima_kexec.c to fix the compiler warning. Fixes: dce92f6b11c3 (arm64: Enable passing IMA log to next kernel on kexec) Reported-by: kernel test robot Signed-off-by: Lakshmi Ramasubramanian --- security/integrity/ima/ima_kexec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/integrity/ima/ima_kexec.c b/security/integrity/ima/ima_kexec.c index 667887665823..f799cc278a9a 100644 --- a/security/integrity/ima/ima_kexec.c +++ b/security/integrity/ima/ima_kexec.c @@ -11,6 +11,7 @@ #include #include #include +#include #include "ima.h" #ifdef CONFIG_IMA_KEXEC -- 2.25.1