Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/pci constify the pic templates



details:   https://anonhg.NetBSD.org/src/rev/0d0497a95e4d
branches:  trunk
changeset: 932277:0d0497a95e4d
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon May 04 09:34:37 2020 +0000

description:
constify the pic templates

diffstat:

 sys/arch/x86/pci/msipic.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r d9e322c0f812 -r 0d0497a95e4d sys/arch/x86/pci/msipic.c
--- a/sys/arch/x86/pci/msipic.c Mon May 04 08:22:45 2020 +0000
+++ b/sys/arch/x86/pci/msipic.c Mon May 04 09:34:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msipic.c,v 1.21 2020/04/25 15:26:18 bouyer Exp $       */
+/*     $NetBSD: msipic.c,v 1.22 2020/05/04 09:34:37 jdolecek Exp $     */
 
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msipic.c,v 1.21 2020/04/25 15:26:18 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msipic.c,v 1.22 2020/05/04 09:34:37 jdolecek Exp $");
 
 #include "opt_intrdebug.h"
 
@@ -114,7 +114,7 @@
 
 static struct pic *msipic_find_msi_pic_locked(int);
 static struct pic *msipic_construct_common_msi_pic(const struct pci_attach_args *,
-                                                  struct pic *);
+                                                  const struct pic *);
 static void msipic_destruct_common_msi_pic(struct pic *);
 
 static void msi_set_msictl_enablebit(struct pic *, int, int);
@@ -231,7 +231,7 @@
  */
 static struct pic *
 msipic_construct_common_msi_pic(const struct pci_attach_args *pa,
-    struct pic *pic_tmpl)
+    const struct pic *pic_tmpl)
 {
        struct pic *pic;
        struct msipic *msipic;
@@ -427,7 +427,7 @@
  * Template for MSI pic.
  * .pic_msipic is set later in construct_msi_pic().
  */
-static struct pic msi_pic_tmpl = {
+static const struct pic msi_pic_tmpl = {
        .pic_type = PIC_MSI,
        .pic_vecbase = 0,
        .pic_apicid = 0,
@@ -605,7 +605,7 @@
  * Template for MSI-X pic.
  * .pic_msipic is set later in construct_msix_pic().
  */
-static struct pic msix_pic_tmpl = {
+static const struct pic msix_pic_tmpl = {
        .pic_type = PIC_MSIX,
        .pic_vecbase = 0,
        .pic_apicid = 0,



Home | Main Index | Thread Index | Old Index