Module Name:    src
Committed By:   maxv
Date:           Sun Jun  3 10:45:16 UTC 2018

Modified Files:
        src/sys/dev/pci: ahc_pci.c

Log Message:
Constify ahc_pci_ident_table[] so that it lands in .rodata (1488 bytes).


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/dev/pci/ahc_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ahc_pci.c
diff -u src/sys/dev/pci/ahc_pci.c:1.71 src/sys/dev/pci/ahc_pci.c:1.72
--- src/sys/dev/pci/ahc_pci.c:1.71	Thu Jul 14 04:00:46 2016
+++ src/sys/dev/pci/ahc_pci.c	Sun Jun  3 10:45:16 2018
@@ -39,7 +39,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGES.
  *
- * $Id: ahc_pci.c,v 1.71 2016/07/14 04:00:46 msaitoh Exp $
+ * $Id: ahc_pci.c,v 1.72 2018/06/03 10:45:16 maxv Exp $
  *
  * //depot/aic7xxx/aic7xxx/aic7xxx_pci.c#57 $
  *
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahc_pci.c,v 1.71 2016/07/14 04:00:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahc_pci.c,v 1.72 2018/06/03 10:45:16 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -266,7 +266,7 @@ static ahc_device_setup_t ahc_aha394XX_s
 static ahc_device_setup_t ahc_aha494XX_setup;
 static ahc_device_setup_t ahc_aha398XX_setup;
 
-static struct ahc_pci_identity ahc_pci_ident_table [] =
+static const struct ahc_pci_identity ahc_pci_ident_table[] =
 {
 	/* aic7850 based controllers */
 	{

Reply via email to