Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp413068ybz; Wed, 22 Apr 2020 00:20:24 -0700 (PDT) X-Google-Smtp-Source: APiQypLe5jmy/r7ZRTgJ2gUHW98PEFtk8AFfMnxSMx/SvnL8DXPZaoPcj8xHGdPGI8+CGiMJFslZ X-Received: by 2002:a17:906:f90e:: with SMTP id lc14mr24080397ejb.156.1587540024488; Wed, 22 Apr 2020 00:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587540024; cv=none; d=google.com; s=arc-20160816; b=zvdUXZXxN06g1eyfw+CK0tNebYEe8KlKAUg/9DuycZbnMVD2YI8VDuXhCjOZ3e5GcQ +OoaCRQrrJPNNfiTiPt11VenJ4WwFSsgj0BIU2svr7jMtGg0OGlEZe0AdJjriE2MTZdO FKZhwQ54P1TH51YgAV3WGnA9CnAxzqH2V25NanTgDNlHILmmKYY8zDPDhB2J68dI8YSr zs191MgHtUX2seFY4SD2VmFeDP+4MGUmMVZ53q3B33LvF2AiRgCZ1Dmievg3tLcF3CJg jELA8mjaH3HSOmezu46T19li7UnkpSPRVvqw9j+wPulQKv+OOxTi+wIboJbBCxo+wqUl wKVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lK8jL5NOAToCdUCPhMJ7+pDNNZyGT6nu/eyQj6EXCN8=; b=uqxsY/8VQlYRiXpmkJAxrsQStSw+Xa0aYcSfxp08sKP8y6HSywq/GsacnCuqsgxAQp DZWUH5XcHrOzkBtRx4/tek2I9vZL66xF29uOGBW4M1jwBDfzboXiTwKWIACvol2p8+MB ILyJM+taHIy4Fxsgf+Zn87HslECjO4Z+mKIrg/54JOveUVnSXAwACUqRKP2LX7YpqOpa H3bBlK6gTkeoZ2mEbSokxK+vGDWwoJtECYt9C4ZNNNQx6t7w0kZQ1bYHs20jzJGhWEZ2 LApmqNoQflV6IYRCqYy4msbh06LvwKL54TGoiy8m4PXB5Cy9LwGZldE0HxfMqUjURUW0 laaw== 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 v20si3502022edb.416.2020.04.22.00.20.00; Wed, 22 Apr 2020 00:20: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; 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 S1726399AbgDVHSk (ORCPT + 99 others); Wed, 22 Apr 2020 03:18:40 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59522 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725786AbgDVHSk (ORCPT ); Wed, 22 Apr 2020 03:18:40 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id DA23056838887462EB84; Wed, 22 Apr 2020 15:18:37 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Wed, 22 Apr 2020 15:18:27 +0800 From: Jason Yan To: , CC: Jason Yan Subject: [PATCH] ima: return false in is_ima_appraise_enabled() Date: Wed, 22 Apr 2020 15:17:54 +0800 Message-ID: <20200422071754.48672-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: include/linux/ima.h:132:8-9: WARNING: return of 0/1 in function 'is_ima_appraise_enabled' with return type bool Signed-off-by: Jason Yan --- include/linux/ima.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/ima.h b/include/linux/ima.h index aefe758f4466..4cb28550fcbc 100644 --- a/include/linux/ima.h +++ b/include/linux/ima.h @@ -129,7 +129,7 @@ extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name); #else static inline bool is_ima_appraise_enabled(void) { - return 0; + return false; } static inline void ima_inode_post_setattr(struct dentry *dentry) -- 2.21.1