Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Constify ahc_pci_ident_table[] so that it lands ...
details: https://anonhg.NetBSD.org/src/rev/873d0789b261
branches: trunk
changeset: 319572:873d0789b261
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Jun 03 10:45:16 2018 +0000
description:
Constify ahc_pci_ident_table[] so that it lands in .rodata (1488 bytes).
diffstat:
sys/dev/pci/ahc_pci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r ad367f2720f0 -r 873d0789b261 sys/dev/pci/ahc_pci.c
--- a/sys/dev/pci/ahc_pci.c Sun Jun 03 10:37:23 2018 +0000
+++ b/sys/dev/pci/ahc_pci.c Sun Jun 03 10:45:16 2018 +0000
@@ -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_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 */
{
Home |
Main Index |
Thread Index |
Old Index