Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp850567ybl; Wed, 28 Aug 2019 06:18:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2ObmMoFuKAhBxZwxsy2d+vAoDXbfOPLK16b7iL/ALq9rfmfN5bjvma23fs4l79QwtIk8q X-Received: by 2002:a17:902:788b:: with SMTP id q11mr4311741pll.308.1566998335318; Wed, 28 Aug 2019 06:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566998335; cv=none; d=google.com; s=arc-20160816; b=g7iGwSNLbH2E/y1w1gDBzTIna4anG2bnARE5V0I2kre9ZWvT0R84q0IvYO1y2EE9rB +I20F2faWZvJHKA6zDdMwN1GEyOCAjHmn4DFkr9GcHrVo4WUw9Hndu2Jl8YVi+2dV7kK UIWWm6lCniBMmlmZtvdvhRW3RDI0WR27OWm+7CT4es7cWcLf/xWdOdaoIIeqxZShqjZo tI4jEhrvXN2VKPGR7hiWF6vLCjeoGDcwvNso9sJaMyovJntXwdERqE0GbH54ZuSqoOv3 /7NhVGkx4FViZKVrMyEiuh3nkCHoZ5NJxyRmwABWHw8UJ4mLmyt75vCuXSmYLphJ/ixi nvzg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eeQmuRlJii9blLs3gsvZZwNMRSX9X8xvwY0ILQq50Ac=; b=JPnhDqBzzTfxYVX22naKswYevwgSl9pwsyOgSw1dtQlT886pQqnOrHNVN56oSe09HN jQxfIHElaS1wdgAKMkN08CKgz0kBewGkZXTdUBUj5BniDvhQTTMgCHKdQVKIA8P+sII1 R7JB/K6nYH+ZvRUuM9F7p8ia/DLFye8XVaN15LWHRAoNuO2kf2t9Tc7xlYuflqsn1bWc Y40qd/kEF9JwT4RRW1AtK5XGsfY4pJY7N6JlKTPmXO9Ai4ajmxcy6Brspbxo1Sk+klVy 2Z3OAjET/frXjAjFfbbzldyspQayi8wAATwmvKY6HxSG18hVO9HchiD0JWEVnMfiTUXi XDng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=XOCTjKm4; 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 a21si2170544pgv.185.2019.08.28.06.18.39; Wed, 28 Aug 2019 06:18:55 -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=fail header.i=@gmail.com header.s=20161025 header.b=XOCTjKm4; 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 S1726441AbfH1NRi (ORCPT + 99 others); Wed, 28 Aug 2019 09:17:38 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38503 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbfH1NRh (ORCPT ); Wed, 28 Aug 2019 09:17:37 -0400 Received: by mail-wr1-f66.google.com with SMTP id e16so2482691wro.5; Wed, 28 Aug 2019 06:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eeQmuRlJii9blLs3gsvZZwNMRSX9X8xvwY0ILQq50Ac=; b=XOCTjKm46R75ZeTeiDtsqqXNciUbDOs/OsFliD4+CAEV8CYSdRwZUNhV6+OdOymVgq KYB/jUKzaX6AIPrhdzKoKL/Ngt25jxRZqAhwLUtXounHnT28vq37iuyre+GaTkbUIzWQ DaAh6wDdlc0jzJQl107Rp/iX4IWkcia3Z8XolH4JNtGY9vWuCMxNtJEsA/MLG+x0y0/j uVAk3qhj65pWYDd5PCn2e69n+4e2l9JkLxIqGg2ZbVu7TmXWjou3Gq5Hs8S9VzZyxaOC 8V+W1fzXdeSBIkEpTAt5d7jAtyyQyhbqpAdHToXdn0HHdiRYcLTZhJuhg0tTlzJ4AcEd pHHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=eeQmuRlJii9blLs3gsvZZwNMRSX9X8xvwY0ILQq50Ac=; b=Yp6XNsBfJKhNkIWKqhqhPD+avVJVKNBKQH7SmcVd6sTobklcknZzaj8ovDqvH0EjUS qTScbcVla4ACzr2v3sHzYa4M8hCRT/Ln7yCIY2YDYvSlPVeskAZslhOdokbUKSHQ2iTI XnXP6PyljSi2Xu2YlMp8xozMTv9kPO7NceRkfe0Tfgc6Gny8Sp+5A/eEEh788zFGohxy qicBOdRrhtk7HhjlQJE6piW/HwPjeiq7KhshQHmx/CVLb1scMYS7fbzmEO4FgsYHpiGU rBtrIv5WPtr2HPrOW4AmcxmANxfJuEuPAPONiNjWIt9yaB0fbxvXVEGzGQJuyHvP59x6 D0Ow== X-Gm-Message-State: APjAAAVkYyao2/Eh/VQRXFPC8qZsS0WE7+s2OmH7UIdkRaEdDifWUEnt opo0TFsE+fDjWP3rWrNj7iI= X-Received: by 2002:adf:cd8e:: with SMTP id q14mr2194051wrj.187.1566998255405; Wed, 28 Aug 2019 06:17:35 -0700 (PDT) Received: from localhost.localdomain (ip5b4096c3.dynamic.kabel-deutschland.de. [91.64.150.195]) by smtp.gmail.com with ESMTPSA id w7sm3114987wrn.11.2019.08.28.06.17.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2019 06:17:34 -0700 (PDT) From: Krzysztof Wilczynski To: Bjorn Helgaas Cc: Thomas Petazzoni , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] PCI: Move static keyword to the front of declarations in pci-bridge-emul.c Date: Wed, 28 Aug 2019 15:17:33 +0200 Message-Id: <20190828131733.5817-1-kw@linux.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190826151436.4672-1-kw@linux.com> References: <20190826151436.4672-1-kw@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 of pci_regs_behavior and pcie_cap_regs_behavior, and resolve the following compiler warning that can be seen when building with warnings enabled (W=1): drivers/pci/pci-bridge-emul.c:41:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static struct pci_bridge_reg_behavior pci_regs_behavior[] = { ^ drivers/pci/pci-bridge-emul.c:176:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static struct pci_bridge_reg_behavior pcie_cap_regs_behavior[] = { ^ Signed-off-by: Krzysztof Wilczynski --- Changes in v2: Update commit message to include compiler warning. drivers/pci/pci-bridge-emul.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci-bridge-emul.c b/drivers/pci/pci-bridge-emul.c index 06083b86d4f4..5fd90105510d 100644 --- a/drivers/pci/pci-bridge-emul.c +++ b/drivers/pci/pci-bridge-emul.c @@ -38,7 +38,7 @@ struct pci_bridge_reg_behavior { u32 rsvd; }; -const static struct pci_bridge_reg_behavior pci_regs_behavior[] = { +static const struct pci_bridge_reg_behavior pci_regs_behavior[] = { [PCI_VENDOR_ID / 4] = { .ro = ~0 }, [PCI_COMMAND / 4] = { .rw = (PCI_COMMAND_IO | PCI_COMMAND_MEMORY | @@ -173,7 +173,7 @@ const static struct pci_bridge_reg_behavior pci_regs_behavior[] = { }, }; -const static struct pci_bridge_reg_behavior pcie_cap_regs_behavior[] = { +static const struct pci_bridge_reg_behavior pcie_cap_regs_behavior[] = { [PCI_CAP_LIST_ID / 4] = { /* * Capability ID, Next Capability Pointer and -- 2.22.1