Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29E9AC433EF for ; Thu, 21 Apr 2022 22:19:44 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nhf9L-0008Ar-Ga; Thu, 21 Apr 2022 22:19:42 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nhf9J-00089u-UZ for linux-f2fs-devel@lists.sourceforge.net; Thu, 21 Apr 2022 22:19:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qzzbN48Kl+pUhbltBVHvyiViL4SawscsPlNy2KjwB4w=; b=X9sm8zF1JhvTq4x4KFHdLv96ip S467iVVDT+CI/lehAgcFJwpuM668YRvmH9YSerz2QkvKOkZxziims9eAJQBzf/pJ85zH9ixyr7gbH ygjMLmtapVBFulRGlR6J9MkRDf8LGpS3F8bSPp0OhKTN/liMS12qYITU11ebX5ABxlQk=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qzzbN48Kl+pUhbltBVHvyiViL4SawscsPlNy2KjwB4w=; b=RHQDVQOaHLK+nwuzpg6dPsZ3yV GR/N4svn3xjBD1h3MrlQcWqICF6CcfmbIhnwYF6loIeDJ6wL+q1fBa4SW2acMdniPxhuLlhiDsQBT 0qsXfAyt0zQc2C/7w/Z1/YFj5DBX9SezVA+ljQyioBIzqfEfRhdUCHLC2e60c2bitJ9s=; Received: from mail-pl1-f181.google.com ([209.85.214.181]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.94.2) id 1nhf9I-005sTZ-A9 for linux-f2fs-devel@lists.sourceforge.net; Thu, 21 Apr 2022 22:19:40 +0000 Received: by mail-pl1-f181.google.com with SMTP id q3so6789358plg.3 for ; Thu, 21 Apr 2022 15:19:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qzzbN48Kl+pUhbltBVHvyiViL4SawscsPlNy2KjwB4w=; b=0YCroDiCzgtbADotUU5nnq60/GNADZe4JtDDaCVLYIHynXObm9nkNFIuvhPo3dRyjH Ud5TceoAVNav9c6P/vWS7fnKpbfQvczeltRg5dS8eGVJyyiI4vRZk3CYAc7nISym64Vw UXXca+7y4KeYo32AFTDvBMo1xjSPI6sClozisTU7g6hdkWWRVoayxgrN8s49WIjSVqoi 1waTr6fmzFaggiTfDJRKsqLJ+Obit8PkYPBJ0eQdclulxyUDZK08NNybQtoHCD8l3HRJ Ynje1EbGSTPEqcNbku94ry90HiS4xSr1jvHB8Rdcjf5PtFJN9jXwKGB0xrPKVjJYdUQH /Sgw== X-Gm-Message-State: AOAM5325loxoUv+STZtxEC4Q70HaTboChIogZB9QdKH+jZqEL8RSI8sT YtAuMqjV+o6hhSQ7NtdzLU8= X-Google-Smtp-Source: ABdhPJx2dArRqL+RfAgKOmIjaYvALKYKyOB/K00Sa910h7dKGch8U0RCt69UGUn9pWjORCaroIxMiQ== X-Received: by 2002:a17:903:40c6:b0:15a:8355:3c3b with SMTP id t6-20020a17090340c600b0015a83553c3bmr1587580pld.9.1650579574426; Thu, 21 Apr 2022 15:19:34 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:a034:31d8:ca4e:1f35]) by smtp.gmail.com with ESMTPSA id hi21-20020a17090b30d500b001cd4989ff4csm3794876pjb.19.2022.04.21.15.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 15:19:33 -0700 (PDT) From: Bart Van Assche To: Jaegeuk Kim Date: Thu, 21 Apr 2022 15:18:35 -0700 Message-Id: <20220421221836.3935616-31-bvanassche@acm.org> X-Mailer: git-send-email 2.36.0.rc2.479.g8af0fa9b8e-goog In-Reply-To: <20220421221836.3935616-1-bvanassche@acm.org> References: <20220421221836.3935616-1-bvanassche@acm.org> MIME-Version: 1.0 X-Headers-End: 1nhf9I-005sTZ-A9 Subject: [f2fs-dev] [PATCH 30/31] Fix PowerPC format string warnings X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bart Van Assche , linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net __SANE_USERSPACE_TYPES__ must be defined before is included. Hence this patch that moves the definition of that macro into the source files that need it. Signed-off-by: Bart Van Assche --- include/f2fs_fs.h | 7 ++++--- tools/f2fs_io/f2fs_io.c | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index bc57dd07819a..eedb38a6da1c 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -17,6 +17,10 @@ #ifndef __F2FS_FS_H__ #define __F2FS_FS_H__ +#ifndef __SANE_USERSPACE_TYPES__ +#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ +#endif + #include #include #include @@ -42,9 +46,6 @@ #include #ifdef HAVE_LINUX_TYPES_H -#ifndef __SANE_USERSPACE_TYPES__ -#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ -#endif #include #endif #include diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index 6bb094cc7f25..0edac6fedf33 100644 --- a/tools/f2fs_io/f2fs_io.c +++ b/tools/f2fs_io/f2fs_io.c @@ -18,6 +18,9 @@ #ifndef O_LARGEFILE #define O_LARGEFILE 0 #endif +#ifndef __SANE_USERSPACE_TYPES__ +#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ +#endif #include #include _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel