From patchwork Thu Jul 13 14:10:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 13312291 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCE1BC001B0 for ; Thu, 13 Jul 2023 14:17:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231530AbjGMORL (ORCPT ); Thu, 13 Jul 2023 10:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235047AbjGMORC (ORCPT ); Thu, 13 Jul 2023 10:17:02 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6196B2733 for ; Thu, 13 Jul 2023 07:16:59 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 045422215C; Thu, 13 Jul 2023 14:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1689257818; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=T8s7J9XfXATwjILd5jYXvmwh2dNWEpNL61+Hxv5Ymmg=; b=sNeZ8LlvhKEYonqMBveWUdh7yHVXGLc0KdDCEhViyMnRBJ3ZC7JM3v/zGpTX6fS51jcZkZ puE+D0aQW2nqCpsimi1ASv0Adiqt/KeaRmN1F60v4MkdMN1Gy4MlJruVk3awuPAPFGXLaJ LK25mlBDCeGOXOBN95gOKV81O9lDRIg= Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id EBAC92C142; Thu, 13 Jul 2023 14:16:57 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id B92F9DA85A; Thu, 13 Jul 2023 16:10:22 +0200 (CEST) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH 0/2] Minor macro and type cleanups Date: Thu, 13 Jul 2023 16:10:22 +0200 Message-Id: X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Get rid of unsigned char, and use sizeof_filed(). David Sterba (2): btrfs: replace unsigned char with u8 for type casts btrfs: use helper sizeof_field in struct accessors fs/btrfs/accessors.h | 23 +++++++++++------------ fs/btrfs/delayed-inode.c | 2 +- fs/btrfs/file-item.c | 8 +++----- fs/btrfs/send.c | 2 +- 4 files changed, 16 insertions(+), 19 deletions(-)