Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1456992pxb; Fri, 27 Aug 2021 09:14:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdyKJfQm/0aPcwxVvez1WOThtchwDhoIEn18+ta+doQz3L9Mz8zmRf9h5L5iFOpBVmwfno X-Received: by 2002:aa7:cfd2:: with SMTP id r18mr7935176edy.82.1630080883216; Fri, 27 Aug 2021 09:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630080883; cv=none; d=google.com; s=arc-20160816; b=mYiMBJr7BsM7UIQklWXcc6ZmriWUyn5G699xkNpEZUcbORZkc7oFTSepug3ffVmXZ2 TTlz/o18CyyUGKbKmxWYctWvRcQ0l4JCSrmbsUnegumiKgBhOEack/k/FgbWhVEJnhR0 gvdWDyFoO9ubKc5Xed39q5d+GypjnoDNCMAFFaFpnlQVRNlmdPs1A9nxOBOc0qOt7+wy onnqR1kjtPpowtVUK8aGWEv+uvT42j0d6i2Cg15r1o05D03z40UrKbFCsf6sak700Nli lFll3i5bqMhj34vQvUWWUFMx3CPfGJPB8bBlQ3WQO1DovjrnjJSIhDMdznPzAFuM5Zx9 ZT2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=BqiwzVhva+csPjSDEsGqCA8sq/nNxY2PFZRQPK70VtU=; b=KueZGgbIItyob5Sevsx1GQDl8h0WBPrxRD27v/i05cCl1UXTN1caXlPXkJk+RgXy2A nxzZcO0jw08oyesKeMNqyA/ofzf3XAfbXtb8+a9gYIPQn1axKPrX0j5Vi5cuLd/Nfog7 TCvy05/Z1Z3PyI28Ft+nykouAOlK7IsZ0FSVm3Ij65KjFBSioDKhHtqHCJMycDY21cu6 Q7mqs8kGkW2UU2YGcwJUV5wLBV3mhAeDyaFeBOT5+ZpGYvYsQnmGqmhdAyxU6QXk6Mn6 xHpDtgaci16KWp1am4Q8ST99RKvmMQhSNAELOgMCtLss4eVEIVsTOFrxL3PbVPyv1BZY xxmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=Uo1cnJAy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd6si6431230ejb.340.2021.08.27.09.14.12; Fri, 27 Aug 2021 09:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=Uo1cnJAy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245523AbhH0QKp (ORCPT + 99 others); Fri, 27 Aug 2021 12:10:45 -0400 Received: from relayfre-01.paragon-software.com ([176.12.100.13]:36974 "EHLO relayfre-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245348AbhH0QKo (ORCPT ); Fri, 27 Aug 2021 12:10:44 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayfre-01.paragon-software.com (Postfix) with ESMTPS id 897FF1D45; Fri, 27 Aug 2021 19:09:54 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1630080594; bh=BqiwzVhva+csPjSDEsGqCA8sq/nNxY2PFZRQPK70VtU=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=Uo1cnJAycJAsDIrY1jAgvEiC6dQsXrfxkdbB8p7fIdQdJUAbVu0HFikQyAfmQRiTo j8Vd2HDcLgvVGLnEFQCSPUF7yvKREeBfNxp4JgwKrke5vlH7PJO1cjWieUnhTfvsoJ 1ZiXO19EpM8mbJ4Fi+DyvzpLcOtAvK8rzEb6oyOU= Received: from vdlg-exch-02.paragon-software.com (172.30.1.105) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 27 Aug 2021 19:09:54 +0300 Received: from vdlg-exch-02.paragon-software.com ([fe80::586:6d72:3fe5:bd9b]) by vdlg-exch-02.paragon-software.com ([fe80::586:6d72:3fe5:bd9b%12]) with mapi id 15.01.2176.009; Fri, 27 Aug 2021 19:09:54 +0300 From: Konstantin Komarov To: Kari Argillander , "ntfs3@lists.linux.dev" CC: "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] fs/ntfs3: Add ifndef + define to all header files Thread-Topic: [PATCH] fs/ntfs3: Add ifndef + define to all header files Thread-Index: AQHXkpaNnll4ojWsX0ux0GOVaSMR8auHlqNw Date: Fri, 27 Aug 2021 16:09:54 +0000 Message-ID: References: <20210816120156.186193-1-kari.argillander@gmail.com> In-Reply-To: <20210816120156.186193-1-kari.argillander@gmail.com> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.0.26] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Kari Argillander > Sent: Monday, August 16, 2021 3:02 PM > To: Konstantin Komarov ; ntfs3@= lists.linux.dev > Cc: Kari Argillander ; linux-kernel@vger.kern= el.org > Subject: [PATCH] fs/ntfs3: Add ifndef + define to all header files >=20 > Add guards so that compiler will only include header files once. >=20 > Signed-off-by: Kari Argillander > --- > I do not mind if this get's merged to V28/V29 without commit. > --- > fs/ntfs3/debug.h | 5 +++++ > fs/ntfs3/ntfs.h | 3 +++ > fs/ntfs3/ntfs_fs.h | 5 +++++ > 3 files changed, 13 insertions(+) >=20 > diff --git a/fs/ntfs3/debug.h b/fs/ntfs3/debug.h > index dfaa4c79dc6d..465466631d38 100644 > --- a/fs/ntfs3/debug.h > +++ b/fs/ntfs3/debug.h > @@ -7,6 +7,9 @@ > */ >=20 > // clang-format off > +#ifndef _LINUX_NTFS3_DEBUG_H > +#define _LINUX_NTFS3_DEBUG_H > + > #ifndef Add2Ptr > #define Add2Ptr(P, I) ((void *)((u8 *)(P) + (I))) > #define PtrOffset(B, O) ((size_t)((size_t)(O) - (size_t)(B))) > @@ -61,4 +64,6 @@ void ntfs_inode_printk(struct inode *inode, const char = *fmt, ...) > #define ntfs_free(p) kfree(p) > #define ntfs_vfree(p) kvfree(p) > #define ntfs_memdup(src, len) kmemdup(src, len, GFP_NOFS) > + > +#endif /* _LINUX_NTFS3_DEBUG_H */ > // clang-format on > diff --git a/fs/ntfs3/ntfs.h b/fs/ntfs3/ntfs.h > index 40398e6c39c9..16da514af124 100644 > --- a/fs/ntfs3/ntfs.h > +++ b/fs/ntfs3/ntfs.h > @@ -7,6 +7,8 @@ > */ >=20 > // clang-format off > +#ifndef _LINUX_NTFS3_NTFS_H > +#define _LINUX_NTFS3_NTFS_H >=20 > /* TODO: > * - Check 4K mft record and 512 bytes cluster > @@ -1235,4 +1237,5 @@ struct SID { > }; > static_assert(offsetof(struct SID, SubAuthority) =3D=3D 8); >=20 > +#endif /* _LINUX_NTFS3_NTFS_H */ > // clang-format on > diff --git a/fs/ntfs3/ntfs_fs.h b/fs/ntfs3/ntfs_fs.h > index 0c3ac89c3115..80e1dea2579a 100644 > --- a/fs/ntfs3/ntfs_fs.h > +++ b/fs/ntfs3/ntfs_fs.h > @@ -6,6 +6,9 @@ > */ >=20 > // clang-format off > +#ifndef _LINUX_NTFS3_NTFS_FS_H > +#define _LINUX_NTFS3_NTFS_FS_H > + > #define MINUS_ONE_T ((size_t)(-1)) > /* Biggest MFT / smallest cluster */ > #define MAXIMUM_BYTES_PER_MFT 4096 > @@ -1090,3 +1093,5 @@ static inline void le64_sub_cpu(__le64 *var, u64 va= l) > { > *var =3D cpu_to_le64(le64_to_cpu(*var) - val); > } > + > +#endif /* _LINUX_NTFS3_NTFS_FS_H */ > -- > 2.30.2 Thanks again - applied! Best regards