Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1905207pxb; Mon, 13 Sep 2021 07:54:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAYbUTi5MIBqjM8iEXysDFMu0rfGoDwjrkHm2JbXs8KaHGfTHK7G+CTogyCZDuKrum5k91 X-Received: by 2002:a17:906:35d8:: with SMTP id p24mr13058462ejb.292.1631544885047; Mon, 13 Sep 2021 07:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631544885; cv=none; d=google.com; s=arc-20160816; b=KPSba5taAwSqCKeIqAf5ZDHnWrEvueZcdZthVdl5I4aTdYVn/0W6hSIvgcviE1/tkU zaJodZiNkHDk92EkJjWwlvNjXsPnR7F3sr/N7U07gKOFd+fLZgX9VUjzQ6ygm0Xt7Swx yTDbJlaMKLHZj32L9X4p+W51nAwfQJhVCroZm2KSuyUPpGS/3bLrVxkkXKxwboFwQMso i4zx7dCYp42NIe0xPVba0LA5wg/C5z8sZuNd8bIrYxZV6WSf0Y+noWxL/zP4pwi8gRqJ w31HRIr1BOrZI4Lgr/eyTd2DQphHKAb7mf5aJNcOTa+6GK3tZX3WHiKurbleDwzXFZGo yX4A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oClEiCqboVaf6NpFnpwIoXKFUt3expkGzT6/1I4yPd0=; b=icQ434bp2+A3816Ikz2wLLGIrlNqQeGKa6FQhQqyqHnu2jJU5d9rx6xQsz59tqUbjW YNu0eHwhycFtMq/8gx4TcXfKLskZdDs+yBhwhahtGpk3ki6UR243gMiCDLTJyE4pqATb LJ2VVYWr1bSB+9VXKv5ASc3sV1xyKKm9EYTepNVedJf7H/E/4hZoePMKfgIvHXdUlJ/p eLaZb/B625FHBO2djVeutxw3MDo9Dd48P7svfQpDluiY59+eaNuWYqG+Urwe/dMXLsNu EqB1HzFS1bbu7DOec2w9pCPHWtotMHmh0zKvjEBJBxYJwepDlw7pYv3yJnnyyl811oU6 I/LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sn3n7uGD; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o24si3500958edv.28.2021.09.13.07.54.18; Mon, 13 Sep 2021 07:54:45 -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=@linuxfoundation.org header.s=korg header.b=Sn3n7uGD; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348547AbhIMOvB (ORCPT + 99 others); Mon, 13 Sep 2021 10:51:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:34832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346106AbhIMOpo (ORCPT ); Mon, 13 Sep 2021 10:45:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E75D6619EC; Mon, 13 Sep 2021 13:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631541512; bh=iunw2Io+LwlzTrWZu9n0ONV4qgrSwhf3yZfN3wpLAek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sn3n7uGDC66YCNEKZhoSkHIC5eneSpaEDJGOWc9tUFBlXMDph9UnVy9LCkY2tIq7w ERUQ78af8XcGz5yHEyEZzRUXebL4/lYzQct45FfQDJ2iQFDbFcOONi5rF7Nb6xInjY yJKs3hTZyDoRB73dkZS4FX8udpyMm44TjRe1Dfiw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Austin Kim , Mimi Zohar Subject: [PATCH 5.14 326/334] IMA: remove -Wmissing-prototypes warning Date: Mon, 13 Sep 2021 15:16:20 +0200 Message-Id: <20210913131124.466775893@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131113.390368911@linuxfoundation.org> References: <20210913131113.390368911@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Austin Kim commit a32ad90426a9c8eb3915eed26e08ce133bd9e0da upstream. With W=1 build, the compiler throws warning message as below: security/integrity/ima/ima_mok.c:24:12: warning: no previous prototype for ‘ima_mok_init’ [-Wmissing-prototypes] __init int ima_mok_init(void) Silence the warning by adding static keyword to ima_mok_init(). Signed-off-by: Austin Kim Fixes: 41c89b64d718 ("IMA: create machine owner and blacklist keyrings") Cc: stable@vger.kernel.org Signed-off-by: Mimi Zohar Signed-off-by: Greg Kroah-Hartman --- security/integrity/ima/ima_mok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/security/integrity/ima/ima_mok.c +++ b/security/integrity/ima/ima_mok.c @@ -21,7 +21,7 @@ struct key *ima_blacklist_keyring; /* * Allocate the IMA blacklist keyring */ -__init int ima_mok_init(void) +static __init int ima_mok_init(void) { struct key_restriction *restriction;