Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1256936pxb; Thu, 4 Mar 2021 07:11:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZkewVPPRpXDWVA1xdIMYdelfxuoFC/8Tws0ldts9jA3KYLr1VBTqdjL1x6TGFfJ6/Gnov X-Received: by 2002:a05:6402:520b:: with SMTP id s11mr4945371edd.212.1614870714995; Thu, 04 Mar 2021 07:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614870714; cv=none; d=google.com; s=arc-20160816; b=wOtO5+4BZZyzOLUhnRy8b5Tje5ZGjt20GcA8hra+bDlTkG8GXwWe6rofEXcrYaswFa 27Nig5kGfbvuOtUPAeRMSad/0ZTbG35RB07YcZld4FQ3G7JG6CGejGvXlBT7WMr9uoZe 6BOuCVdYvFafQz/WItt9jFkdJbe1XAWkWa2W9TsUQVKWOEonISheSSMEIGRvg+3OvyI+ 5h6ak9raBhAJG9CfV+uFUGi3baQyGUbQMCIJgLdwad2Dcdz5Xx/nGrgtpCVy1RhLhB7J rdXC0+dnL3dOij/JFsgZDX+ydKG/Tf1q0qh7Hxv3m0sqpfKZ87CDMW0C6gYQ/pTz2JHl cHrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=YCfAS/NvKLJVORlELaOp02nm1nZL87+dBKjjkayvtCs=; b=rRi9pHcWAIdTc1ULVnTcqHcFMXQvn7PRxC41ZEQJtH3Q64mYGVIB6Gcal0zEaor1zc 0TGrJvi5W4Qca3dBqVgDxyOWrHuk/MIx0bQkKHuOzoJELDn5PJ+OpBxa5IlYvZjwbzqZ bN6gseDJv7TtYxYSptRraGqrPb5STi3CjQ5oJzJIBnMWS+rPMhMQV1k4FDB83/mWLEMO b1ZqucHOIqhCTQJ9R9Puw3r8f3IdHA49/GZ7qpzSSDSDeIY2Te03hhfNmC7T5PaxKj0g FSSzr+uBTR6nmuIBfqCFGXApdcIBUAfdAQi6sj74rlw/Idb4muzC1k8DOZvFuybrFIZ7 RJzw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb13si18914164edb.315.2021.03.04.07.11.31; Thu, 04 Mar 2021 07:11:54 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235306AbhCDGiY (ORCPT + 99 others); Thu, 4 Mar 2021 01:38:24 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:13468 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235202AbhCDGhy (ORCPT ); Thu, 4 Mar 2021 01:37:54 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Drh295s9czjW5g; Thu, 4 Mar 2021 14:35:29 +0800 (CST) Received: from localhost.localdomain (10.175.102.38) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 4 Mar 2021 14:37:03 +0800 From: 'Wei Yongjun To: , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Boris Brezillon , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= CC: , , , Hulk Robot Subject: [PATCH -next] mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks' static Date: Thu, 4 Mar 2021 06:46:00 +0000 Message-ID: <20210304064600.3279138-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.102.38] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Yongjun The sparse tool complains as follows: drivers/mtd/parsers/ofpart_core.c:25:32: warning: symbol 'bcm4908_partitions_quirks' was not declared. Should it be static? This symbol is not used outside of ofpart_core.c, so this commit marks it static. Fixes: 457da931b608 ("mtd: parsers: ofpart: support BCM4908 fixed partitions") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- drivers/mtd/parsers/ofpart_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/parsers/ofpart_core.c b/drivers/mtd/parsers/ofpart_core.c index 258c06a42283..e9cb9ca28813 100644 --- a/drivers/mtd/parsers/ofpart_core.c +++ b/drivers/mtd/parsers/ofpart_core.c @@ -22,7 +22,7 @@ struct fixed_partitions_quirks { int (*post_parse)(struct mtd_info *mtd, struct mtd_partition *parts, int nr_parts); }; -struct fixed_partitions_quirks bcm4908_partitions_quirks = { +static struct fixed_partitions_quirks bcm4908_partitions_quirks = { .post_parse = bcm4908_partitions_post_parse, };