Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2267568ybe; Tue, 3 Sep 2019 10:14:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdvqB5654N0F3Ie1TqC13xaYI6TGhhv98jMRaTHbRHu4aIvNG3HHDjtaRYORO6m0Z2WhPT X-Received: by 2002:a17:902:1a6:: with SMTP id b35mr35075422plb.228.1567530899173; Tue, 03 Sep 2019 10:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567530899; cv=none; d=google.com; s=arc-20160816; b=IZquNTTFp6Fe9xWqHknReO8lZgBNa9eZ6+MhmBDPcbNuZnkxMaAxFueyddw/GQsHQa ogaHSG+EWUQlKLVd4EqOveF5LItPiB/wRPjPfaSN47DGgIU6try6gxqJxDK/c93RrqE0 K9TBWVKgeZvWcrlzLndgu8O5hmVYju1+nvUojSXVwcT914EAKALHBCkdRPiQt6y8WfIR sP0Dyou3xOICVEO36V9KbyoASwSUTNOvNtmsCKG8A8tFPJ/VLOysNN4OkuDOoaUW/Aj3 lEzdrWOz/q1Ezm+Kp46Pyju6t2KhZf6v+rh95rtbBP6c2vLe8IirJvxrDwG3xc7HKJl0 grzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=p2OAMuKR6lo77QHubok9NEht3bhgf2kThAR55mTE3P4=; b=cp0+LUUHwdWkGI6Qm1me5bV6imO68TLkONVcC5LYyjeIgifDIJqnkK2s+i7YrgaIee oH3FYy11ica0/cLsd9JgQpZ3PGvWcr98q2Wz7ox6BH/VHmFpCwiket+gFz/kpCtUB4iG 75Y5ZUpb/bii3P56goDWlZUFGo6l+kdvNk+aaNwqa3/CxOHs5Hj1yS2Yq6SR4qX7opbT Cb2kN+TUyKq6IMqMa+b4ETSHs8OADZsJagvwWOmpPQAZHJbOddQ0YwHYNq3lvStIBcNq a9fUOuhvKiJUi3vcbcM0dJPFWUIa6ukg6reST0oSSMFK2it2a+Ikc3Tf61iTSpwO3mXW T28g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mva18n3M; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si9980085pfa.186.2019.09.03.10.14.38; Tue, 03 Sep 2019 10:14:59 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=mva18n3M; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729838AbfICRMd (ORCPT + 99 others); Tue, 3 Sep 2019 13:12:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:48778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729644AbfICRMc (ORCPT ); Tue, 3 Sep 2019 13:12:32 -0400 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6AACA2339D for ; Tue, 3 Sep 2019 17:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567530751; bh=/wdQ1YhXsTvuDiWZTQITULzZHMbY+cl0uiFulxQoW6o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mva18n3MRZ/TlzdcC5FSQiScaVxm5H2GoC7okBNeqLeHRiydEvAtmvwZ+nPpmAbgQ 9GE0rivo3Mz4yKUHcu155m/J7PS+FgQjOACVQvmVissBDLW2OGs+g3GLCduffIdi/c Zm77bHIIEsG+gW4PWciTGULVTnMo3Ik8EzS02VO8= Received: by mail-wr1-f46.google.com with SMTP id u16so18344956wrr.0 for ; Tue, 03 Sep 2019 10:12:31 -0700 (PDT) X-Gm-Message-State: APjAAAWchY3K8sq45n5iduhQ4ASpSIslUjEL56VaMIqSE+uqvkNhP+6J xYa36p9xwbjPdWC7v8rMh1G+hsw/mG+LoQ39M5k= X-Received: by 2002:adf:fe0f:: with SMTP id n15mr24120785wrr.343.1567530749864; Tue, 03 Sep 2019 10:12:29 -0700 (PDT) MIME-Version: 1.0 References: <20190903113651.3862-1-kw@linux.com> In-Reply-To: <20190903113651.3862-1-kw@linux.com> From: Guo Ren Date: Wed, 4 Sep 2019 01:12:18 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] csky: Move static keyword to the front of declaration To: Krzysztof Wilczynski Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thx, Acked by: Guo Ren You may also modify others' =E2=9E=9C linux-next git:(linux-next-for-v5.4) =E2=9C=97 grep "const stati= c" * -r arch/csky/kernel/perf_event.c:const static struct of_device_id csky_pmu_of_device_ids[] =3D { arch/nds32/kernel/perf_event_cpu.c:const static struct of_device_id cpu_pmu_of_device_ids[] =3D { drivers/gpu/drm/amd/display/dc/core/dc.c:const static char DC_BUILD_ID[] =3D "production-build"; drivers/gpu/drm/msm/dsi/dsi_cfg.c:const static struct msm_dsi_host_cfg_ops msm_dsi_v2_host_ops =3D { drivers/gpu/drm/msm/dsi/dsi_cfg.c:const static struct msm_dsi_host_cfg_ops msm_dsi_6g_host_ops =3D { drivers/gpu/drm/msm/dsi/dsi_cfg.c:const static struct msm_dsi_host_cfg_ops msm_dsi_6g_v2_host_ops =3D { drivers/leds/leds-ti-lmu-common.c:const static int ramp_table[16] =3D {2048, 262000, 524000, 1049000, 2090000, drivers/leds/leds-lm3532.c:const static int als_imp_table[LM3532_NUM_IMP_VALS] =3D {37000, 18500, 12330, drivers/leds/leds-lm3532.c:const static int als_avrg_table[LM3532_NUM_AVG_VALS] =3D {17920, 35840, 71680, drivers/leds/leds-lm3532.c:const static int ramp_table[LM3532_NUM_RAMP_VALS] =3D { 8, 1024, 2048, 4096, 8192, drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:const static u8 he_if_types_ext_capa_sta[] =3D { drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:const static struct wiphy_iftype_ext_capab he_iftypes_ext_capa[] =3D { drivers/net/ethernet/qlogic/qed/qed_iwarp.c:const static char *iwarp_state_names[] =3D { drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:const static char *g_dsaf_mode_match[DSAF_MODE_MAX] =3D { drivers/pci/pci-bridge-emul.c:const static struct pci_bridge_reg_behavior pci_regs_behavior[] =3D { drivers/pci/pci-bridge-emul.c:const static struct pci_bridge_reg_behavior pcie_cap_regs_behavior[] =3D { fs/ceph/export.c: const static int snap_handle_length =3D fs/ceph/export.c: const static int handle_length =3D fs/ceph/export.c: const static int connected_handle_length =3D fs/unicode/utf8-selftest.c:const static struct { fs/unicode/utf8-selftest.c:const static struct { On Tue, Sep 3, 2019 at 7:36 PM Krzysztof Wilczynski wrote: > > Move the static keyword to the front of declaration of > csky_pmu_of_device_ids, and resolve the following compiler > warning that can be seen when building with warnings > enabled (W=3D1): > > arch/csky/kernel/perf_event.c:1340:1: warning: > =E2=80=98static=E2=80=99 is not at beginning of declaration [-Wold-styl= e-declaration] > > Signed-off-by: Krzysztof Wilczynski > --- > Related: https://lore.kernel.org/r/20190827233017.GK9987@google.com > > arch/csky/kernel/perf_event.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/csky/kernel/perf_event.c b/arch/csky/kernel/perf_event.= c > index 4c1a1934d76a..bc33e4ed189d 100644 > --- a/arch/csky/kernel/perf_event.c > +++ b/arch/csky/kernel/perf_event.c > @@ -1337,7 +1337,7 @@ int csky_pmu_device_probe(struct platform_device *p= dev, > return ret; > } > > -const static struct of_device_id csky_pmu_of_device_ids[] =3D { > +static const struct of_device_id csky_pmu_of_device_ids[] =3D { > {.compatible =3D "csky,csky-pmu"}, > {}, > }; > -- > 2.22.1 > --=20 Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/