Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10753046rwp; Fri, 21 Jul 2023 04:35:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlELOjKCc7hPcfUXtMLxmzRJI2Z2pGUIGnfVs7RsW2g1J1ucr7htAr76oEaWNi3oOIHg/rzt X-Received: by 2002:a17:903:22c2:b0:1ae:6947:e63b with SMTP id y2-20020a17090322c200b001ae6947e63bmr2812561plg.16.1689939335576; Fri, 21 Jul 2023 04:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689939335; cv=none; d=google.com; s=arc-20160816; b=B/4ov0HCL3cObD3e3m2NczDNlZg6UKZz/k7uIgIoiJcCwobN8NNpEFE6if01rkBQO6 VgIU3H+2/45FS/pw6v5Qp4nS8u4Kdtjoj7Nfv3o2+hlE+N7MTyVNspG77DGkh/laQnnh QL3LrlprVanJVKEo4WDbLfprAxK8oVMhGbAL8gdbyLmjfk2H0x8llISuUhypBYc561D1 qs2d2z+UMpi3qIf8SeErOkKi1bbWvSJPDsTv7tzp+WKmDwKRcxKkPP3E7NbZbOZj/cYZ yF27XNA8cMrEhZEgRqzdPnaBOu9pXvf0XrklCaS2CWV6iLZCOrcVJiGIZYefAmJc/ruz cDQw== 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 :message-id:date:subject:cc:to:from; bh=KBfm02OnscRtJNX/8vF+OQnL/wmuxj/9oV3T2F1tjHQ=; fh=XWfcfcroRSZieowWqIIHavkrtv5VeGEqe210//Xen5U=; b=CPiA6eiJCHh1JAaLyDb7GkVG+nqXGhUnFvhKk4wJtBlbVEnc5RvAPc5LwjHhsSAUAU uNQ78CzGaM6SaSajrLuamTeeZWzqmLWIvFzwfkJRTEDll4+JYp8YmTeXpopM51dKjncE No+kIK7Q8TyuUJZbBdm1NqVXR8zXLE8gno//OnlMxsf93v9066TZd6l4tTEW9PU64sQg ptGYSb8loQd8Tsiwa5Aj/7cUjOlpO+Ou80ZTxfOPy03UG64O8N9knn+UDd7c72+mmsaw 6iLbHRWh0RpSjykRYDfut3615h65kjq9mI4aNBCCwkrMDlgEamKoj5vcI4065IZ8rrTE HnIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a17090301cd00b001b69de1eae1si3039420plh.620.2023.07.21.04.35.15; Fri, 21 Jul 2023 04:35:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230038AbjGULWY (ORCPT + 99 others); Fri, 21 Jul 2023 07:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbjGULWW (ORCPT ); Fri, 21 Jul 2023 07:22:22 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09752198D; Fri, 21 Jul 2023 04:22:20 -0700 (PDT) Received: from dggpeml100024.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R6nDL6hbYzVjlR; Fri, 21 Jul 2023 19:20:50 +0800 (CST) Received: from hulk-vt.huawei.com (10.67.174.26) by dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 21 Jul 2023 19:22:17 +0800 From: Xiu Jianfeng To: , CC: , Subject: [PATCH -next] audit: correct audit_filter_inodes() definition Date: Fri, 21 Jul 2023 11:21:01 +0000 Message-ID: <20230721112101.176222-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.26] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml100024.china.huawei.com (7.185.36.115) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After changes in commit 0590b9335a1c ("fixing audit rule ordering mess, part 1"), audit_filter_inodes() returns void, so if CONFIG_AUDITSYSCALL not defined, it should be do {} while(0). Signed-off-by: Xiu Jianfeng --- kernel/audit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/audit.h b/kernel/audit.h index 94738bce40b2..a60d2840559e 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -334,7 +334,7 @@ static inline int audit_signal_info_syscall(struct task_struct *t) return 0; } -#define audit_filter_inodes(t, c) AUDIT_STATE_DISABLED +#define audit_filter_inodes(t, c) do { } while (0) #endif /* CONFIG_AUDITSYSCALL */ extern char *audit_unpack_string(void **bufp, size_t *remain, size_t len); -- 2.34.1