Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2260348lqt; Mon, 22 Apr 2024 06:17:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOFyxHKXrG5ZWegG/+tGa64TQX1AoDKvoXOj1s2z4JY3GpJcp9ml4m7BRzaRkRUUM/iAMHg/uzUsABpIweVzYbzO+MAWnJ/C5gWPpfrQ== X-Google-Smtp-Source: AGHT+IH/eTFKZQI5mQwcJGKBESzDeaBGxvg3ioauNi6gqZEP0V/NwacMemYViG9IqMixbwxTb3wR X-Received: by 2002:a05:620a:3b84:b0:78e:d152:8cc4 with SMTP id ye4-20020a05620a3b8400b0078ed1528cc4mr11576312qkn.26.1713791833482; Mon, 22 Apr 2024 06:17:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713791833; cv=pass; d=google.com; s=arc-20160816; b=RHpwcvG1dg+v0xYvqkYWYkXAwj/rgFtvHePtnb9i0ns8SGlK72erTyoYlIjFtzbYaZ 05wE/fq4b2/CmPaYoPgBQB/utPyixBtzmPBd9IzhT7oZnl/sBhPB3J+4e4BP9Qn56lRq L8fZOPD+d8BOPvkY7gvXcGaPp5VF1B0U9YWYscAH0WpWus8krAWJwC15PRxb7aRmlcjr xxb4Qf2FqWjPfaUXIFx/sv7hCjXQCNOY8UVWPBDbUnDSk1TQ6LJJHJ4Zf9ytyjZn28AG pIQR0SzWsHNaouOeTadPUrumPFCD/g55ZUuQZ8KNslCWbShbY7ElAy5Hh3V6f6pxhHpB +g0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rC5Q3TsmbK89CYxlmTZK9bHoQvR58XmOMQv8g8W4/aI=; fh=3F/35Xunld+DuW9/pvF8WyJy9bmppxlqRsrSW0zjqUg=; b=RfaB4rbB8F5g7IjJJ0SgDAQkQ5anRzKZv7rchSbz6bBieEUd63VeO5GHnoNKrNK8sC gRRJRhFks/o/cMa7shtNJrFqvzt6qIzKn447zkEdcuW6+Ci4XRefJAKTCpy2EJ4a8hnT ky2sCmxTCmINVTkKG9pbkvILiz5JYY9G5xE9LcIWdZAs3OQ0yy/gvFn8kPKnxLuAq7g2 5Q0Xaly3EaDboluYkIVdFjBEoT3mQZ4PdeXs6Mz/jrXQ+xZ/YNtESiqq2aMlntmUsBdj Tt9zecMpeTpX5pF2/5tWhCzcevlNB2zV+aQMKIDRbeN7NOc1d5uTe2Z9LA/yMFjbhcps FlPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NN2NYGgW; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 vw13-20020a05620a564d00b00790681efeb8si4564924qkn.55.2024.04.22.06.17.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 06:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153427-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=@gmail.com header.s=20230601 header.b=NN2NYGgW; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 171AF1C21348 for ; Mon, 22 Apr 2024 13:17:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 497E314F137; Mon, 22 Apr 2024 13:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NN2NYGgW" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E49E714A4E5; Mon, 22 Apr 2024 13:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713791826; cv=none; b=f1J0ZtfmIwfURHx6V0YCMDp7Lsi00qlyFDqT7kSIAMnU2q9g/OOAcHvxmCnkkrcIUfSoiS3XGV0RFYdxXwaeJGgmag9fTTQk7PKqts83ldLvnyOeKy+W/0qGhf+o3etKBMgM+4MCqgk3Zi9d3V22pY/1PgVteaPqnOzasr4cvXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713791826; c=relaxed/simple; bh=bIu3jv7wbFitFgCSSAIH5zSJzALudmrLAp7H2HUq9VE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=kh9DAJ9SDHYg03S2DO7rUHugJcF19HDSxnMjkT4KE4rZw7PSnutThAm5GZZL278a/9JY+iKvwXDDDWImrM93rrvZAdLBbbqoaeylJKGfs+hCS5j32il4+/UbWgK3mSCCUCOz6BoGscv3znDU++lB3PXU+yD51f+nNleKZ94acmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NN2NYGgW; arc=none smtp.client-ip=209.85.208.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2db17e8767cso58122391fa.3; Mon, 22 Apr 2024 06:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713791822; x=1714396622; darn=vger.kernel.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=rC5Q3TsmbK89CYxlmTZK9bHoQvR58XmOMQv8g8W4/aI=; b=NN2NYGgWCHO6Xsi5Z65W6qo19ybkXMWKpRpbeM8X72xK+RD4lfuHoz5T0C6EKROoDK Y5C3UbE5+c5y9tvkKR5+NlkgNlfzXVRI+Wd3oncLAgm4VHQ2+0Q0SUhQ0eorvDMIQLcn SfBKNj9qO25bXP5TPVXliyE8HXB0QMZ4ytcH9jxnjFE0QWZ2aDTClmeheIV4LZ3SYOmW bTZUNlsr93kxxG3kC4u1nKjmWdKlIjRsVl7PJ4fww1qGYGBhMLEOtT/M53voPXy+4ZXr XOxMU2JDOvH7gRYH9xta0BYje2qC75duhIweJotfxIivjQXFGNCx54jM8OrJGSqLvhCt mSkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713791822; x=1714396622; 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=rC5Q3TsmbK89CYxlmTZK9bHoQvR58XmOMQv8g8W4/aI=; b=v9TvxqvkbU5u6xIJCHXI23n1Y9IAp/jSiHix42pYjinnLiuy4Fmu14wdhPOiFLrzkh MKneazBaAErg95moq6jhI72SjOuW6/xdtKEZz/JsxKxQZCLnV1jMEpARyZURFHMGAPVL H3tNJhDz8+p4w2N9U4U6m1gfT4vdotcdUn37niVLWGoeysNt6kvdBxm3VjdcZFnrJhFK mL11V4YOtfIdzJ1fg1695Xv3KfFDkJphPMMt3hB/GNbjVISCQ1jnZirCInID4us/MBpu uGwBqRAukGI81sBck+cLx7/x19NaVRV9zEOmHNbP/tCDt1Zl4Fv+CDizOxObJ2XAlH+D Sj1Q== X-Forwarded-Encrypted: i=1; AJvYcCVpmwSoQN41iu8Zx3l0KgWLdc1rs1XV4WnpOb0s2RZ/9ftKks8eVNtNK7glhtsU2p6HIC5YumcVq3UFZmsX35r9wuYauBp3lcgKfj0ZmBTj+OGoIGYJ1MKOMGoL4XmqiShQPiSFxhQD0U+p2RFr X-Gm-Message-State: AOJu0YxXm1pgv1StFMhNJA5/0FwxgLpmVnG57k+dziuGQc2VAl0rOPK7 uLpgf1wIonnhzavmsJULdPFwmyDrg+sIsYx450NNpZZqu9Rieb8s X-Received: by 2002:a2e:9384:0:b0:2db:348f:5c33 with SMTP id g4-20020a2e9384000000b002db348f5c33mr5485742ljh.16.1713791821576; Mon, 22 Apr 2024 06:17:01 -0700 (PDT) Received: from localhost ([185.204.1.218]) by smtp.gmail.com with ESMTPSA id w2-20020a05651c102200b002dcb67e5716sm1273768ljm.22.2024.04.22.06.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 06:17:01 -0700 (PDT) From: Amer Al Shanawany To: Muhammad Usama Anjum , Shuah Khan , Christian Brauner , Miklos Szeredi , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Javier Carrasco Subject: [PATCH v2] selftests: filesystems: add missing stddef header Date: Mon, 22 Apr 2024 15:16:59 +0200 Message-Id: <20240422131659.30222-1-amer.shanawany@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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 -- 2.34.1