Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1764850rdh; Tue, 26 Sep 2023 02:57:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERGYE8zUmfn+JEhLFw8UXHIaOlV1zWth6hlL4enyLReOL9+ASJY+bhYREtYLdRZMwa+AbQ X-Received: by 2002:a17:903:246:b0:1c1:e7b2:27ad with SMTP id j6-20020a170903024600b001c1e7b227admr8181367plh.60.1695722261075; Tue, 26 Sep 2023 02:57:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695722261; cv=none; d=google.com; s=arc-20160816; b=YtvbVijNoMXSVxb7EjqQJO8SjCALNhIlo2sJMu8j15Eprt485bQqsCj1+EDvAmjCPJ T39v1fiKTRpS98IkGZwZxCIfeQBOwCdFrkFRTxvL3f6HzTqvIp1TYy1CLx5dhNJ6H3vm o8aTPdhtN6wGgI+tOYCXJbS8/U0QrRmoYBpkFcJTTywRRe45qQB2zzmGnP9NtePS0GCa mQNTEI8ee81ucbUSVmVDiteQY4B4yeIBV3Dunt6b8AOeoTkYcMHQwT8RTTws8RLbKlHS lliuNdSZ6ZJC9mHfL5V270AiDw0b1qE8+bWNHnXpgAvgi75pGkljRfikR80kYSqWGVcJ /j+w== 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:dkim-signature; bh=m7r9wt5mlqgEg2Gck3UaaWCKBQaFTJybF65jIEAM8kM=; fh=/9QhiiVnblW/5rlU2/j7t69FkF7DE6iP4FbaLAIYoOE=; b=PaW2tOCyBNfrAWJyNyGmnnhBU9WGM0F32wfiJDScHG28m6y2LO3Uwu8BOWBVXPDLRZ wzxPXBhLeRXEVL+TVGfTFG2Cswz1NlnP3V2x7QPihVJhjh6RHNw8eZOhUlmM69zu7mF4 QCypGMQWqRNc1OXB/zbC7QICux+/F+SXoCzhy3JQ8E05nEhVpd1km5WehiYOlLkIaAfx /DTV0LUHs7x8GufT1wZHxvN4A/7+e7ShQDhKWWtJisqC9W8sPZTpaO+w+FN/DQ2+k/ba AyTFdnYwIs9oNrXdLzZ9SPSm4IURP35An7Wt5Lns2ulvmoxiU4RkYbSa6fRtxK/42oHb hruQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fLgtvJyF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id k6-20020a170902c40600b001bc1b018950si13298502plk.442.2023.09.26.02.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 02:57:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fLgtvJyF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4318380239BF; Mon, 25 Sep 2023 21:52:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232781AbjIZEw5 (ORCPT + 99 others); Tue, 26 Sep 2023 00:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjIZEw4 (ORCPT ); Tue, 26 Sep 2023 00:52:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11E27E6; Mon, 25 Sep 2023 21:52:50 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B255CC433C8; Tue, 26 Sep 2023 04:52:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695703969; bh=iGK9D3ZNtj+5ANQTbtas8J/bXpKtY1WHDqCBdj2Av4U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fLgtvJyF861iGKa4EHORO573v2aAToqpZePuQMDajTxqmvCLikWKkE2c0n+6XbKbx qM8XZH3qkZOfDsne4xtW8l6LDB0d7g594/IeRt4Ed1WirTJMW8uO4hXslyZXpNJZ9C 1xm9TgUlfgSYHgWCafxidm53sCZfxcTmsvQlDpAU= Date: Tue, 26 Sep 2023 06:52:46 +0200 From: Greg KH To: Nuno Das Neves Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, patches@lists.linux.dev, mikelley@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, haiyangz@microsoft.com, decui@microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, will@kernel.org, catalin.marinas@arm.com Subject: Re: [PATCH v3 15/15] Drivers: hv: Add modules to expose /dev/mshv to VMMs running on Hyper-V Message-ID: <2023092630-masculine-clinic-19b6@gregkh> References: <1695407915-12216-1-git-send-email-nunodasneves@linux.microsoft.com> <1695407915-12216-16-git-send-email-nunodasneves@linux.microsoft.com> <2023092342-staunch-chafe-1598@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 25 Sep 2023 21:52:56 -0700 (PDT) On Mon, Sep 25, 2023 at 05:07:24PM -0700, Nuno Das Neves wrote: > On 9/23/2023 12:58 AM, Greg KH wrote: > > Also, drivers should never call pr_*() calls, always use the proper > > dev_*() calls instead. > > > > We only use struct device in one place in this driver, I think that is the > only place it makes sense to use dev_*() over pr_*() calls. Then the driver needs to be fixed to use struct device properly so that you do have access to it when you want to print messages. That's a valid reason to pass around your device structure when needed. thanks, greg k-h