From patchwork Tue Mar 26 17:10:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 782628 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp1795563wrt; Tue, 26 Mar 2024 10:11:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWpFPsWlX2p2tv/+c1Xi5EwuQ2PQT6YaDKG1zn3VzmmDr4lGKnyxpM+J6Sc6dg1D/ThzRD3SzBCzcNAbNy9FCJH X-Google-Smtp-Source: AGHT+IHEXO/G/exC8wX95EBjxBK6X4N2Wb/j/P6vJ4T91hDZtEOrGARAHqw9MOgUq6jcJ8BjhMyZ X-Received: by 2002:a05:620a:389c:b0:78a:5ca8:22ca with SMTP id qp28-20020a05620a389c00b0078a5ca822camr1737498qkn.64.1711473069792; Tue, 26 Mar 2024 10:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711473069; cv=none; d=google.com; s=arc-20160816; b=p4abA6cIxjCQjrSxo7T78TbcRP5HxdMGZbyzYjqdN3NLHrRgc7R/v7OpAzjtKVf/vU 09pOI5PP9qE6MR5uVkz5OpWtqrH8Bae5owWzUal7XZ3zLr001s0d0loHtxOcau8ageUv n4arYnanEfBZeYVVTMdr2z5WnM4fH5GPRNpPxd/JCjpvfQ6fwui54okI8qLZUO66oZYX ++hrmNrDsrm6GQawptxSpD3LzcA1ZXndRCy4Z05r5EG2XCMcp1LRpLVLCfV0Bo6k0HHI 5afPsNTm/oeVKp3qXnCzPSXu/to75UhpD2UCoYJMZ3O4E/Z9X9tcJko1JFp9lBl6drXd MeDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+JsRv6ixpj5OYV0Cs5MSuqaN+IRou4fELCwe6Dlois4=; fh=vx8cK+Q50XzwjiGyTg1xbBAL/Bv3PSwdoYF35KwoQDc=; b=NPfKamW3G1q0OKPaMQ7bA9zG+14NDRHKozIl8U3z5nW+QHDv5T9+aPlFSt6U6RV8nS 1xGCu5POliTqeq4/2Iz7CvU9VjueLPXsCS0T8jf0iLL3fMwNBKrT5chKfUkvK6bCX1f1 zi6jsjh3TRzaRXjBiNyD8HKpArVC0GCyyk2YqnlRutpW+LTMEvLWqYFsUnspQYer9iAf pmokT31FaVj56QaELxxtz3MQu1Ov8hE5soR7ZOojVNsu9eehvwLz1L0kxSPDuoD++Rwc 1ExzZcG+5UXUpy4gs/aTmoihnDtWY/bx5uIU0ttF591fuN+cFXyaK7mtoloSxkzjUtpy vHUg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PmhqRV9i; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ye24-20020a05620a3b9800b00788578065f4si7837120qkn.753.2024.03.26.10.11.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2024 10:11:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PmhqRV9i; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpAJt-0006lS-Ud; Tue, 26 Mar 2024 13:10:41 -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 1rpAJq-0006je-WB for qemu-devel@nongnu.org; Tue, 26 Mar 2024 13:10:39 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpAJp-0006ux-DY for qemu-devel@nongnu.org; Tue, 26 Mar 2024 13:10:38 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-41491106419so2584705e9.2 for ; Tue, 26 Mar 2024 10:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711473035; x=1712077835; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+JsRv6ixpj5OYV0Cs5MSuqaN+IRou4fELCwe6Dlois4=; b=PmhqRV9iTChQlK3CQg7W4/7rf0YeJ1uNaRVswR9WmxZrxZ9IBKAe7rsgxuql0QApFk hrDw05B2d6rlYahxibPpzYYFmsNsE+hSgm/qguLtnB6WC5XTlDCfq5B8xV8xHrf9nhmU ymop0N/gjBr1YwBqs5oi/bqHG8zaZsBtANztpgWBKd0raiiLZ9B8ZVgt1NlCHRCVPbum 0UNpxPgmrIEbTSiwdtyyAS98z0toHJo9pJgyXav28n7usQXAGxzy2jzpFyseQAaHTUf9 sVvt0s4TOAdy2b9J73bVS/KhiW9ICwO002OaddUYQwlOn9vcAQ90gYLrFx7grn0wGUsE 7vmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711473035; x=1712077835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+JsRv6ixpj5OYV0Cs5MSuqaN+IRou4fELCwe6Dlois4=; b=YLaDnhrfL7Py4hP/HpKHa8mzO3GXueyG0fLJtM0QhVUdQx3J10SaVgtKNBuyn8cf29 W+BuAf2zHEGfYlOiZU1SLF6vqqlcXw8QKF7F8GdU/FptcQD4k1otKG76hUjw0F3geTO/ jTxy+xrwQWc/vn7LcTeC8a3VyTjpAgzbIvJdF+TetlWxFQ8SWugZsthLDZf5G8Y+XVA8 H92yuBOAv1blFvEv5zCGljaJCdQg4OG/QsN3jFER2tJxuUKy8s7MuFXxdvCS1baOg3/2 12n7JxZiwFWostTRBpJ6THKsbXbgXczhUUTM1Aw5/+1NtZImyYNaJdD3aDH8w7olVP2z 4v5Q== X-Gm-Message-State: AOJu0Yxle9JqUcHuMNhtKlxyx7f2cAMoVT+B3wvXrSh6GaAg5vxsSaXk gOGH4RrIyoZHR2b6Gx2sw/BgWSu75wfEHFn1AlGL6+rDWWvhOTOnBY1zf/hZFhwJzqNswO4G6At v X-Received: by 2002:a05:600c:3508:b0:414:8c26:4213 with SMTP id h8-20020a05600c350800b004148c264213mr3598054wmq.13.1711473035469; Tue, 26 Mar 2024 10:10:35 -0700 (PDT) Received: from m1x-phil.lan ([176.176.155.229]) by smtp.gmail.com with ESMTPSA id q20-20020a05600c46d400b004132ae838absm12139352wmo.43.2024.03.26.10.10.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 26 Mar 2024 10:10:35 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Paolo Bonzini , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= Subject: [PATCH-for-9.0? v2 4/4] meson: Enable -Wstatic-in-inline Date: Tue, 26 Mar 2024 18:10:09 +0100 Message-ID: <20240326171009.26696-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240326171009.26696-1-philmd@linaro.org> References: <20240326171009.26696-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@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-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Compilers are clever enough to inline code when necessary. The only case we accept an inline function is static in header (we use C, not C++). Add the -Wstatic-in-inline CPPFLAG to prevent public and inline function to be added in the code base. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20240313184954.42513-5-philmd@linaro.org> Reviewed-by: Thomas Huth --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index c9c3217ba4..f400f7d36c 100644 --- a/meson.build +++ b/meson.build @@ -591,6 +591,7 @@ warn_flags = [ '-Wold-style-definition', '-Wredundant-decls', '-Wshadow=local', + '-Wstatic-in-inline', '-Wstrict-prototypes', '-Wtype-limits', '-Wundef',