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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86528C46467 for ; Wed, 11 Jan 2023 15:10:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235209AbjAKPKF (ORCPT ); Wed, 11 Jan 2023 10:10:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232871AbjAKPJ7 (ORCPT ); Wed, 11 Jan 2023 10:09:59 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F2F1C53 for ; Wed, 11 Jan 2023 07:09:58 -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 ams.source.kernel.org (Postfix) with ESMTPS id 01F5AB81C17 for ; Wed, 11 Jan 2023 15:09:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32782C433EF; Wed, 11 Jan 2023 15:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1673449795; bh=Ks8HSEjvIu1cAM6ETL3oj12pqeJide7riwjR3VRZYGI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sdoCGPq+Zt3Dsk57Rap/pOAezLK1AkQ3FGGQCXIoeFhLJrDDmXYd9kv9UcJZP0MFE iQRx1H6UnDNrkikQcsfD8/8x9NX7TplGITCgCBBI6B2TxNE5XC/9ebC+HhbEdnu7GI e9rl9+unGWifs+cshKTj+FPt3ME43OrssYgy9LIU= Date: Wed, 11 Jan 2023 16:09:52 +0100 From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] driver core: change to_subsys_private() to use container_of_const() Message-ID: References: <20230111093327.3955063-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 11, 2023 at 10:50:49AM +0100, Rafael J. Wysocki wrote: > On Wed, Jan 11, 2023 at 10:33 AM Greg Kroah-Hartman > wrote: > > > > The macro to_subsys_private() needs to switch to using > > container_of_const() as it turned out to being incorrectly casting a > > const pointer to a non-const one. Make this change and fix up the one > > offending user to be correctly handling a const pointer properly. > > > > Cc: "Rafael J. Wysocki" > > Signed-off-by: Greg Kroah-Hartman > > Reviewed-by: Rafael J. Wysocki Thanks for the review!