Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2294630lqt; Mon, 22 Apr 2024 07:07:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7hbejmQzJz73vnWu2shJSqQFCo4OmkgXNdoLqpS8EtMMfelHG+w8QLn83ODh2/NTuuGR/e7e+h5CA5GVJps5wy1Sh2pkbAPAE9iuTRw== X-Google-Smtp-Source: AGHT+IEyZsV/1i9Q4qlmo9sSrZXxPlj/dUe89DyN4maQFbL026mSGpGKxwaHKD9FQ2JB+1zyNdjn X-Received: by 2002:a17:902:d510:b0:1dd:bf6a:2b97 with SMTP id b16-20020a170902d51000b001ddbf6a2b97mr11979341plg.60.1713794849914; Mon, 22 Apr 2024 07:07:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713794849; cv=pass; d=google.com; s=arc-20160816; b=r/QFVlKFFq4/LhSlFv65ev0RogJSEOPpWsYsriqUVTB1g1xAHLNQUQ0ZjADlA5G72O Ihss2xDhHI6iSirIA6kGGEpdocDTxiEKyVAeqjgSyKIaH443ydpjBOR3kpp/F6Ih9Ir4 FkTt5FcdXrBkW02Q5Dyui8TGlNakIwOrJxDwWssYgA2+Y+wpf+Y1JTHTpmP3l172cng6 ZSlm0Z7Qhb/qKuJilIzVLy/n4FmpsKNVzcWprAKvs4exvvl76V4uwn5UvoihFfTRVu+G x/sRu6tBaylhCiIqh+C97D1odQhXFMwPwT9LZQ8+PNpaRvOsA1TgfdfpwzA4tAGwwSdU CQSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=gcce6fz8hivgFnpIOzkXceVK8Nq9zrGkgjepgOS7Xmw=; fh=NmcTkkw56Pu7YU9gAXLxqFSEjPi2bxLh8xjcgSQNd1A=; b=hYDytrj41gCiiJgNrD8+O+ntlHW31gAAHn2LntjtkuOgICKHpyb8rt+xfLPXUci1+5 R2apk8oT+L4dbipoIaW5i6Iluyt54s9zoKmMZKW5tPYxChIzYLMkIFbOFgNQQbDQIpEL VJjZZJ4tm7lEunEWAMRnwvvfgOlBFTBu+25nmQaUOVzE/XGiVPslD26H78DZyxwJUxss cw5fM8ZzkNEaPymFuiWOZKgNuudGxvBk30bhdmLqQe3yRtry1MXQBH8qv4jXivlv5c6l 88h19qbG/NGkN4A4lu9p9EhILPgJdQ+WfKvXVgCbH/83+28fUnAivaGy/2HBkPTot7Ta Ezww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QDXBjjql; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-153489-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153489-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n8-20020a170902d2c800b001e3c4b41b50si8146475plc.217.2024.04.22.07.07.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 07:07:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153489-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QDXBjjql; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-153489-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153489-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 900A8B20EAC for ; Mon, 22 Apr 2024 13:49:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14337150982; Mon, 22 Apr 2024 13:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="QDXBjjql" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B001A14F9FF; Mon, 22 Apr 2024 13:49:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713793748; cv=none; b=WgCIf1UVdeTbPxatxpYnyj1FBMFEql2LkNCvY6caVs3VhXoZrwqMCgL/S9kiXP/xsZohOHdcTL7y/YtBS2OEXtx93cbYXMzEPrmpK/htD2HyQdMs9r2D8MxlBst+B8kzGHCROnfaEkrlsuDC7AL2v+aZYUWxjQLVNvULs+GyO6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713793748; c=relaxed/simple; bh=TquHs7URRWUMNqGjefXsApBJcgMXy4dLpEqb8Yor0AE=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=oW2SWGEyB4T4miVoDTgE9Wep3u/4Nq/NbqxdJOyzHiCgRpOcDCoparTMoPbEr2o1dRSTFhq+w2majLPVBJrPkMPr3OiqHj0AW1fBD28qO+rnVT62HeButkc3qw+gHFo67bVfdQNTgTbBMLi0eb3GRkvi1ySXnPQ0jQstKaFxKvs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=QDXBjjql; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713793744; bh=TquHs7URRWUMNqGjefXsApBJcgMXy4dLpEqb8Yor0AE=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=QDXBjjqlWcEdRmYHyX7ArYRnBRD84bIGhiYEgGTkG5yGUyA9nFKMtJ6tZXmgNQpb8 d3/nQRbHbjUAdgsyzQavpNbo/DJfNBy45op8+GQVBHqJ5B64IqkknqfPa87uQbfc74 0ChWRGVmdT2t99Am2+7crmKDfeeReWvEYCrgdAmNDg8PALspUw5wPYqqe0wQ/SslnS YpsFE7OpDLXJmB2Jhzuu3FxHCdNlD5KhMhujvVkSuxpCkqIRizeYhQBewwOLNbttS8 8wO+PGfcUFL6TxweuwmLCuq5bXvpXhQQ+RZxBS4hAVJxeFHdcjtB1MKRyof75Ll8Tu 3R1t7jTALkxtg== Received: from [10.193.1.1] (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 3D69237820E2; Mon, 22 Apr 2024 13:49:01 +0000 (UTC) Message-ID: <9cba6633-b1dc-4cde-b326-609855c6418a@collabora.com> Date: Mon, 22 Apr 2024 18:49:30 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , Javier Carrasco Subject: Re: [PATCH v2] selftests: filesystems: add missing stddef header To: Amer Al Shanawany , Shuah Khan , Christian Brauner , Miklos Szeredi , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240422131659.30222-1-amer.shanawany@gmail.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <20240422131659.30222-1-amer.shanawany@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 4/22/24 6:16 PM, Amer Al Shanawany wrote: > fix compiler warning and errors when compiling statmount test. > > gcc 12.3 (Ubuntu 12.3.0-1ubuntu1~22.04) > > statmount_test.c:572:24: warning: implicit declaration of function > ‘offsetof’ [-Wimplicit-function-declaration] > 572 | #define str_off(memb) (offsetof(struct statmount, memb) / > sizeof(uint32_t)) > | ^~~~~~~~ > statmount_test.c:598:51: note: in expansion of macro ‘str_off’ > 598 | test_statmount_string(STATMOUNT_MNT_ROOT, > str_off(mnt_root), "mount root"); > | > ^~~~~~~ > statmount_test.c:18:1: note: ‘offsetof’ is defined in header > ‘’; did you forget to ‘#include ’? > 17 | #include "../../kselftest.h" > +++ |+#include > > Signed-off-by: Amer Al Shanawany You missed the reviewed-by tag from previous iteration. Putting it here again: Reviewed-by: Muhammad Usama Anjum > --- > V1 -> V2 added compiler warning in the patch message > > tools/testing/selftests/filesystems/statmount/statmount_test.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/filesystems/statmount/statmount_test.c b/tools/testing/selftests/filesystems/statmount/statmount_test.c > index 3eafd7da58e2..e6d7c4f1c85b 100644 > --- a/tools/testing/selftests/filesystems/statmount/statmount_test.c > +++ b/tools/testing/selftests/filesystems/statmount/statmount_test.c > @@ -3,6 +3,7 @@ > #define _GNU_SOURCE > > #include > +#include > #include > #include > #include -- BR, Muhammad Usama Anjum