Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3975357pxf; Tue, 16 Mar 2021 02:32:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXxDEhpepEHOq6KVDB++IYSEKIFP1aZ8T6RwJJVzGV9vjJI9eGa+LcO49kO17jkpWW5ljF X-Received: by 2002:a05:6402:b85:: with SMTP id cf5mr35781378edb.248.1615887130067; Tue, 16 Mar 2021 02:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615887130; cv=none; d=google.com; s=arc-20160816; b=nDGTE+pDGQWE1ttxHEMEQcMMvzdfTQ8mL3sCqZ4I18wkyW9ZAAtpzsg11n7IspyzDO S0gEd3RX64/2u275Od9LaFJRrBSgj1btJkd7g93avVW5QrvRgcZjxP6ozE/0PAzCHaMz n8HBlGlaM6TVDYU/sY5CNverKJ436H9e+LHXD1Z7pSqyMem0gz+p/oyB2lIy2wk8K7du KZOnjeKywiIw7Q1sTl9JvKjs5GbTgtuD51hz9EhhJXIKYH9u4NZJTh2s0Vy9168HtwDY ChdiF6VgXyFDEKUnoLFgsi9sTYFVDBxqPAMIBEwmM4x1UN/uibdzWQsnwOOuN0gkyWMg DDbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Fe9Kp0JxDrcNckF3HAReL46k4wvRBMl7z0XM+khpPI4=; b=q7cJnBW7jU6K2bosYzAew+LTymLqyKk+AAwlhtQx30zdtIdz/PIDBB9NRp6l1allQC 5x4L8ZdWCT4LJ2ZhOO83OHn/04W7iNkmXEhDzN8ru7d0AilBM8i96S9tbY82Iu0hzdhd 53FWPv0I2LUhVqXkG7khhuvlsFs1UQ0qog8HbfRRDlSxOdOh3F2VyT3bwIrzCRwzuBRB /k3PnRwJVI+x8x7CbNbgAp6LSBxmTKYASmlGgoUmWLA8LhXesO/QVA1btAEP0FI4zI4Q i3VdbeNhI2b2gRu8yIHzEUr8vpCKgDqhR9jFu5nchPGEF8x16kHyFS0mow57e2mZy437 cWkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si13703245edv.569.2021.03.16.02.31.47; Tue, 16 Mar 2021 02:32:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234152AbhCPIL0 (ORCPT + 99 others); Tue, 16 Mar 2021 04:11:26 -0400 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:51984 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234196AbhCPIKz (ORCPT ); Tue, 16 Mar 2021 04:10:55 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R821e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0US7EAO1_1615882251; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0US7EAO1_1615882251) by smtp.aliyun-inc.com(127.0.0.1); Tue, 16 Mar 2021 16:10:52 +0800 From: Yang Li To: colyli@suse.de Cc: kent.overstreet@gmail.com, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] bcache: use NULL instead of using plain integer as pointer Date: Tue, 16 Mar 2021 16:10:50 +0800 Message-Id: <1615882250-17846-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the following sparse warnings: drivers/md/bcache/features.c:22:16: warning: Using plain integer as NULL pointer Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/md/bcache/features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/bcache/features.c b/drivers/md/bcache/features.c index d636b7b..6d2b7b8 100644 --- a/drivers/md/bcache/features.c +++ b/drivers/md/bcache/features.c @@ -19,7 +19,7 @@ struct feature { static struct feature feature_list[] = { {BCH_FEATURE_INCOMPAT, BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE, "large_bucket"}, - {0, 0, 0 }, + {0, 0, NULL }, }; #define compose_feature_string(type) \ -- 1.8.3.1