Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1011833imu; Mon, 5 Nov 2018 12:18:22 -0800 (PST) X-Google-Smtp-Source: AJdET5eoIamxjNvwSt8iMedb7UTrwXpSBHXsY0oQBSqJDaAJSijMHamC868EYitYkLF2w7vtQNeW X-Received: by 2002:a17:902:b18c:: with SMTP id s12-v6mr9520572plr.16.1541449102383; Mon, 05 Nov 2018 12:18:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541449102; cv=none; d=google.com; s=arc-20160816; b=gkQnuPi9FjjjeZ3o4gHLf9SdDleHlRtADLQjaldF8OtYxfd5xdFeQBBBDtVw+91ib1 dNMYPscgF0gNCw8R3Hs3IgToXy4YnV4TaroYAtg9ClyREigRnLrdrwXGFNW6TDsDTUNY omniTeC6wPDiDlc1Jllv/KKoOr6noNav7V7PmHfvt5ReF3Fq9bEnSD2kCBCHur+yI1Ch fgTCAiOEkg8121wSQiaXNFZah/S7IWlGqr9SPVY/t9n3omjHQlalNs9bPBI9MedARVT3 jCvgGFn0ePmqyRJ/eTWfkymXibjV0MW/TaDZdueTJNm+Ht2SRkKUnvSs2DVBOibEwMfn O6NA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+4+xrKqcCnzzEGa97yidlIN9VxNjgsG971WTiE2U09o=; b=xdDoRLzZNoUh9t6wCmKymh8gUs8/+SjA49Wbd0SSwwkCujzJopMVI64P43dyz7Nsvg Z9aQ8s3GEQBvusGDeiBQB+JBfeF7Vb7jM/PTGhSvVsVstW3oGZ/7zOObLbREMoopRCT5 g8tSlwsJbumXrwWssyNT6GC1rWEq0WB00/ghOEENpHJ0Dc/1ZeJ0jWOIjXU4VizM0mDj qU8mltLqyaR+L13Oj4pe87JM8XH8oonCl4TJfZKcZzR0Vew/Fltyt3jQGpQubDeQkagT flqN9zeQewdMKdcirz6nQmGQTfOU60ss4yCG+LlexqivSJNxxdTLsGfpGVOgZcIVbUEV f+SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bsT6xS1e; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m123-v6si30754382pfd.112.2018.11.05.12.18.05; Mon, 05 Nov 2018 12:18:22 -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; dkim=pass header.i=@chromium.org header.s=google header.b=bsT6xS1e; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730161AbeKFFjG (ORCPT + 99 others); Tue, 6 Nov 2018 00:39:06 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40554 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730109AbeKFFjF (ORCPT ); Tue, 6 Nov 2018 00:39:05 -0500 Received: by mail-pl1-f193.google.com with SMTP id q19-v6so1996346pll.7 for ; Mon, 05 Nov 2018 12:17:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+4+xrKqcCnzzEGa97yidlIN9VxNjgsG971WTiE2U09o=; b=bsT6xS1eF+TBKCO6uMQSYsGzUdElb/830fFPpNBbg7AmPDQuG+IQx6RYS/7zNMnhc0 6PU61H8Y5I2yOuM/57zJpzo01b6uPnXUWVLkYN7FS4FJvRqJM2l9nxqSxA7beL9/404x HdnenMT/l3Mr9JEeltlEipd4ZQvDUXD4s2LGQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+4+xrKqcCnzzEGa97yidlIN9VxNjgsG971WTiE2U09o=; b=YEW0nwTKhZhQ2E7rndeH5eNvdgDydIJ2aNlh/VKjQdX+SRd4v9/5oczD8JQfC6vMWw FNpu4g+uTSFYaGZpJ5bA9jKTVP6ljOxlIZikZD4B29PZbOqGzKF6NBZIjlpxR4RZlQPg wE/fWF5xqgHPF3DsYsArJHAMR8Tljciq5ylbpUMZF4C3ckGfoR0XWOLJGh35QPpl8Y9k JSf83hcojjUZU+qP+2a+cOSsam03CvK1v5RmkUuuhzX4OJE3XeqmU6oRWLqJpniVNmFl 4bTFWbympAh+AjbvJZaw7HunNga/De6ywCtuVOj9PK/QT0BdczTONu6+PtX9dTRY6AH4 Q27w== X-Gm-Message-State: AGRZ1gIiWy+7NFCr+DnQcbXLt2P4RoczTnaLypSN1/w++fVKGNaKEUH/ pDoILZTCexohU9tNTnt9v9DuNw== X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr23958956pla.178.1541449062980; Mon, 05 Nov 2018 12:17:42 -0800 (PST) Received: from zsm-linux.mtv.corp.google.com ([2620:15c:202:201:1b7c:8280:c835:b226]) by smtp.googlemail.com with ESMTPSA id e2-v6sm45972561pgv.25.2018.11.05.12.17.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 12:17:42 -0800 (PST) From: Zubin Mithra To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Cc: groeck@chromium.org, keescook@chromium.org, zsm@chromium.org Subject: [PATCH] x86/pci: Annotate 'pci_root_ops' with __ro_after_init Date: Mon, 5 Nov 2018 12:17:35 -0800 Message-Id: <20181105201735.72026-1-zsm@chromium.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_X86_INTEL_MID is set pci_root_ops is written to inside intel_mid_pci_init(which is marked __init) and not modified after. This makes pci_root_ops a suitable candidate for annotating as __ro_after_init. Signed-off-by: Zubin Mithra --- arch/x86/pci/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index d4ec117c1142..204ee80cfa63 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -67,7 +67,7 @@ static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int siz devfn, where, size, value); } -struct pci_ops pci_root_ops = { +struct pci_ops pci_root_ops __ro_after_init = { .read = pci_read, .write = pci_write, }; -- 2.19.1.930.g4563a0d9d0-goog