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 X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BE6EC43441 for ; Mon, 12 Nov 2018 19:52:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 34EB22245E for ; Mon, 12 Nov 2018 19:52:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34EB22245E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729318AbeKMFr3 (ORCPT ); Tue, 13 Nov 2018 00:47:29 -0500 Received: from smtprelay0181.hostedemail.com ([216.40.44.181]:59936 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725790AbeKMFr2 (ORCPT ); Tue, 13 Nov 2018 00:47:28 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 09E0B4BA; Mon, 12 Nov 2018 19:52:45 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: cry60_34ef39d8bfd43 X-Filterd-Recvd-Size: 2197 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Mon, 12 Nov 2018 19:52:43 +0000 (UTC) Message-ID: Subject: Re: [PATCH] scsi: libsas: Remove pcidev reference From: Joe Perches To: John Garry , jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com Date: Mon, 12 Nov 2018 11:52:42 -0800 In-Reply-To: <39f56211-cf15-8ca5-a48f-3e4cc347cdb0@huawei.com> References: <1542043689-214071-1-git-send-email-john.garry@huawei.com> <584e7b4fcd6f95fe0c581f6f9472852685c754d1.camel@perches.com> <310504a2-f33c-183b-d00a-fa067b273dfd@huawei.com> <3b62b0ad-53ba-37c2-817c-591d94eed838@huawei.com> <31d224e8c4b9bcebc3657c17fa50302f7da90e64.camel@perches.com> <3470156e35390d1810a6a5e4a554a77493c0d44f.camel@perches.com> <39f56211-cf15-8ca5-a48f-3e4cc347cdb0@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-11-12 at 19:31 +0000, John Garry wrote: > On 12/11/2018 18:58, Joe Perches wrote: > > > > +#define pr_fmt(fmt) "sas: " fmt > > > > > > > > Some other subsystem may try to include this header, and gets its > > > > message prefix overwritten. Just a consequence for doing something bad, > > > > right? > > Right. > > > > And as this file is internal to drivers/scsi/libsas > > that seems very unlikely to occur. > > > > It also might useful to use the common debugging > > mechanisms and convert SAS_DPRINTK to pr_debug > > which would use the same #define pr_fmt. > > > > OK, I will try to put this all together as a marginally wider scope tidy-up. Thanks. Another thing that could be done is to change the #define pr_fmt(fmt) to KBUILD_MODNAME as that would prefix "libsas" instead of just "sas". I think that would be better but I didn't do that as it should be in a separate patch.