Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp827238pxb; Thu, 2 Sep 2021 16:29:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZRt9H/p5VqOmmw0P968/TcqrYZg9tBFlcZ30GiFeDlsgyQf78C96ZgtpqqZ5fsXQP72xc X-Received: by 2002:a02:c7c6:: with SMTP id s6mr231323jao.34.1630625342178; Thu, 02 Sep 2021 16:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630625342; cv=none; d=google.com; s=arc-20160816; b=NqH/p7J+kshm/iswMYVOKjWQoLsXq+RnGBOVdPFMIYmnOzgLnrn0KtyAbsJ9+NGX3v i38xgaUIhrMHepvS/IpQ8OJkH8VuzQ1s5lEY3+nKWSsVtXfqMn8N6kvCMtSUAeOT8Xde FRHjLoX/ayToflQl33MvftA+s3fDYAe7NAUd8qQpNjrRT0abtpo3msk6b3INOfaTWKqt f/8BJUuzIx6Cn5BpcIz+PFL8wmkgDrT0PDoWa9948A9LPHjE9DGRuc3lrqCU7pEWaf9X LETYErfXzBMUj6JaS0kmmM6Ayf5BalmXM7slej5nHvvQ9jA9UPxq3P29Q5Dmyq4JoviE ipdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JjzmQo1N7d1P1cyzIEi8qkH6o8WLXVag9lNOKET+p2c=; b=jQtjq2N93S371XI3PFODCMGJyPmEeIe87uu6w1PemsaFVdMvvZ5wMFGytd/1UQ2op5 nFmU2iKlb4Su4HSpYA3KpauXKRmLtJGyh5id2CcBBx0hRnXLo3ZUDpAg2tjqS/2dtiFD KqBoZf6Q19NFL9OWaOnMbCrUv98gu2v+OVVN9ha55LSLO0Nu1laSSgq7qvvJbV34rh3Z kUlNwNd0x2aQizkPB6MFYFiN4KXwh2X9hrQEA9VZC1TJZ2SJvhVPR1m8MGXXGox2oiIA RrvT/D3a+gr00t6Q38k2MtlHkzg32UUainWloG6jPEbnn/E6ZdoKreC0UF3PdANwMQbi Ky+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QXnEL8wU; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i126si3184985iof.61.2021.09.02.16.28.49; Thu, 02 Sep 2021 16:29:02 -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=@gmail.com header.s=20210112 header.b=QXnEL8wU; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346199AbhIBQQy (ORCPT + 99 others); Thu, 2 Sep 2021 12:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346190AbhIBQQl (ORCPT ); Thu, 2 Sep 2021 12:16:41 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 924EFC061757 for ; Thu, 2 Sep 2021 09:15:42 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id m4so4554976ljq.8 for ; Thu, 02 Sep 2021 09:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JjzmQo1N7d1P1cyzIEi8qkH6o8WLXVag9lNOKET+p2c=; b=QXnEL8wUBZ5IdkU13PdI7ypnoy6W4VPTqeqnkOXW6FfJRhYaDm0Jzzmtbq6Si2JQSQ 69QHO43owdL60VNdB33s5dRErlPWV3PvXL/RtwRcDscmXdZD0TwwIgGFjyiYltKBwKDN tyL8ZDMF2kHzldgDRajFcpfGqAqNZXSO3yR+dpWVwZXLO7B/nlr/uNutpuTRM7FpmOet YDuTae0SPZZMzNiuezHB0njjBAstCwjgMSj9DRLn5AG6O1V7PK1gvjRLhQZVVOk5cuE2 Ej/sGOjuA+Oa3qN78MWM6pIOddg3RiibPrGKSOar4ouSQQJViqM2RD6ZuUjNDWaob14o Nt8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JjzmQo1N7d1P1cyzIEi8qkH6o8WLXVag9lNOKET+p2c=; b=MTf8kr+vej30rj8BX8PSBef1QvMMY9LNW06NeCQfqyd6zDiR2+1ZOZFtAv5H8gL/tz t/lOP662ZkSk0sgfkUnsVZW86QYyZ2l/JMEfIz85CGHJBg7RTkPpS++Ili6HD64iV2rh YLGCYiviQ9nae9odUMfsBg51c0M2vgsml8NtOpVsHPIlBTyFwSzjCkfbV6sbgDTKEL2a MhkgaSHVk65x3N6YF3sGV3+8kZpb2cU4u4iWa/ZKu88o+Df/vOtvD6DERd9vDenyZaw4 jU5KiLFY4CL2sChV4htJJYiu2K9mvjb0f/UQK98TAi3MLJNbeig2ZRO+dASE+qSrRauF ThBw== X-Gm-Message-State: AOAM533qAQIVu8P/w7d9Gou1yj+dL3fxG0IOuwHdsCdHqNRM9I7Bauve KkDpIVpUhziHiEHp2TL+q74= X-Received: by 2002:a2e:5708:: with SMTP id l8mr3273905ljb.481.1630599340934; Thu, 02 Sep 2021 09:15:40 -0700 (PDT) Received: from kari-VirtualBox.telewell.oy (85-23-89-224.bb.dnainternet.fi. [85.23.89.224]) by smtp.gmail.com with ESMTPSA id m7sm267811ljj.58.2021.09.02.09.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 09:15:40 -0700 (PDT) From: Kari Argillander To: Konstantin Komarov , ntfs3@lists.linux.dev Cc: Kari Argillander , linux-kernel@vger.kernel.org Subject: [PATCH v2 4/8] fs/ntfs3: Add missing header and guards to lib/ headers Date: Thu, 2 Sep 2021 19:15:24 +0300 Message-Id: <20210902161528.6262-5-kari.argillander@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210902161528.6262-1-kari.argillander@gmail.com> References: <20210902161528.6262-1-kari.argillander@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org size_t needs header. Add missing header guards so that compiler will only include these ones. Signed-off-by: Kari Argillander --- fs/ntfs3/lib/decompress_common.h | 5 +++++ fs/ntfs3/lib/lib.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/fs/ntfs3/lib/decompress_common.h b/fs/ntfs3/lib/decompress_common.h index 66297f398403..a2a858d4bf35 100644 --- a/fs/ntfs3/lib/decompress_common.h +++ b/fs/ntfs3/lib/decompress_common.h @@ -19,6 +19,9 @@ * this program. If not, see . */ +#ifndef _LINUX_NTFS3_LIB_DECOMPRESS_COMMON_H +#define _LINUX_NTFS3_LIB_DECOMPRESS_COMMON_H + #include #include #include @@ -350,3 +353,5 @@ static forceinline u8 *lz_copy(u8 *dst, u32 length, u32 offset, const u8 *bufend return dst; } + +#endif /* _LINUX_NTFS3_LIB_DECOMPRESS_COMMON_H */ diff --git a/fs/ntfs3/lib/lib.h b/fs/ntfs3/lib/lib.h index f508fbad2e71..90309a5ae59c 100644 --- a/fs/ntfs3/lib/lib.h +++ b/fs/ntfs3/lib/lib.h @@ -7,6 +7,10 @@ * - linux kernel code style */ +#ifndef _LINUX_NTFS3_LIB_LIB_H +#define _LINUX_NTFS3_LIB_LIB_H + +#include /* globals from xpress_decompress.c */ struct xpress_decompressor *xpress_allocate_decompressor(void); @@ -24,3 +28,5 @@ int lzx_decompress(struct lzx_decompressor *__restrict d, const void *__restrict compressed_data, size_t compressed_size, void *__restrict uncompressed_data, size_t uncompressed_size); + +#endif /* _LINUX_NTFS3_LIB_LIB_H */ -- 2.25.1