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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 336FBC7EE2E for ; Tue, 13 Jun 2023 04:36:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239391AbjFMEgM (ORCPT ); Tue, 13 Jun 2023 00:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231750AbjFMEgF (ORCPT ); Tue, 13 Jun 2023 00:36:05 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A6A410DC; Mon, 12 Jun 2023 21:36:05 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 17C9968BFE; Tue, 13 Jun 2023 06:36:02 +0200 (CEST) Date: Tue, 13 Jun 2023 06:36:01 +0200 From: Christoph Hellwig To: mwilck@suse.com Cc: "Martin K. Petersen" , Christoph Hellwig , Ming Lei , Bart Van Assche , James Bottomley , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, Hannes Reinecke , Karan Tilak Kumar , Sesidhar Baddela Subject: Re: [PATCH v5 6/7] scsi: replace scsi_target_block() by scsi_block_targets() Message-ID: <20230613043601.GC13400@lst.de> References: <20230612165049.29440-1-mwilck@suse.com> <20230612165049.29440-7-mwilck@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230612165049.29440-7-mwilck@suse.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org > +scsi_block_targets(struct device *dev, struct Scsi_Host *shost) I think the logical argument order would be to pass the shost first. > -extern void scsi_target_block(struct device *); > +extern void scsi_block_targets(struct device *dev, struct Scsi_Host *shost); And please drop the pointless extern here. With that: Reviewed-by: Christoph Hellwig