Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp75473pxb; Mon, 13 Sep 2021 13:21:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAvVkxJv7LlLoHBIQesG69vg6IoVc83rtO+fVGqOCZCvYm/mnR+IRahp1IVCEgsZDmuDbj X-Received: by 2002:a17:907:98ce:: with SMTP id kd14mr14751405ejc.440.1631564462213; Mon, 13 Sep 2021 13:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631564462; cv=none; d=google.com; s=arc-20160816; b=cBjYFbeUeNsz445YrH8sLSepjsFdr8SWFhu1w89H3sg9uVw2lzbILhWvr7p/oXeUcL Rwo4q06EChxObwQ61kv+50FXrhXiW0pFfxDEA2A2B7uaHL/dV5rXO1XKqO/WRdzkHaF3 WCY+cjLR3QpbG68n3T2e60EewyMAQA6nueFPOgOUVe2BUwlkiIsogZVlfI4OZcwjZECU 2WkFWIqYvxQWq3SURFh+uspEWk6Nphd/N8f/D68FEyubIq+G3hJHzLDlmB1/VbdxK5rf Xa9Ne2/iGhu0m68Tt9iikmqOdEkpRN+dGcWG9vGjTCmnRsA2WaiBqCEtk9n4oV4cXnPT g3HA== 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=zs6DmJUQLzXmgvwPFVcTgHYgF3pN/Sud6d4OJb6uMsaBj+dCDPl84M2elA1WAPvGCy kFCIGUG+tuyhbU/bOyv0Xbvs0A1CnPJ8Ak9oW7y+PT3hVwhgGgL1eGeJ2vahU0RIhfZA VYw4PiD3CkAVg6sEnIt2d9gVjkq/9soCGuWayFsRsVhAbCRddFGMO2R1fBb0Judo9EHE mHXV2UwB2X0yC9/nlEaUvHkFEErvfkF6qpXhPo6rmQKbDZR/wMaLPg1IFbxZLILvyzRh k/AmY5wAu2fp4QQPoU7HV/E/XBJSifdXapjVC2A7leXI1QaSIcCxxN8qfTBXhlZhSsf+ C2tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tOUyY7OF; 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 y3si8117970edt.123.2021.09.13.13.20.38; Mon, 13 Sep 2021 13:21:02 -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=tOUyY7OF; 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 S243428AbhIMNwf (ORCPT + 99 others); Mon, 13 Sep 2021 09:52:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:51540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243468AbhIMNsm (ORCPT ); Mon, 13 Sep 2021 09:48:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0824761360; Mon, 13 Sep 2021 13:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539965; bh=iunw2Io+LwlzTrWZu9n0ONV4qgrSwhf3yZfN3wpLAek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tOUyY7OFFHXgGViPzljWRfn2HVsl5GmICIzNcb9Rn3cRh1aUbvoU69EWVv5gaMKmg CaH3mlkojD5tNyR9gvKz9ZsDwh99gIUgRIGz0Tcjvntzy0q9PoFYexmz7KtqrYlMuC jPWIuZo8g6Gm9OlBuOzIoEzXf7m/qzGH2+4VgtIg= 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.10 232/236] IMA: remove -Wmissing-prototypes warning Date: Mon, 13 Sep 2021 15:15:37 +0200 Message-Id: <20210913131108.236886434@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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;