Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4248103E2E6 for ; Wed, 11 Mar 2026 20:56:11 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w0Qap-0003nf-PI; Wed, 11 Mar 2026 16:55:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w0Qao-0003kk-9m; Wed, 11 Mar 2026 16:55:46 -0400 Received: from isrv.corpit.ru ([212.248.84.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w0Qal-0008FH-Bf; Wed, 11 Mar 2026 16:55:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tls.msk.ru; s=202602; t=1773262468; bh=f6Nx+HWByGmnQmKv2UQgmEd4UeKnLT2KP2r/nzZ06NM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mDGLgadHZsf3KuyOl/VyviKs7TiWi7kLJtdR/xMDMFel41ViypF87XZT1CkqHupsW B4vYH1Nx1q2jNgAxrBKipUHB7QimlzT8vE5ugJJ8JQd4fonrM4Dj9ZRZlw38Hgmyze zSJpLFlN1H4EbiVcamTzCqVWmYme+7XpkIZHTImk9V9es2MHxIdTMhRMzJPR1Wd672 PIrHdBpJvQu8aHfMGvS9mFrmwMGu7sFfDxT1zBKaLnsBEplClPqlGlzEHgQeU7jEJz LbA5sV77Ygq4aZSUoCunhZ7rMxtByVYkkU4KfHp5/veSdM5jpF3i80JB5OxU3HLgHA tKsX0X1sR720Q== Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id F35661921F1; Wed, 11 Mar 2026 23:54:28 +0300 (MSK) Received: from think4mjt.tls.msk.ru (mjtthink.wg.tls.msk.ru [192.168.177.146]) by tsrv.corpit.ru (Postfix) with ESMTP id 5452D37C4D6; Wed, 11 Mar 2026 23:55:07 +0300 (MSK) From: Michael Tokarev To: qemu-devel@nongnu.org Cc: Michael Tokarev , qemu-trivial@nongnu.org Subject: [PATCH trivial v2 4/7] meson.build: stop checking for inotify_init() Date: Wed, 11 Mar 2026 23:54:52 +0300 Message-ID: <20260311205459.1101023-5-mjt@tls.msk.ru> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260311205459.1101023-1-mjt@tls.msk.ru> References: <20260311205459.1101023-1-mjt@tls.msk.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.248.84.144; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.819, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.903, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-trivial-bounces+qemu-trivial=archiver.kernel.org@nongnu.org Sender: qemu-trivial-bounces+qemu-trivial=archiver.kernel.org@nongnu.org the only place in qemu which used the check for inotify_init() was linux-user, which now assumes inotify_init() is always present. There's no need to check for this function anymore. Signed-off-by: Michael Tokarev --- meson.build | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 97af137f3f..bc60f71825 100644 --- a/meson.build +++ b/meson.build @@ -2675,15 +2675,12 @@ endif config_host_data.set('CONFIG_ASAN_IFACE_FIBER', have_asan_fiber) inotify = not_found -have_inotify_init = cc.has_header_symbol('sys/inotify.h', 'inotify_init') have_inotify_init1 = cc.has_header_symbol('sys/inotify.h', 'inotify_init1') -if (have_inotify_init or have_inotify_init1) and not cc.has_function('inotify_init1') +if have_inotify_init1 and not cc.has_function('inotify_init1') # FreeBSD 14 and older need libinotify-kqueue wrapper inotify = cc.find_library('inotify') - have_inotify_init = have_inotify_init and inotify.found() - have_inotify_init1 = have_inotify_init1 and inotify.found() + have_inotify_init1 = inotify.found() endif -config_host_data.set('CONFIG_INOTIFY', have_inotify_init) config_host_data.set('CONFIG_INOTIFY1', have_inotify_init1) # has_header_symbol -- 2.47.3