From patchwork Sat Jul 7 20:01:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 17419 X-Patchwork-Delegate: sw@simonwunderlich.de Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id 642B282B79; Sat, 7 Jul 2018 22:01:39 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=narfation.org header.i=@narfation.org header.b="cYXqlHrh"; dkim-atps=neutral Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=79.140.41.39; helo=v3-1039.vlinux.de; envelope-from=sven@narfation.org; receiver= Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id CBA3E82B8B for ; Sat, 7 Jul 2018 22:01:36 +0200 (CEST) Received: from sven-desktop.home.narfation.org (p200300C593EBBFFD0000000000004065.dip0.t-ipconnect.de [IPv6:2003:c5:93eb:bffd::4065]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 2ED3B110118; Sat, 7 Jul 2018 22:01:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1530993694; bh=DFekff9kCf1ZrdjzWGwqG9ynuVtrKxocMgkXkseTnGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cYXqlHrhXMl20EZB62UIzhx/KOe177Q99WaPwYb0zSS4p7IpMzouXeBF2PbYJ2NHy Ufec2u3yZY5c7l44cIRkau3nSCG3GMfesOi0hE1/V11KhYSRJVxYX6YYwAPSU5Gp/3 X/Gwbtb+xP54O3+h95IfhZzGwJX2G7qs/TR+QRa8= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Sat, 7 Jul 2018 22:01:21 +0200 Message-Id: <20180707200121.2684-4-sven@narfation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180707200121.2684-1-sven@narfation.org> References: <20180707200121.2684-1-sven@narfation.org> Subject: [B.A.T.M.A.N.] [PATCH 3/3] batman-adv: Convert batadv_dat_addr_t to proper type X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" The #define for batadv_dat_addr_t is doing nothing else than giving u16 a new typename. But C already has the special keyword "typedef" which is also better supported by kernel-doc. Signed-off-by: Sven Eckelmann Acked-by: Antonio Quartulli --- net/batman-adv/types.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index 360357f8..343d3048 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -43,12 +43,13 @@ struct seq_file; #ifdef CONFIG_BATMAN_ADV_DAT /** - * batadv_dat_addr_t - it is the type used for all DHT addresses. If it is - * changed, BATADV_DAT_ADDR_MAX is changed as well. + * typedef batadv_dat_addr_t - type used for all DHT addresses + * + * If it is changed, BATADV_DAT_ADDR_MAX is changed as well. * * *Please be careful: batadv_dat_addr_t must be UNSIGNED* */ -#define batadv_dat_addr_t u16 +typedef u16 batadv_dat_addr_t; #endif /* CONFIG_BATMAN_ADV_DAT */