Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2041764lqt; Sun, 21 Apr 2024 22:17:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgRCD3brR+U6DkSO8q52fCQKulty04QrDXZCuAE472P6SoNVoMBds2Qcf0gtuUKDCCS6d4pDw6nhARiZ60hGvv1Eg2vYJoGt1Sj0tWRg== X-Google-Smtp-Source: AGHT+IFXdUfBAlg4aMIq/GuMJG9Yyph/xcxX7Iaq4n6zgDEYQqIhvYXn3X+clEJwq2j3RCwsNOe5 X-Received: by 2002:a0c:da10:0:b0:69f:ebc3:7d0d with SMTP id x16-20020a0cda10000000b0069febc37d0dmr9693842qvj.60.1713763039326; Sun, 21 Apr 2024 22:17:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713763039; cv=pass; d=google.com; s=arc-20160816; b=mSzc1irUc08+To3RzBWbPA2WtEt3UEA74ywjoaxAYW66eU3NXaRQRIjn8JfnLDyXeG gMvfOfrNWcw9ofWgknfhymGIECDhS/Xwa/n7rsuNNjbT2H6Ezr8ycsmbeyNJYEqhx9Lg XbwJyLQacvQKv/R1w22CDKsd5jrHbanDEfY2JwvVytPBUvg0EXog1e8EkWBrWvHpQ2mZ WxJSQKcgSwlSATvKhWFKMr924GWOiY/jivq4oPRigZLSTIuY47isJ6cjCotCnUdnv9Dc iayStN/WhA4z51cJV9/wJt6Al8CST4XbyklgrCMc0LT8ow+fvHYsz4aslaMR8qTR/U1p OnuQ== 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=MGJ+FVS24A+ZTOlqmAfYgWfZqUCTUYplBN40XXiY6QY=; fh=NmcTkkw56Pu7YU9gAXLxqFSEjPi2bxLh8xjcgSQNd1A=; b=PUE9VVCMAnb7WyRvlGqNbJyeZVvbQx86m/FZtP1Q3ePRste4mYWTVXW9cppQGgD7cT 0qi/Sl0SPxzpHtSkRAvS6oERj/8eh/M2isgDc3o40xdeLViPG6apbBfsbzNTaz0Fry9q wqUZffKhd6nh13WkZMZW5yy+F0BCz9dd3FH5QMSBhE21UF7WAs0/uigl1jwAYUUHxPzI g7HqJ3kSUguopwRJP+RZJVlVzaT7xYuDUDo7OquRqc70D/oLPQikb4Vm+xJ+k87GCnJF fu79Y2ZrQ2xqjpLVDkS4ANS2FGHxqXWlMGPeotPo2Cwk3MpAJl1buIlfcPqXV4NXsc+8 I1Og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WhZC8iu6; 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-152733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152733-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t15-20020ad45bcf000000b006992073ffd4si9684252qvt.507.2024.04.21.22.17.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 22:17:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WhZC8iu6; 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-152733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152733-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5954A1C2119A for ; Mon, 22 Apr 2024 05:17:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70F8A17BD6; Mon, 22 Apr 2024 05:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="WhZC8iu6" 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 06B69205E0A; Mon, 22 Apr 2024 05:17:02 +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=1713763024; cv=none; b=PjG1sC4F8Wux658bH7KgCEAjSv7w0OzTGXWcdGwX27IwGFjnVBtB2/u4I8v5VT5lvq30xDSQEMZaDwkzKzwGWWciwE+vnH2em64McEEQhFEH6D18f87TTDr1LIttrtz+cY3rASCsVhfEhUEIRLuv3v5IidlRkVngt+KEs4JLCVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713763024; c=relaxed/simple; bh=cMnh/49jfk+grS2ysmLN5qIDOGt2bFENRAA1wJUhvec=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=XUTgOMevlV7Zyzfwx6xtWrvQ38q9Xeh/Zi01xKwZgYOECdXl3kzxCZfrwT5xafMKuJZb1ezyp74VPJGEaff3YaYUzMCjwCtX1zSiGFW7rn2pSluuI//dLcPWpSgOECuBStHchpDccT5yfh1HNyoMIk3NYOa2+SLZgWYLAu6zFCM= 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=WhZC8iu6; 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=1713763017; bh=cMnh/49jfk+grS2ysmLN5qIDOGt2bFENRAA1wJUhvec=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=WhZC8iu68naeieHYPANQJZStUlF9dVMoUoTC5m4roTObCcoh8nouY9n+lhSosoq9I 4D6CanpImnxkTg5tqGQ0ROnqNd05O17ek1lBN8KgdDLr1N9nBkvHuPpRizm0LS+qn/ PcxykAV6YmdvknefaMiUmpHuhlU7XbOvkQu+DIdwNlj88sKjmbt0zO7agh4HUAKN6O on+0y6cIUcMtlApAAIZ24pmKrFQytmsqicRSGxga3HQ/TXqzy0n9kGklWPVGA0qS9g fb3G/bum1EPIr3Ur34PLe32JrnRL0ZYsquDRFR8EznmH+NsQml3WhqtRcM5tqvdr72 o06N/hhSbIbpg== 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 0C28A378202D; Mon, 22 Apr 2024 05:16:43 +0000 (UTC) Message-ID: Date: Mon, 22 Apr 2024 10:17:13 +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] 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: <20240417161623.37166-1-amer.shanawany@gmail.com> <4b66cfb8-5d42-4432-b930-e23482a48dc6@collabora.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 4/20/24 8:56 PM, Amer Al Shanawany wrote: > On 4/19/24 18:45, Muhammad Usama Anjum wrote: >> On 4/17/24 9:16 PM, Amer Al Shanawany wrote: >>> fix compiler warning and errors when compiling statmount test. Following can be added to the description: 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 18 | >> The error description or the compiler with version is required to reproduce >> the error easily. I'm unable to reproduce the error by gcc 12 and clang 17. > I'm using gcc 12.3 (Ubuntu 12.3.0-1ubuntu1~22.04), for the error please see the attached log file (statmount.txt) > I was wondering if it's worth adding this include to kselftest.h >>> >>> Signed-off-by: Amer Al Shanawany Reviewed-by: Muhammad Usama Anjum >>> --- >>> 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 >> > > Thanks > > Amer -- BR, Muhammad Usama Anjum