Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp32420rdb; Mon, 22 Jan 2024 10:59:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQTYWeIU/POfFNHbJWvyIrzNQIv2WH+ULurKREYVaG6G2TL3CW6dLP7kQfPALTI5qF+9G8 X-Received: by 2002:ac2:5f71:0:b0:50e:da91:2ae7 with SMTP id c17-20020ac25f71000000b0050eda912ae7mr1634598lfc.47.1705949942928; Mon, 22 Jan 2024 10:59:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705949942; cv=pass; d=google.com; s=arc-20160816; b=C4/G0l9VnKMcUApsVvdBLQn13fqz/I6k3v68eZNj/+PhYKtD23wgWKTjff73e/ZKsi YU80rA5AAQ0FsnlgVgd8xxnxDQhSk9DwLghbb1TCJOFhOnNKkSjVlor6Fxt8llAuJo+5 DtUFvVhpigZ8u6KYAAV1Likt6TI5QB6h00oMnEMwHm8eZKmwrVwVUChcK7gUW2aDciLi 1y33n28KimFieUY1kK1iCJBrGFBbvMkumTBbjFyv+neEze4FhPQd48oUiDQi7o31TA+h bIG1DDRAeKsInzuUPbyEAOn72tbnPfLMtu15U2KZX4pf5H//XK6Wt0DrOxMfb3e195kf psCA== 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:message-id:date:subject:to:from :dkim-signature; bh=Ux7M4l1/HhLrMQMcamgb6OJg5W0IDvJNoEXLL0n5XuA=; fh=X+EyhGLOnc20nszN9yx9kykhker0HdXxUgxJEqbBcDI=; b=Z++6lKsVRTdKW9ezNKE49KdCBeuAbGD42BXzwqzoyTQhLiL81RDPUD/pXESETyJ3Z/ NgPDWAEeZOhBHnEUx9h7aZlIQe/Fg9dKk/dTw9Z4supNPmw/Z2bXZkcR8hkJBOz0MKBB CAdL6wTFy2ZL7HVK62KzqDkTB90vYKLGbKTZnCX721mGZA/yBJrFhX5RRzaJcyOlL6h5 GoCNFj/BjmrKpsXJZ8jvMvpiYupvoY41qG+KMd6tOCQG2UskHHAgYzWAbw9vL6Fz0LCZ Ym3L1Ym/8R/ys8eEGan+a/O9873GrPAUuGZiTYp7mufWuYjxiG7O48vgDYgW1LCk3G9x lWDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gyGZrWbE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-1255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gs26-20020a170906f19a00b00a2af7e3f74bsi10243647ejb.172.2024.01.22.10.59.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gyGZrWbE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-1255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A3CDE1F2AA34 for ; Mon, 22 Jan 2024 18:59:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC34B41208; Mon, 22 Jan 2024 18:29:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gyGZrWbE" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 1451B3D96B for ; Mon, 22 Jan 2024 18:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705948181; cv=none; b=tNZTxBQUVOwGFE3SPEqrA2VVGOT+DGEEVyTWoWyELSokjEdRuG8pd025S4F3Sb9gvT9VpczndSpGAtuo7a+zVsfvLtGitdmg4iA+jOH07UzXFAkp8ODdEDIkuT0lAeQY8o0JjdM4CcNezGf2CTjEczZ74oU5liSJSIdUvDqOOTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705948181; c=relaxed/simple; bh=5nNN1eibhkZBGFYnzB2mH2GkLdsw5XnDnCFlo5XPUAQ=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mBo/hllU2wojhAm2aJMtdjIfjOzjMN0mFkPY5q5RgNJnPl4R2hsPgZgyXfp0hVwEyB+57Tb/tyEA9efWiJ9g4mMwB5XvOfGvEsnjj/2bQveLlKDTdvulVSkrL9xzMk6lak6ZyCuiWMSaemvohzAbyWtUmBHHKR6KwxoieZBlojk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gyGZrWbE; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705948178; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ux7M4l1/HhLrMQMcamgb6OJg5W0IDvJNoEXLL0n5XuA=; b=gyGZrWbE8MVZPQEqbyDmxi/AI4hkQTvQoG2b4RW5fpVSYQpk1SvLbbRerY6qPh6PjqwGeJ AjMWh2Y39Kb72ddIs5HzYXNxRlmvWIjpjRzqo3jcNVUKuECVXHT4qucBXzWR1rL4/ebiYI 3KgDTYR2lzeWgNlcZ5DFaaN8Fc9nruc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-471-8bPVzMYsNx2XmBJ5sK58FQ-1; Mon, 22 Jan 2024 13:29:13 -0500 X-MC-Unique: 8bPVzMYsNx2XmBJ5sK58FQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E7B3A845DF5 for ; Mon, 22 Jan 2024 18:29:09 +0000 (UTC) Received: from bighat.boston.devel.redhat.com (bighat.boston.devel.redhat.com [10.19.60.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id D51812166B33 for ; Mon, 22 Jan 2024 18:29:09 +0000 (UTC) From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH] reexport.c: Some Distros need the following include to avoid the following error Date: Mon, 22 Jan 2024 13:29:09 -0500 Message-ID: <20240122182909.97503-1-steved@redhat.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 reexport.c: In function ‘connect_fsid_service’: reexport.c:41:28: error: implicit declaration of function ‘offsetof’ [-Werror=implicit-function-declaration] 41 | addr_len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.sun_path); | ^~~~~~~~ reexport.c:19:1: note: ‘offsetof’ is defined in header ‘’; did you forget to ‘#include ’? 18 | #include "xlog.h" +++ |+#include 19 | reexport.c:41:37: error: expected expression before ‘struct’ 41 | addr_len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.sun_path); | ^~~~~~ cc1: some warnings being treated as errors Signed-off-by: Steve Dickson --- support/reexport/reexport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/support/reexport/reexport.c b/support/reexport/reexport.c index c7bff6a..1febf59 100644 --- a/support/reexport/reexport.c +++ b/support/reexport/reexport.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "nfsd_path.h" #include "conffile.h" -- 2.43.0