Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp704117pxj; Thu, 10 Jun 2021 10:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm5LsTzaNDZVXznMryFjQ012o7Scbpm8tm+JFd6JmnziH6Vu3ul4jPoH4AwS/nF6x2c+ra X-Received: by 2002:a17:906:1e15:: with SMTP id g21mr677260ejj.241.1623346578373; Thu, 10 Jun 2021 10:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623346578; cv=none; d=google.com; s=arc-20160816; b=dgtsxniwFgsmf+3QYodcAhm7acmuU9MVmz3L8VRCRVXrSK14rd+6iekVCqJqDAex3w 5GW07Myc3n7JlXlnr0p1lNR/QiVCzdSZwaUMDUp9DbTJbTV7hrZFCcdoV48+DSlbmGR+ xpv4USAOz6wMWnGBSh7zkh5ISIhepCkyt9dlYyHnaMdiFNXu+hiGZLI5VR2Qv/Ospc06 SuezqpqY8WFjNLmHxOBPO36BmxUchzh6HuCUtZ6b+fbI+NAkkY8wLHR3vu0ii4yrF1YQ u9bW/VYPozaI4DzUbWqxE4A4wEgzkgW6v9s90OPA7N93p2ajHbuW/+rve0cSrwPyLbL2 /C1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=P+jVaPkYfsSbn6aIwBkLG3SSMpzgZOehwPkqFqsQHIE=; b=N/Mtf0n4ywnUuCHNtUpdyVyzUb2zA6uwrPPJ8GZzp/J69niUjCliQADWnHudvyTW5V JDJfYy/KiG6pHAaafv554lJF+ZMWFY59BRU4oKKMhOUHqiJMDqd6+3Boz3zrpSjuQue2 lEncOncvvWgHE8ICPATpvQkkApObw01F+aERS3NhFXdI7GkjKk/By8nQq9Cy6rlOvaW4 4kzPkwzLF34EPMI6CpTmQenCc8CFVgxBom91bbR9tnK8m9E3EptmQev947W/k9BZIJfP k5U+p8qduiL2HhfFYyMPzyi97nWsadW/LxHCDh7Zm04tBAc231MjMv6XFI8YeFOQYKpU Ec1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hZHxlhun; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si2618543edd.97.2021.06.10.10.35.54; Thu, 10 Jun 2021 10:36:18 -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=@kernel.org header.s=k20201202 header.b=hZHxlhun; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbhFJRg3 (ORCPT + 99 others); Thu, 10 Jun 2021 13:36:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:39990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbhFJRg3 (ORCPT ); Thu, 10 Jun 2021 13:36:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15CA461285; Thu, 10 Jun 2021 17:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623346473; bh=dNIHjRvGznZO34knj/aULyfJ8MaOoBksZw/TOT4vmBk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hZHxlhunmubpXxnzITD1WT+WW/7FL+S03kOloC/WsTBkIsDiktc+o820NgALZuvBH wXDo+x67sqK9Hu4FWHnfHaY9RIV66hOPRctN629ZJ6r3w5zDqGiZd2yoWV8mABlyhU 21VEJPfaEeAr+moc2ixuFXIYwYQapxsUbBUeiYAaU2kRPxHwoBIf+XL1Kqq3lZRQSV oL9IM9hnE3s2+CJWkiXT5jvzzHYkfpgt4ipDwCImapVQBUvkCvEeeQ3GC0rdGQwR5B SdoWA25x8qrt0od0LMb7CBvhZhLdPQo3QISg9AgQThL/EcfCXQE8JU/gv7gVkCLGde +Qj8rd3uqyfkA== Received: by mail-ed1-f43.google.com with SMTP id t3so34003538edc.7; Thu, 10 Jun 2021 10:34:32 -0700 (PDT) X-Gm-Message-State: AOAM530kzuVD68tnVuayv9NUXPUTwZR1ZlYzbdrrD09ZPMaFxRA2NlUq 4KV6G5KnimOdpCTCTnmyXnRTm4UekwLc+rzCqw== X-Received: by 2002:aa7:cb19:: with SMTP id s25mr641483edt.194.1623346471674; Thu, 10 Jun 2021 10:34:31 -0700 (PDT) MIME-Version: 1.0 References: <20210610171553.3806-1-nramas@linux.microsoft.com> In-Reply-To: <20210610171553.3806-1-nramas@linux.microsoft.com> From: Rob Herring Date: Thu, 10 Jun 2021 12:34:18 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] ima: Fix warning: no previous prototype for function 'ima_add_kexec_buffer' To: Lakshmi Ramasubramanian Cc: Mimi Zohar , Thiago Jung Bauermann , kbuild-all@lists.01.org, clang-built-linux , linux-integrity@vger.kernel.org, "linux-kernel@vger.kernel.org" , tusharsu@linux.microsoft.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 12:16 PM Lakshmi Ramasubramanian wrote: > > 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(+) Acked-by: Rob Herring