From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from integral2.. (unknown [36.81.65.188]) by gnuweeb.org (Postfix) with ESMTPSA id E7DC58024B; Mon, 4 Jul 2022 19:32:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1656963159; bh=RZUNWCvb6CfPewwuaMjfuJRp0z32RubJz4HZjneKwdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pwTsrSDecds3OIfgO+t9xHJwr/ucHbYvRyIackIiYJobVPRUVUeMbclMJtJVAacWV 4HOgzkMX+B7sC6mH6a4vd2w0eNPCDmBo04xox5pdzfUsz9JkB8cPsa1B7lvTVdPmIU pgY8TMDGYi2MHjffORp4E2myaJ/PgB2qI3ktLT4XJieiMGaz6Nu4mABvLhSf4qa0+G 6BnICki6hubj+jmkJ3sLBMqoIo1BcHZfeZOoAroFkhhMZjgIrT8ghFrqx17aP+XStU eVQGrFOfIm1g5yQLSpDKSw5cZWjoNoo0zD3gNbgkFBaIV08lPOcVL9B+bI6C5WAkaZ nulC3UDtKYeoA== From: Ammar Faizi To: Jens Axboe Cc: Ammar Faizi , Alviro Iskandar Setiawan , Fernanda Ma'rouf , Hao Xu , Pavel Begunkov , io-uring Mailing List , GNU/Weeb Mailing List Subject: [PATCH liburing v4 06/10] lib: Style fixup for #if / #elif / #else / #endif Date: Tue, 5 Jul 2022 02:31:51 +0700 Message-Id: <20220704192827.338771-7-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220704192827.338771-1-ammar.faizi@intel.com> References: <20220704192827.338771-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi Don't indent the block inside #if / #elif / #else / #endif. Signed-off-by: Ammar Faizi --- src/lib.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/lib.h b/src/lib.h index 7bbacb9..a966c77 100644 --- a/src/lib.h +++ b/src/lib.h @@ -7,28 +7,28 @@ #include #if defined(__x86_64__) || defined(__i386__) - #include "arch/x86/lib.h" +#include "arch/x86/lib.h" #else - /* - * We don't have nolibc support for this arch. Must use libc! - */ - #ifdef CONFIG_NOLIBC - #error "This arch doesn't support building liburing without libc" - #endif - /* libc wrappers. */ - #include "arch/generic/lib.h" +/* + * We don't have nolibc support for this arch. Must use libc! + */ +#ifdef CONFIG_NOLIBC +#error "This arch doesn't support building liburing without libc" +#endif +/* libc wrappers. */ +#include "arch/generic/lib.h" #endif #ifndef offsetof - #define offsetof(TYPE, FIELD) ((size_t) &((TYPE *)0)->FIELD) +#define offsetof(TYPE, FIELD) ((size_t) &((TYPE *)0)->FIELD) #endif #ifndef container_of - #define container_of(PTR, TYPE, FIELD) ({ \ - __typeof__(((TYPE *)0)->FIELD) *__FIELD_PTR = (PTR); \ - (TYPE *)((char *) __FIELD_PTR - offsetof(TYPE, FIELD)); \ - }) +#define container_of(PTR, TYPE, FIELD) ({ \ + __typeof__(((TYPE *)0)->FIELD) *__FIELD_PTR = (PTR); \ + (TYPE *)((char *) __FIELD_PTR - offsetof(TYPE, FIELD)); \ +}) #endif #define __maybe_unused __attribute__((__unused__)) -- Ammar Faizi