From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=gYv6AR3M; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id 7F39B5A004C for ; Fri, 08 Nov 2024 10:27:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731058036; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xZJUAnu1mRuRNY8/FNSWIwghfNcw5YZrWNnqncvmApQ=; b=gYv6AR3MHdb9Nboe1MQCNGlHKbK++tFXOKx3QZ3557jbYR8z+rmvtAV06eI6iD3uFKXQA7 W+g7/wAU/HDeecFy8VZqtsZd5b2CDCtXfZUyr27GYtKUBSJwsd11JYTMNqlAx8Iq/tmcro AqClPRuRfuSBM/AsbxxJwf5JxLNsuWk= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-121-zt26UR-3Pba-dTY1EvzT5A-1; Fri, 08 Nov 2024 04:27:14 -0500 X-MC-Unique: zt26UR-3Pba-dTY1EvzT5A-1 X-Mimecast-MFC-AGG-ID: zt26UR-3Pba-dTY1EvzT5A Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4315c1b5befso12724705e9.1 for ; Fri, 08 Nov 2024 01:27:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731058034; x=1731662834; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xZJUAnu1mRuRNY8/FNSWIwghfNcw5YZrWNnqncvmApQ=; b=lMRDQ3XHwFMygyer2L2zT/zD21cJex9oE2gRugxNc1awYorSpKSDzrB37NcG4GCZ1+ iaG0ny2rZ0yO95SjOD3BW76Bcr7GkzhlU3HQqy3LHc4Dm4+nzWf9bPbb71RIBNgvXdhh Dl5Pa7Wm/Psf8LOAmSO0CdPMLnkfup9/SSDyDaZ2/24//HbqmE1WZ7oERSBnFaDsWF8g wS6Eg1QNgbH592mNu+ollw5W75gRJ8+R1SiMxNEMiGJzjZf/PHPztVkEFUyG46I/TCqV xczfReKRVSD5VdOAYMNionGMI4qNlrc7uGIqd7QUtK+O/BiPRvgtJ+bxR0z6skm5k3ex h9Bw== X-Gm-Message-State: AOJu0YzoXhNYtmBgmx3Zh8CxlruZDYv4D5DrfqgN7pwh6T4LfXyR3NvR KcgfDXH5IULsxBR52FdMDnxCoy4fOh0ks8eZC2WKVrwY/+tuMkJNn0pBD39jFVxabdadsNcnySz 47GTTLUkoexbGLoa/URD/PYLSFD9NBeTcjwqoeDbMWpgtZbTdMQ== X-Received: by 2002:a05:600c:3c8f:b0:431:4e25:fe42 with SMTP id 5b1f17b1804b1-432b751e28fmr13798285e9.32.1731058033709; Fri, 08 Nov 2024 01:27:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdDgicwOLWdHKSOhS/YDpdaZr4OyEl2c/iN/bJj7NNexRfXEn9Qlay27jjPfrzJKwp0VomHQ== X-Received: by 2002:a05:600c:3c8f:b0:431:4e25:fe42 with SMTP id 5b1f17b1804b1-432b751e28fmr13798185e9.32.1731058033321; Fri, 08 Nov 2024 01:27:13 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432b0561e88sm57483435e9.19.2024.11.08.01.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 01:27:12 -0800 (PST) Date: Fri, 8 Nov 2024 10:27:10 +0100 From: Stefano Brivio To: David Gibson Subject: Re: [PATCH v2 0/4] Avoid running cppcheck on system headers Message-ID: <20241108102710.76cd1f03@elisabeth> In-Reply-To: <20241108025330.3161314-1-david@gibson.dropbear.id.au> References: <20241108025330.3161314-1-david@gibson.dropbear.id.au> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: XwT1cE23d8jSopj5t7Trusi-D4Ra-K6DLQ46RPH7THE_1731058034 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: AUSTGBXBBQDONU45AQZ2MYMOFTGPXFDF X-Message-ID-Hash: AUSTGBXBBQDONU45AQZ2MYMOFTGPXFDF X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Fri, 8 Nov 2024 13:53:26 +1100 David Gibson wrote: > It turns out cppcheck has inbuilt knowledge of the C library, and > isn't typically given the system headers. Avoiding doing so reduces > the runtime to less than half of what it currently is. > > For non-obvious reasons, this change also exposes some new warnings. > Some are real, one is a cppcheck bug. Fix and/or workaround these > then make the change to the cppcheck options. > > This is based on my earlier series with clangd configuration and > fixes. Applied. -- Stefano