Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9570724rwl; Wed, 11 Jan 2023 07:20:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXvDOHmy6XdehwgBjwWPQ+rPQQF63reA312i3n2hQxzBVV108AvTmGTnUXGGract336j70DA X-Received: by 2002:a17:90a:3fc3:b0:228:e435:2828 with SMTP id u3-20020a17090a3fc300b00228e4352828mr2649105pjm.31.1673450411607; Wed, 11 Jan 2023 07:20:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673450411; cv=none; d=google.com; s=arc-20160816; b=g82KZFisCx6KbJObJJXYFElAxagBgP2KwtFnzNhbpSFzeTI6HHYPz5GsVt78OzIOHx zML9a6IRHt9Z69N/nCg5FJy5GpM32cyXXCcxfkiOi/Ph35QVTDkapQe0oL+8zwVkM9zd /6pg9JJ15ODqo82Q+RS6n7bK7a33Ns1B9NKvxhWbzd7sux9fKzRzsCqKYckwrSju87s0 WYup6PNDqkoSiI20ah1ZoxEK3G54lEQJKnk+wn3ttWzDCXztRuLYmGjTwY04yzwz1yLX 2hebT/DYegh2vqIoFQ/RBDoa+KN+aeAHQ4/dWeGzXRujnZCiRBdxobKCJZDLUgBOajYe 01XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+TwepNNW/3B5L3upzyq6l3NC/gbOhaF4zvvV6XpWPD0=; b=QFfQf4fXzDpyu7f4zMoQ3nnIjTFvJXavpaUYLPjQirWjtYGTaiNbXEzViuLI2kxNJW HOVpoGTHO/0OXS+bycEPZ9gXdC0gLO4vlVbLTzigGnC3dsXTH1kcLdDswGB4TAEdFFNN hrBQIaYTMq0P8L4dos05fj17iF+PIGPs38WxwYw+/C+csTQe7tfopCw5nT2uvrrx1vR2 XHnwkdP8tvldbe2pKin5d1mDQEH/Xx6LBUZ/NF0rF64vz2AKjYiMWrKnfPybckeXYPpw +RGosHPbB1R4ODsXnsRuVTkmpJHUH4LLToK+MmpPUxoAtn80oV1w8P5yatQiG7d5izio rh0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KPh/G+50"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a17090a764b00b00228e423ba2dsi2043649pjl.180.2023.01.11.07.20.04; Wed, 11 Jan 2023 07:20:11 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b="KPh/G+50"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238852AbjAKOzJ (ORCPT + 51 others); Wed, 11 Jan 2023 09:55:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238682AbjAKOyW (ORCPT ); Wed, 11 Jan 2023 09:54:22 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BCB2193EE; Wed, 11 Jan 2023 06:54:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EF4EB61D4F; Wed, 11 Jan 2023 14:54:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60016C4339C; Wed, 11 Jan 2023 14:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673448857; bh=5991q1wXtvebgUykJ5NYVRTE1uZrMxXzr1nAKepdlS8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KPh/G+50T7UA6MM56f8kwkC7JRGti8dM8QkU7Fxa5slwTvHjNEgCot25mpm4QZ7BP ZBiebJftwP7lOO7l+7g9JUlFg7H37CsriodR+cmKmP3WA8anAwD0dF+LYaaRDO26p1 OnLNrFsdAaguSc26UyRsKv6n5rvjOdI9h/kQDs7+Tkw5bjqa5w+wpiwhCnOP90YEUe FkKBJ74jTS+659FEb3pPjJ1FoRZki0Njj420eOTO+i2/E/Q+ID9LNtC2t/d0NzBOBx LU9qQQBY30RDoh7gKDyBIh6Ske1YYN3CZHHhjPZA0B0j59JTFQKeNyNZvgh4yzCXPO D6vi0GpD34NYg== Received: by mail-vk1-f177.google.com with SMTP id v81so7309185vkv.5; Wed, 11 Jan 2023 06:54:17 -0800 (PST) X-Gm-Message-State: AFqh2kpz9jcaAVtl/D3fxpADc2eyqBYKM5Cq4vuOm7nZrijD91fQBd7Z nMWGW5B2HZEEzPVeZXvw+JZ99KyUT6WGKJQn3A== X-Received: by 2002:a1f:1e50:0:b0:3c1:1c3b:c4d9 with SMTP id e77-20020a1f1e50000000b003c11c3bc4d9mr9659628vke.19.1673448856184; Wed, 11 Jan 2023 06:54:16 -0800 (PST) MIME-Version: 1.0 References: <20230111113018.459199-1-gregkh@linuxfoundation.org> <20230111113018.459199-2-gregkh@linuxfoundation.org> In-Reply-To: <20230111113018.459199-2-gregkh@linuxfoundation.org> From: Rob Herring Date: Wed, 11 Jan 2023 08:54:04 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 01/16] of: device: make of_device_uevent_modalias() take a const device * To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Michael Ellerman , Nicholas Piggin , Christophe Leroy , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , David Airlie , Daniel Vetter , Benjamin Herrenschmidt , Frank Rowand , Liang He , Thomas Gleixner , Christophe JAILLET , Thomas Zimmermann , Dmitry Baryshkov , Douglas Anderson , Lyude Paul , Corentin Labbe , Zou Wei , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Wed, Jan 11, 2023 at 5:30 AM Greg Kroah-Hartman wrote: > > of_device_uevent_modalias() does not modify the device pointer passed to > it, so mark it constant. In order to properly do this, a number of > busses need to have a modalias function added as they were attempting to > just point to of_device_uevent_modalias instead of their bus-specific > modalias function. This is fine except if the prototype for a bus and > device type modalias function diverges and then problems could happen. To > prevent all of that, just wrap the call to of_device_uevent_modalias() > directly for each bus and device type individually. Why not just put the wrapper function in the DT code instead of making 4 copies of it? Rob