Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp179688rwb; Tue, 4 Oct 2022 02:25:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4bWpiaT/wJIJ8Xgp/jvVFlaOykhgy5+Ze6wkHynzoMxfyVXW7ARfahlqP587gb0Gw9Gfr1 X-Received: by 2002:a17:90a:aa96:b0:205:bb67:a85f with SMTP id l22-20020a17090aaa9600b00205bb67a85fmr16238336pjq.202.1664875540920; Tue, 04 Oct 2022 02:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664875540; cv=none; d=google.com; s=arc-20160816; b=lSRHC8kZjcRKeALMkNSmJvLOnDFStUbYvxQeUjV/vt4qNs60TdNUrHFNHmi78V3MEo eyzpHYbzfb8qWg41cG0TdDtwawNlLvfXLo0kZaKB3N536EdKs+xQBRdaJ2uDEjl517tl OXkneAJtNbxfxze62YPCx0FP1ZoIJv/UxY9RGsj8SJIopEXnHiQHxYfkRwJ71TAx094b 1wI0kvNnZGA2XPqSsX2hh5IiNmICLWvxcPlIEprQm7673kYlEqjd6OnUvjxSe+nkpHd/ Q+iK9m9uIg5qYuXFAdMqy5uWYShBJ+YJlEADmjMa99BDa1iGf9GVmvMxxUCfGbhDKGQO bybw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SIdtTMbynZBEM3bp1NvkWPXk1qjupjNWb0ls9qOapoc=; b=bMqlFKWpNumkKPl40gzGtmidJTmhpQpXfBtLi2DpMrTYhjw9MyprdXT0jr2fCzwhkO TH3raikn7sUd2GkT4Yus3QODbGY11U92t/W6KMVqYEYFJ8I8IdsgCcTiaMJT6wFd1LSo JuLf70r2ztCKwVglr0/oOjmP0pdvc74DC1EpfccBTlCaCnJMzMDGDmjAKgeRrp9a2HmY LvvZp9d1MlC4Iqv5cW3gTICYKEg5fwaxRo6SnWyu/vj+hGpkygjS6YpKF47W/EEI+uWZ c3DWM2jLZev0rndIWeEI652L9S+bWeaykhV5bITJwfptwX3iXC6kUmfSQV44SqEo1SSv Wk0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XwxblJoj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp8-20020a17090b4a8800b001f541fc751fsi2543511pjb.190.2022.10.04.02.25.29; Tue, 04 Oct 2022 02:25:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XwxblJoj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230189AbiJDI0L (ORCPT + 99 others); Tue, 4 Oct 2022 04:26:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbiJDI0E (ORCPT ); Tue, 4 Oct 2022 04:26:04 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FB8E22B12; Tue, 4 Oct 2022 01:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664871961; x=1696407961; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xFUr2CE7UnL6lwY/H1X/jHfUV8JBN2yFrKgPXcXepp8=; b=XwxblJojXcagw7MZJhb90l/4NaL5SRrq5y9gwYyM9AE6BPm71z+WpVrw /UQOTp3nw9JTIvTNZs3usmK6Bh82rgx6ervoozT7uTCs6FRXaL7h9I0PN CiUof5PDQ9v2ak47LUV2LAGfMXDV05ZWKWISB9g9hYGG0UjcW3ik7VIlq zIDnaJhWD64zb1qdfu7LOFa/EH4wwCNXMdvCDF+O3KTvGY3nZhLLfHQv+ zRMnCCqsx1sq2fYcA4AJ3S5IwpbAjnqta2NDEoR0obkoziPB8NdPxMIEn 6YskSD3qqOORZdcWIhNa5M/eVHKykPha3S5eceJp3rUSiAWIhqT1I0jeO Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="329260816" X-IronPort-AV: E=Sophos;i="5.93,367,1654585200"; d="scan'208";a="329260816" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 01:26:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="574952833" X-IronPort-AV: E=Sophos;i="5.93,367,1654585200"; d="scan'208";a="574952833" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP; 04 Oct 2022 01:25:58 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1ofdFU-001yDG-1m; Tue, 04 Oct 2022 11:25:56 +0300 Date: Tue, 4 Oct 2022 11:25:56 +0300 From: Andy Shevchenko To: Greg Kroah-Hartman Cc: Sakari Ailus , Heikki Krogerus , Bjorn Andersson , Prashant Malani , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Daniel Scally , "Rafael J. Wysocki" Subject: Re: [PATCH v2 1/5] device property: Keep dev_fwnode() and dev_fwnode_const() separate Message-ID: References: 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 X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 04, 2022 at 10:24:13AM +0200, Greg Kroah-Hartman wrote: > On Tue, Oct 04, 2022 at 11:14:14AM +0300, Andy Shevchenko wrote: > > On Tue, Oct 04, 2022 at 09:55:21AM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Oct 03, 2022 at 08:08:58PM +0000, Sakari Ailus wrote: > > > > On Mon, Oct 03, 2022 at 06:17:17PM +0200, Greg Kroah-Hartman wrote: ... > > > > #define kobj_to_dev(kobj) \ > > > > (_Generic((kobj), \ > > > > const struct kobject *: __kobj_to_dev_const, \ > > > > struct kobject *: __kobj_to_dev)(kobj)) > > > > > > Ah, doh! I had the (kobj) part in the wrong place, thanks for that > > > fix... > > > > > > Ok, this looks better, let me see how well the build breaks with some of > > > these changes > > > > I believe I can rewrite my patch like this and then it will be much nicer since > > we may constify all the rest without calling __dev_fwnode_const() directly. > > > > Are you agree? > > Yes, I think this is a much better option, try it and see. Below is the > patch I'm running through my build systems at the moment, feel free to > copy the style for your change as well. Yep, thanks for sharing! -- With Best Regards, Andy Shevchenko