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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36528E8181B for ; Tue, 26 Sep 2023 04:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e/Nkuai9gDNzhiKo9MO+bvC08uczmNEqd9VAp+eTuNM=; b=xXprMYl1v6ipkJ YN0W41wZ7JomV2Bi/XVqT3lBy9xyIK0EbqxzYUJ3K2NDH/6jbndmHIQrx/CNtcTvtR4q0pYJB9SGZ xjCge+GyoHW0X/yxhVpAdkjFXy93VZzB0ME3Q/rwcE2SRaR0YM5H9wtg5ZVmuKgZvsDS+urOCkZi1 wxbgah6uwKt8cNkMLzG2QDaVWSXZu8mZPaMqkrw8xjcaVn4Bur2MTxzEHiBG3f10MdLmJ0+TrtjRF 1Vn2FgUVkjdH3GsehwoS57d8tDrINiiwsnKRQVSuVo8vnRPmybBwehfF9xbdg0UlCx66Yey6EY/K9 d2p9z05I+AuW3Q7G+xjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ql04F-00FaHp-2y; Tue, 26 Sep 2023 04:53:03 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ql04C-00FaH1-2s for linux-arm-kernel@lists.infradead.org; Tue, 26 Sep 2023 04:53:02 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 5C1C5CE0E56; Tue, 26 Sep 2023 04:52:50 +0000 (UTC) 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_215301_152800_F5C70201 X-CRM114-Status: GOOD ( 13.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel