Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4007827pxf; Tue, 6 Apr 2021 06:00:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/wX7IEhr2mKFKFzb3u2xLfkA53rPX47h655ujERoWT653m2R/PNKwnJNDu+UWDWVkKgth X-Received: by 2002:ac8:7a95:: with SMTP id x21mr26998557qtr.209.1617714034685; Tue, 06 Apr 2021 06:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617714034; cv=none; d=google.com; s=arc-20160816; b=VidaAY+xprZPmQOil6WuRPQu1AlpmKwltO7uTpSU2A62QtbKkGTm1Xm1Wm/DDqeR1n ub0caJ/n9Mr/U+W4p2XeKXg68AjAFclTYfkBfRvE3AuefM2NobhxZPHAK1yiExKYJn5R YAmjIRAxo/5kuogcoz62hMq28pmArjEJLB+vlHWefPs9wQBG7vzGd1roKVlJutommMQJ l37uHvNVWUor4Ac8UM1axUD/oygWLocKz+mnLm9exUkZzfBg76JG8FkaP/xGIbua4f27 9EfRBL3ey6JOpY84B27kif9LC3AeoxUYEksnm7st/P+978hcY575mZH5BNCPbUudfukM o2qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=tSQyHivScMUDcbZdiPtRXeO2Jg9Zy3WHSlAsIjaRsVc=; b=NRpSmaH/2ttT9Ot7iOzJKouRFvaeuxhcsyjWmqU4sgtE/6XwdMGyrKq1YZoTl2RqcG X5E+v7FsAmVhl4iqNrypp9Xxni8rBsp6DBaGmDQ/29vL8gs+MpaCJit1aaS0WiKAE1V5 rvvLIv5uHzSG6skZcWKF30w9H+2DqiFL5EDKvRU5qdFoORB+pZHcTpwnK+GdA44ImNNX RBh5lIFygQRW4z/wu8u+6+hpv35trwjSW9DxO6sstR84Z4tOQKbUp79UXA0tMTHKWnT+ Hm3mqxq91yc1YsMMKSQG9LFwVzaWElZ9KHcs13mH2oDk34ZptbBmYachPMKaZbc3eV1/ nrKg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de53si16012940ejc.358.2021.04.06.06.00.07; Tue, 06 Apr 2021 06:00:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242330AbhDFCmV (ORCPT + 99 others); Mon, 5 Apr 2021 22:42:21 -0400 Received: from namei.org ([65.99.196.166]:34454 "EHLO mail.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233030AbhDFCmT (ORCPT ); Mon, 5 Apr 2021 22:42:19 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.namei.org (Postfix) with ESMTPS id 5EC70508; Tue, 6 Apr 2021 02:38:51 +0000 (UTC) Date: Tue, 6 Apr 2021 12:38:51 +1000 (AEST) From: James Morris To: Jiele Zhao cc: "Serge E. Hallyn" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Mimi Zohar Subject: Re: [PATCH] integrity/ima: Add declarations to init_once void arguments. In-Reply-To: Message-ID: References: <20210323013318.296993-1-unclexiaole@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 6 Apr 2021, Jiele Zhao wrote: > Ping. Mimi Zohar is the maintainer for this code. > > On 2021/3/23 9:33, Jiele Zhao wrote: > > init_once is a callback to kmem_cache_create. The parameter > > type of this function is void *, so it's better to give a > > explicit cast here. > > > > Signed-off-by: Jiele Zhao > > --- > > security/integrity/iint.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/security/integrity/iint.c b/security/integrity/iint.c > > index 1d20003243c3..5f3f2de997e1 100644 > > --- a/security/integrity/iint.c > > +++ b/security/integrity/iint.c > > @@ -152,7 +152,7 @@ void integrity_inode_free(struct inode *inode) > > > > static void init_once(void *foo) > > { > > - struct integrity_iint_cache *iint = foo; > > + struct integrity_iint_cache *iint = (struct integrity_iint_cache > > *)foo; > > > > memset(iint, 0, sizeof(*iint)); > > iint->ima_file_status = INTEGRITY_UNKNOWN; > -- James Morris