Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5106011rwb; Wed, 21 Sep 2022 03:19:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7AApbrBpDz9+1YxsHsnI16iUhpB508J/86QimWxVeMR8MirPOOQMPAHyx8BVAbJiJcH6Hq X-Received: by 2002:a05:6402:40d1:b0:44f:e974:f981 with SMTP id z17-20020a05640240d100b0044fe974f981mr24992334edb.222.1663755549922; Wed, 21 Sep 2022 03:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663755549; cv=none; d=google.com; s=arc-20160816; b=DCqyK8XiMlScUaWiremDRPOT2pgx/gVtWJUemWoUdMpm+6JfbXv0ndl//F7fuhd3W3 aLDtbBF37uowInZq6xVjEVWw0D92OkAd44GZ+sUx6A6V0zWfJ7Olu/Uno1+tb+6HDvRU 11FdhvuxlHpZDDgb+rwGwZyyJxhYrTdajQuEoPoBVrIXlUy17Z8ZEc0QtldLZPu53fbO GhlDuWbMdyb/hgHb8mcLN14ThrdaqT+fjkAc7WyGVpxN076Ho5vfvxt/QUInJC9gVEHQ Ex3Wa8+5hFiqoHXsivQoHuprOMVhfZPn0wReghtLNSRC3dWwC0rUw5NYfG/zrgq3AC4O nqOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=OQtxhzK4K5vzOGD7rGwY08Si+RtOJllO+OU7aSMG3F4=; b=vmwa7CpEAPdQ4GQSlLlUy1uyvI/LyqrA98nRwWFaQteI7Ioui8CaEhiDMut4y/b9En Pa0nqUDNr//g/cGOgBcb5ZbeTy9DC1SI0uthzWGyR8DY/lQgzBxzVxkrtiosuiyRkxcr 8gk3QZXKk6EQl1HFB6BNMkvYG/HxbqaqAmQhFpJWyHPWLE0YaDzylWNmLfXKTSYcEee6 dvbhU6pty8PDkWt63fNR5FBSBR6B5PJVinDOSxaDQjdLn8iDjKg2njotLuqacZmAo5AC e97m4j7/jfHfz3kucxMtnCPaHX9ppFpm5Fb9LXroNmufDAegkR4/5Rsqe8mHn9l1hGdy bAbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a05640208d000b004511c8d5a0dsi1914981edz.251.2022.09.21.03.18.44; Wed, 21 Sep 2022 03:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231610AbiIUJTr (ORCPT + 99 others); Wed, 21 Sep 2022 05:19:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbiIUJTI (ORCPT ); Wed, 21 Sep 2022 05:19:08 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D41D6901B6; Wed, 21 Sep 2022 02:18:28 -0700 (PDT) Received: from fraeml701-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MXXq16XT9z67M3B; Wed, 21 Sep 2022 17:16:45 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml701-chm.china.huawei.com (10.206.15.50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.31; Wed, 21 Sep 2022 11:17:49 +0200 Received: from [10.195.245.235] (10.195.245.235) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 10:17:49 +0100 Message-ID: <7d271ce3-b289-4ecb-3555-c31dfa6091de@huawei.com> Date: Wed, 21 Sep 2022 10:17:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH RFC 3/6] scsi: core: Add scsi_get_dev() To: Damien Le Moal , , , , CC: , , , References: <1663669630-21333-1-git-send-email-john.garry@huawei.com> <1663669630-21333-4-git-send-email-john.garry@huawei.com> From: John Garry In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.195.245.235] X-ClientProxiedBy: lhrpeml500006.china.huawei.com (7.191.161.198) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/09/2022 22:58, Damien Le Moal wrote: >> +extern struct scsi_device *scsi_get_dev(struct device *parent, int >> channel, uint id, u64 lun); > > You should not need extern here, and long line... > >> + >>   /* >> + > > white line change. > >>    * DIF defines the exchange of protection information between >>    * initiator and SBC block device. ok, I'll tidy them. Thanks, John