From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp2120.oracle.com ([141.146.126.78]:54758 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbeA2XOX (ORCPT ); Mon, 29 Jan 2018 18:14:23 -0500 Subject: Re: [PATCH] btrfs: fix err_cast.cocci warnings To: dsterba@suse.cz, kbuild test robot References: <201801290206.Wy8wLcdm%fengguang.wu@intel.com> <20180128185010.GA26805@intel17.lkp.intel.com> <20180129184055.GC19355@twin.jikos.cz> Cc: linux-btrfs@vger.kernel.org From: Anand Jain Message-ID: <30e63bf3-f496-6709-a13c-70fbeaefd687@oracle.com> Date: Tue, 30 Jan 2018 07:11:54 +0800 MIME-Version: 1.0 In-Reply-To: <20180129184055.GC19355@twin.jikos.cz> Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 01/30/2018 02:40 AM, David Sterba wrote: > On Mon, Jan 29, 2018 at 02:50:10AM +0800, kbuild test robot wrote: >> From: Fengguang Wu >> >> fs/btrfs/volumes.c:742:10-17: WARNING: ERR_CAST can be used with fs_devices >> >> >> Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) >> >> Generated by: scripts/coccinelle/api/err_cast.cocci >> >> Fixes: bf155c98d312 ("btrfs: get device pointer from device_list_add()") >> CC: Anand Jain >> Signed-off-by: Fengguang Wu > > Thanks for the fix, I'll fold it to the patch. Oh. I just saw this email thread, err my filters. sorry. Thanks for the fix. Anand > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >