Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4462146pxv; Tue, 29 Jun 2021 07:35:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7aulPa3ghlLmuVoYIskyOiNBzk2LIYn+eSVytrrfVrY2+vaWw53E+qKBXRUrL+ghHW4mF X-Received: by 2002:aa7:d657:: with SMTP id v23mr1178433edr.173.1624977324711; Tue, 29 Jun 2021 07:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624977324; cv=none; d=google.com; s=arc-20160816; b=V8aRKgIac+9HCR66OE720AQgst5+LvHq5K1VUcJIVIyfeZes4fjHYvI3z6MS727Zzi 0p1HQzKJrX2vSsyshjzmd+wvwY4J46wBUQ4KQDPIrWoNkbjesF4JN77i1soGUDWdvic8 xCnjoaksQFFS5lk+xUSQuwQzKSaJ5jVLGGfmn1h211Cv9msBmSZ3EnoHwv19IbqBqmjg 9+vBVExV4vB2BlZPLFFqhbMp7qQaK09J9bvCP5wxvDXhVagEwqF/kMzbCpFxd4qwP4md NqaMcFv2mO/uyMXqnWBzE4TWTbxyXz1TxFI6Qn33rVR1naCaAv/ZcErc5nNhEX1pO4SI ixBA== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=8nHEd+heVjgNDMISNu6kEs8agcHs9+hSuqstlJ6JRO0=; b=nV+nhdmDVU6YjHCFD93jih+JENyAmjPxedZBblTtmFo6ZItW4vqGvfbkf0AIbWMSKy 7A/guY04Kdo0sD5gZd+zG67EijhR7S7ZMKuDgO4P0untS94ZiDVGm96ftwa5pGRZM6yi /p/K/yPleZHsh8i2JQhf1LWsCqmYdoHKBKDRhNngkuwaqh4CGX/iaU3E0Cj2VHvqbzx9 csJNXPVdUWkluzmnx3Lx4vHTUYUGNTdRF82RGmlOHoWJCCP5wjSDCHEOkk/8gZQu4wBL 4odkqsZ56iHjrYzrka9zD/3F290+DkY9o9xdsS2UinOprJkTzjl7DxxsiooryrjveIH3 gD2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=G52GVhgL; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si198910edp.304.2021.06.29.07.34.59; Tue, 29 Jun 2021 07:35:24 -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=@ibm.com header.s=pp1 header.b=G52GVhgL; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234450AbhF2OdE (ORCPT + 99 others); Tue, 29 Jun 2021 10:33:04 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:6540 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234285AbhF2OdC (ORCPT ); Tue, 29 Jun 2021 10:33:02 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15TE3p2k051986; Tue, 29 Jun 2021 10:30:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=8nHEd+heVjgNDMISNu6kEs8agcHs9+hSuqstlJ6JRO0=; b=G52GVhgLiU1JuKXKo4X91yq82gDpqqgA3FgITLOnlZdNnyrlk7RSuXLuvShAF82xX/Ug H8zlXblkKvzYIvaJc4b+tOcsqZFkDl6mToo4Ki6WsZSNh6Vztl+i30da8XWbrFWx/U/g mmnCJPM71SFH2HUBvsu8TYO9LwHWjeqkdOUKBTaD86O1sZLMn6hVFbyWGHJh0a1tqmho SwejBtXLE1AZNHIqKlQsnpsvpDPtvMBgGCsG29X7628h0hf6MGo1AXvsJx3RFRDfuSm/ y09UYFJ6H+JcTJXtMzddv+rideuzfcrEomVsklZjkiRuyxbSvCydDnbOHS/i7jjZswgT MA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 39g4v1gy2v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Jun 2021 10:30:29 -0400 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 15TE5IOv063910; Tue, 29 Jun 2021 10:30:28 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 39g4v1gy1k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Jun 2021 10:30:28 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 15TEPDnT024205; Tue, 29 Jun 2021 14:30:25 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma06ams.nl.ibm.com with ESMTP id 39dughhbg3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Jun 2021 14:30:25 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 15TESnuJ30671160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Jun 2021 14:28:49 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D96084207C; Tue, 29 Jun 2021 14:30:22 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E192A420A0; Tue, 29 Jun 2021 14:30:20 +0000 (GMT) Received: from sig-9-65-193-149.ibm.com (unknown [9.65.193.149]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 29 Jun 2021 14:30:20 +0000 (GMT) Message-ID: Subject: Re: [PATCH] IMA: remove -Wmissing-prototypes warning From: Mimi Zohar To: Austin Kim , dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, austin.kim@lge.com, Petko Manolov Date: Tue, 29 Jun 2021 10:30:20 -0400 In-Reply-To: <20210629135050.GA1373@raspberrypi> References: <20210629135050.GA1373@raspberrypi> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-16.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: cqNRqupwFie-nSLx9WuTAUc7dwbrRhjb X-Proofpoint-GUID: wQrpsWgRP5VglZKz47mpfDj5TWxCrHQB X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-06-29_06:2021-06-28,2021-06-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1011 suspectscore=0 mlxlogscore=999 spamscore=0 phishscore=0 adultscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106290095 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Cc: Petko Manolov ] Hi Austin, On Tue, 2021-06-29 at 14:50 +0100, Austin Kim wrote: > From: Austin Kim > > 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 > --- > security/integrity/ima/ima_mok.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/integrity/ima/ima_mok.c b/security/integrity/ima/ima_mok.c > index 1e5c01916173..95cc31525c57 100644 > --- 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; > Thank you for the patch, which does fix the warning. The .ima_mok keyring was removed a while ago. With all the recent work on the system blacklist, I'm wondering if anyone is still using the IMA blacklist keyring or whether it should be removed as well. thanks, Mimi