From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E300C18A93F for ; Wed, 3 Jul 2024 11:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720005057; cv=none; b=C9LJqfSxOIEIFsGJ7yBJRAANBnAWvSNyd7wB+mJLhXmuIVeRbr6bcBxV1XznqrAlIM2NOpf5sUIrMT/SLrPFk7S7NKNQiDB+7+2aLIfsAJSWYGtblPYRCHBp4eMy5wJl8MT3As6IuBHxKKVAAZIMbKYVceEPRGIdUAvDvHkJeu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720005057; c=relaxed/simple; bh=+gU8vko3tCI5EL05iSQsogVikFmj4gq7DBuivXzc1iQ=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=NDbV7hRPcB8f6O9zWoFukOrBqwWjuZupKuWGVWomnCyBqDSmh6MZZ+P66Sfc2VWHHHIGPaeFR2CyLTuJlbotkUG/STs5a/9RQ5qNQKbd0N07SWlpipYKlF8X8x7rlpQcp69oU4qqt38QSIn7J7nKhHYKDc/DNQ6X6QWXVEmVvyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com; spf=pass smtp.mailfrom=perches.com; arc=none smtp.client-ip=216.40.44.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=perches.com Received: from omf08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 242AE1C147A; Wed, 3 Jul 2024 11:10:48 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA id 8FD8420025; Wed, 3 Jul 2024 11:10:45 +0000 (UTC) Message-ID: Subject: Re: [PATCH 4.19 093/139] scsi: mpt3sas: Add ioc_ logging macros From: Joe Perches To: Greg Kroah-Hartman , stable@vger.kernel.org Cc: patches@lists.linux.dev, Suganath Prabu , "Martin K. Petersen" , Sasha Levin Date: Wed, 03 Jul 2024 04:10:43 -0700 In-Reply-To: <20240703102833.952003952@linuxfoundation.org> References: <20240703102830.432293640@linuxfoundation.org> <20240703102833.952003952@linuxfoundation.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (3.52.2-1.fc40) Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Stat-Signature: kdb6pa719dimdr9zw1xihyk3hz8ix369 X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: 8FD8420025 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/HYm4rJvVGx/zv3pUswF6VqhkAvIMR20U= X-HE-Tag: 1720005045-459816 X-HE-Meta: U2FsdGVkX1/o/+alroJJKcTonsCF/3HPd2KVuNF4rNejycWsTfYIQu8BTDriu1DHjiO0fg0s+veXyWSWEoHhJnuL4CQ6Yy/Db1efIOMPvxi6iOx7twl1e97k4T1Obd5nhI/10k3WAA8bB9Otdo+VMYELTafVtIFpN37Qe9Q0E1n+gFoEkyZzeV9B6nxd6mL5xqXxn7iALvF1yDxyNPAPFOKIIWhJLg9+/gc/9gS2T+rx/6TRUCrxuli1qPM93DP0Quh+7/Z6NUzXOCy8k9lJq8wI2xZAfg2oRz/NCy3hKcETtUgaOTHXx66TrXXXlPeeMym3hMePzZJEA/mCzSUYWjjUpAyGB6jP/qKyGkqaWvkLnYYjS2FsFIS34xWuNy1EGxGQ9BU9upQ5l0mns0b/GfsDlVcxt3OjHNy/Kd6FMkpS7J2S28RmNdkaT9SQlf+9BrsYojlZSHRmt78IdG4GUOCdR4TXGXSv6wGvwkpV1PXGE8TBXkmhcLbxOPKFQj8pM+UAsosTzk0= On Wed, 2024-07-03 at 12:39 +0200, Greg Kroah-Hartman wrote: > 4.19-stable review patch. If anyone has any objections, please let me kn= ow. Still think this isn't necessary. see: https://lore.kernel.org/stable/Zn25eTIrGAKneEm_@sashalap/ >=20 > ------------------ >=20 > From: Joe Perches >=20 > [ Upstream commit 645a20c6821cd1ab58af8a1f99659e619c216efd ] >=20 > These macros can help identify specific logging uses and eventually perha= ps > reduce object sizes. >=20 > Signed-off-by: Joe Perches > Acked-by: Suganath Prabu > Signed-off-by: Martin K. Petersen > Stable-dep-of: 4254dfeda82f ("scsi: mpt3sas: Avoid test/set_bit() operati= ng in non-allocated memory") > Signed-off-by: Sasha Levin > --- > drivers/scsi/mpt3sas/mpt3sas_base.h | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/m= pt3sas_base.h > index 96dc15e90bd83..941a4faf20be0 100644 > --- a/drivers/scsi/mpt3sas/mpt3sas_base.h > +++ b/drivers/scsi/mpt3sas/mpt3sas_base.h > @@ -160,6 +160,15 @@ struct mpt3sas_nvme_cmd { > */ > #define MPT3SAS_FMT "%s: " > =20 > +#define ioc_err(ioc, fmt, ...) \ > + pr_err("%s: " fmt, (ioc)->name, ##__VA_ARGS__) > +#define ioc_notice(ioc, fmt, ...) \ > + pr_notice("%s: " fmt, (ioc)->name, ##__VA_ARGS__) > +#define ioc_warn(ioc, fmt, ...) \ > + pr_warn("%s: " fmt, (ioc)->name, ##__VA_ARGS__) > +#define ioc_info(ioc, fmt, ...) \ > + pr_info("%s: " fmt, (ioc)->name, ##__VA_ARGS__) > + > /* > * WarpDrive Specific Log codes > */