Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp434532rwb; Thu, 12 Jan 2023 07:58:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXsCxRR3i8cJqlTY1D0CNxUDvEMjGk/IkNfSqczTYKCK4LDYbVwAISTFcQI7kGPwXL5EsuHt X-Received: by 2002:a05:6a20:289f:b0:af:d0d7:9f38 with SMTP id q31-20020a056a20289f00b000afd0d79f38mr79503619pzf.2.1673539131665; Thu, 12 Jan 2023 07:58:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673539131; cv=none; d=google.com; s=arc-20160816; b=L9mN4hYacPzm5zK5RW0EhO/jtJd9Rnq1YMxsqebEhhslaB5NoKnd/WE7sV16JCaiAK C9JNCqLTCZLy622blErx83ZmpFECMdxfjhUtExFSJDTIf9s+XzayOop//UHRdtrj0x3p Hp6LGEl3D0fP2flKmtih5frgbZjSgmW2cyLbi6++ArbpAhysSypn7u9AfTYRKhoriDcN a+uMopdT1oTFPlU6DyGBfgMrYivIP3HHnFurpVLCPKQpKmQjrSUzhi7p5rmL4MbQ/BV3 oDDttP5c25dQ32JMQJifw9nLlkc9C72+lBdSImPpuKKRhpsK3I7CYA18RIYIvu4HYG8l gpRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=GA6kW34Q7nTzVxLEmzC/Bv2Y0CCosmHi15i9c8XUCOc=; b=mc+RIqNCpZu41DxGR8LZQUrqXUEwVRsew1WghJjCaDOXV73OY24zrh6Y5iZJKevGWA CXfEVtWPD1BYke7VKW2fwPF2mOgzrrWBTPs4E2ov2gy/54R5qPt4sfDu8g3hojXboCXE RQeAf3TbDQKAXDBsmc4KdhbNeMojpVK36FxqOKxiUWa92u/53daKdNqkq0dO54/vo5fJ fvM7QtExflwqWCMDG7eJj4yEwFCrMPC9qqxllygjgiUSY6jnPoLQVtfFF++g+iGP8x/3 GwgRMDcRVxPLkCJR/PllII2P1kn0IrXziPQ8sOayOvG6G1m3LFHmE9PRv5DmK8ubyGeD 7pNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t186-20020a6381c3000000b004bbfa29fb4asi2827721pgd.563.2023.01.12.07.58.45; Thu, 12 Jan 2023 07:58:51 -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; 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 S232226AbjALOKE (ORCPT + 51 others); Thu, 12 Jan 2023 09:10:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231539AbjALOJE (ORCPT ); Thu, 12 Jan 2023 09:09:04 -0500 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0EAC5793B; Thu, 12 Jan 2023 06:05:00 -0800 (PST) Received: by mail-wm1-f46.google.com with SMTP id o15so13253346wmr.4; Thu, 12 Jan 2023 06:05:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GA6kW34Q7nTzVxLEmzC/Bv2Y0CCosmHi15i9c8XUCOc=; b=0nwiy8WrlVkXw+3U1onjB5v4IQrlr/MrmNLSu5HApvXwi8oGS2ghNF3O7/Kjr267Rd hz97IlRfaK0032bXGTLmMI1fdG/RWi4SuM5QheJtyztuGvl/w9yJhnlSE8AdyGIpBjMi FVsKQhXckoeLbaWkOnbK8fGQdVCfQtoCPUdkX6g1LMbCYj0+vbRIO3PXkkXRdMHy1L4A qhFaYyPvY4JasVX+6nb2aEs8gEDY8bJUltbbqjvkOF84ZmlWKXIxx251XpExWcAZKHGx FvCy+1vO6HsMJ2Eq0r+fgGHTKf6s+MrAdi6SChkMHXdTCbdcGbHtS7VSJUQb5oC6lpHl EHFQ== X-Gm-Message-State: AFqh2kpvqSZwch7IJLqt4mJYu+z7GUzSS6kKTn7/95DkV4j2PXSL/W9Q t/Eeq+ubzc4cAwvmRrdmF4Y= X-Received: by 2002:a05:600c:4f83:b0:3d3:49db:d95 with SMTP id n3-20020a05600c4f8300b003d349db0d95mr55293321wmq.37.1673532289849; Thu, 12 Jan 2023 06:04:49 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id x14-20020a1c7c0e000000b003d9f15efcd5sm12866894wmc.6.2023.01.12.06.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 06:04:49 -0800 (PST) Date: Thu, 12 Jan 2023 14:04:47 +0000 From: Wei Liu To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , linux-hyperv@vger.kernel.org Subject: Re: [PATCH v2 10/16] drivers: hv: move device_to_hv_device to use container_of_const() Message-ID: References: <20230111113018.459199-1-gregkh@linuxfoundation.org> <20230111113018.459199-11-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230111113018.459199-11-gregkh@linuxfoundation.org> X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 12:30:12PM +0100, Greg Kroah-Hartman wrote: > The driver core is changing to pass some pointers as const, so move > device_to_hv_device() to use container_of_const() to handle this change. > > device_to_hv_device() now properly keeps the const-ness of the pointer > passed into it, while as before it could be lost. > > Cc: "K. Y. Srinivasan" > Cc: Haiyang Zhang > Cc: Wei Liu > Cc: Dexuan Cui > Cc: linux-hyperv@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman Acked-by: Wei Liu