Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1875187pxb; Mon, 13 Sep 2021 07:21:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU4jYEUazrCmGLo3IE7sX7r9x5r5KHSqchJx0ZaxZHfjJB4d1P0GsRgoRuGqE0Fs7POzh6 X-Received: by 2002:a92:c211:: with SMTP id j17mr3294177ilo.57.1631542874379; Mon, 13 Sep 2021 07:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631542874; cv=none; d=google.com; s=arc-20160816; b=LHjXI4FUKRJfRwiPVdwZUH3/m0ZQAKmvYRcnj8ubYyjUCmP3wacA6Dfx1josC08O/b 8QzZeomBa7bYJr1nBbugUBrw5jKhSGyMU/ly/QljcxiBnTdDaESdQjr8875uUujO1GvB JUYHSX1SuexwpPT9KyY5N8Bme3jYaGChS6WbwHqRpCaBI/Upnd01GGFTTTGJihuVya2G b6+HUyuTB+qv5w3x1Dgw5VndX3MBRdNjq9cUK6ZWcykuwkA8Q0zAslHyb+mrHYj5KtPg wAROmLHVKgKwMJ0qxUNr3WFmIsViSld+w5nEbIQxXzpLr+WlRE9zcWeNKgGyw+wBbViO Iw7g== 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=wBHa1tiBapdXxQ9AoTSxLV/FG9rUxmzNmdjlDvVrcQSyBXy2BKiZPEsas3jFY1IGD+ sgHgrvuHEwgd/YN+atx3Fm6aPoPBuLtj3IAG12QK4dtqs6IyXGCDc//EoJU9CYRZls+P umKRIuwo0qUi6uzJMbi7cLwFdiYwb37OjFOIghKT01rzzeeQsJPaJJ42atB2W4VrzLab mtXT5UvTvi4JF7D1Bu3PqmymI7165da0IamDRt7yaYjCzsMcxQxgwbNV5rkPcx3JMi8x fKL3Xkn63Qq4V3ikkBXFTr4fKok68MC0IG0d3Vs9mXvUs2yTYRJBninTwqpD4ge13/rr lKfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AhQfZlgb; 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 k35si6897437jac.46.2021.09.13.07.21.01; Mon, 13 Sep 2021 07:21:14 -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=AhQfZlgb; 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 S243407AbhIMOUx (ORCPT + 99 others); Mon, 13 Sep 2021 10:20:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:37030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245401AbhIMORF (ORCPT ); Mon, 13 Sep 2021 10:17:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C58FD61452; Mon, 13 Sep 2021 13:44:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631540691; bh=iunw2Io+LwlzTrWZu9n0ONV4qgrSwhf3yZfN3wpLAek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AhQfZlgbzUxkP4GLlHcCbh9Sn7P8AQtsfqUoXLWD1yV+CXGdwv7nCeLeZRuuy7VbT 8yVojamS7ira04hN/NNXI22Ccwl5rhUMqX3U9Ju/8n7qZEwySYIOXzCu2CviZ7STbp haaeoykgEiM6L0ASwe1OpmDNGsqloYSM2JH+bIC8= 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.13 295/300] IMA: remove -Wmissing-prototypes warning Date: Mon, 13 Sep 2021 15:15:56 +0200 Message-Id: <20210913131119.324402535@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131109.253835823@linuxfoundation.org> References: <20210913131109.253835823@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;