From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F275DC4332F for ; Thu, 7 Oct 2021 16:12:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DF09261074 for ; Thu, 7 Oct 2021 16:12:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242117AbhJGQOG (ORCPT ); Thu, 7 Oct 2021 12:14:06 -0400 Received: from mga07.intel.com ([134.134.136.100]:43753 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbhJGQOF (ORCPT ); Thu, 7 Oct 2021 12:14:05 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10130"; a="289792597" X-IronPort-AV: E=Sophos;i="5.85,355,1624345200"; d="scan'208";a="289792597" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 09:08:25 -0700 X-IronPort-AV: E=Sophos;i="5.85,355,1624345200"; d="scan'208";a="440316846" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 09:08:21 -0700 Received: from andy by smile with local (Exim 4.95) (envelope-from ) id 1mYVwJ-009aZx-0L; Thu, 07 Oct 2021 19:08:11 +0300 Date: Thu, 7 Oct 2021 19:08:11 +0300 From: Andy Shevchenko To: Miguel Ojeda Cc: Brendan Higgins , Peter Zijlstra , Thomas Gleixner , linux-kernel , "open list:KERNEL SELFTEST FRAMEWORK" , kunit-dev@googlegroups.com, Linux Media Mailing List , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Sakari Ailus , Laurent Pinchart , Mauro Carvalho Chehab , Andrew Morton , Jonathan Cameron , Rasmus Villemoes , Thorsten Leemhuis Subject: Re: [PATCH v4 2/7] kernel.h: Split out container_of() and typeof_member() macros Message-ID: References: <20211007154407.29746-1-andriy.shevchenko@linux.intel.com> <20211007154407.29746-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 07, 2021 at 05:54:32PM +0200, Miguel Ojeda wrote: > On Thu, Oct 7, 2021 at 5:44 PM Andy Shevchenko > wrote: > > > > +#define typeof_member(T, m) typeof(((T*)0)->m) > > Is the patch missing the removal from the other place? Possibly, but I leave it for now for builders to place with the series and people having chance to comment. Thanks for review! Maybe Andrew can fix this when applying? -- With Best Regards, Andy Shevchenko