Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5969318ybx; Mon, 11 Nov 2019 01:34:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxHIWWmJOw9T+CRQsFh0vlg11CpJCDVhzxH2RmOx/zxXI/LS17pY91ZlRD7VIhJluFtlehl X-Received: by 2002:aa7:d5ce:: with SMTP id d14mr10971751eds.64.1573464844573; Mon, 11 Nov 2019 01:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573464844; cv=none; d=google.com; s=arc-20160816; b=txdbiXx5qPnk9tJLpSUduJw0sNy2NZggezQpL0m9UWV8bSv3NMOaDjA3ECaOjBvuKH XqD5TohT++cJM0luux/2RVVz1qWiQP8dVyNpPze5X26MOwNjbgNDDxm6aAzOouTrIazT umqcoeNbvlKhuOxHvVIymd88jppytY8m8pmu7vVvzObEHwpWj/xB9hbJPnMz8QJw/JD2 delpz64HVkfEmfQnuX78jkgICH8aGIugf9kASEOc/h1nCo65zVuY4WFntPK+CG31J016 dcYZ6jKeK5kgT951WsRjDG0sFavdEde1gvElnQVEVah6pKTDN4e9+VM/eRie4kikRcSA uozg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=g+Y47ixgdLTRJ/e6cwDXddUx3V9Mw4ZNvf6IJ3LBpgc=; b=BHPCMxfR3oddeeXT5uhqiEHM7Kxxg72l8/b4uCA9rcPp0o79laTMvlg8lwLlmOcg9B 44OCZiglsvBqDXAfvBoP2AUuK4aqyDMF6EA7f8Rk7SpQ0m3Q1wLtzVmmuK8sQDKfw1Uj FtsOfGOQsWlpkQBoCGgdzppTaQC/jySvfrl78dtsqZWqZkgKzATjkp/ESuwd2p4dvjFp XTIIyGT7pdPI7/n5dLlpoiFH+cPKITW75OCEeBVWxQDaityutMEbLPtJfi6JV2/C994E SqXit4JTbhTwW6RZBG8co3UECbRaJuwHwTau2f0hbULRUk6Z7uD194QZBIpW1M3ktOli ektg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p21si10288681edc.305.2019.11.11.01.33.42; Mon, 11 Nov 2019 01:34:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbfKKJbA (ORCPT + 99 others); Mon, 11 Nov 2019 04:31:00 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:55636 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726768AbfKKJbA (ORCPT ); Mon, 11 Nov 2019 04:31:00 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1F824C5D51E46681689C; Mon, 11 Nov 2019 17:30:58 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Mon, 11 Nov 2019 17:30:51 +0800 From: zhengbin To: , , , , , CC: Subject: [PATCH] nds32: Use static const, not const static Date: Mon, 11 Nov 2019 17:38:16 +0800 Message-ID: <1573465096-39896-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the static keyword to the front of declarations. Reported-by: Hulk Robot Signed-off-by: zhengbin --- arch/nds32/kernel/perf_event_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nds32/kernel/perf_event_cpu.c b/arch/nds32/kernel/perf_event_cpu.c index 334c2a6..0ce6f9f 100644 --- a/arch/nds32/kernel/perf_event_cpu.c +++ b/arch/nds32/kernel/perf_event_cpu.c @@ -1119,7 +1119,7 @@ static void cpu_pmu_init(struct nds32_pmu *cpu_pmu) on_each_cpu(cpu_pmu->reset, cpu_pmu, 1); } -const static struct of_device_id cpu_pmu_of_device_ids[] = { +static const struct of_device_id cpu_pmu_of_device_ids[] = { {.compatible = "andestech,nds32v3-pmu", .data = device_pmu_init}, {}, -- 2.7.4