Commit 99c2539a authored by Yubin Ruan's avatar Yubin Ruan Committed by David Gibson

fix misspelling in the example of container_of

From 47c92fe951545e780ca31c598bbcbe5347059b27 Mon Sep 17 00:00:00 2001
From: Yubin Ruan <ablacktshirt@gmail.com>
Date: Mon, 12 Mar 2018 11:22:35 +0800
Subject: [PATCH] fix misspelling in the example of container_of
Signed-off-by: default avatarYubin Ruan <ablacktshirt@gmail.com>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 41a0af50
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
* #define container_of(mbr_ptr, encl_type, mbr) \ * #define container_of(mbr_ptr, encl_type, mbr) \
* (check_types_match((mbr_ptr), &((encl_type *)0)->mbr), \ * (check_types_match((mbr_ptr), &((encl_type *)0)->mbr), \
* ((encl_type *) \ * ((encl_type *) \
* ((char *)(mbr_ptr) - offsetof(enclosing_type, mbr)))) * ((char *)(mbr_ptr) - offsetof(encl_type, mbr))))
*/ */
#if HAVE_TYPEOF #if HAVE_TYPEOF
#define check_type(expr, type) \ #define check_type(expr, type) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment