Print this page
8465 aggressive-loop-optimizations error in rt2860.c

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/rwn/rt2860.c
          +++ new/usr/src/uts/common/io/rwn/rt2860.c
   1    1  /*
        2 + * Copyright 2017 Gary Mills
   2    3   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
   3    4   * Use is subject to license terms.
   4    5   */
   5    6  
   6    7  /*
   7    8   * Copyright (c) 2007, 2008
   8    9   *      Damien Bergamini <damien.bergamini@free.fr>
   9   10   *
  10   11   * Permission to use, copy, modify, and distribute this software for any
  11   12   * purpose with or without fee is hereby granted, provided that the above
↓ open down ↓ 497 lines elided ↑ open up ↑
 509  510                      RT2860_EEPROM_PWR5GHZ_BASE1 + i / 2);
 510  511                  sc->txpow1[i + 14] = (int8_t)(val & 0xff);
 511  512                  sc->txpow1[i + 15] = (int8_t)(val >> 8);
 512  513  
 513  514                  val = rt2860_eeprom_read(sc,
 514  515                      RT2860_EEPROM_PWR5GHZ_BASE2 + i / 2);
 515  516                  sc->txpow2[i + 14] = (int8_t)(val & 0xff);
 516  517                  sc->txpow2[i + 15] = (int8_t)(val >> 8);
 517  518          }
 518  519          /* fix broken Tx power entries */
 519      -        for (i = 0; i < 36; i++) {
      520 +        for (i = 0; i < 35; i++) {
 520  521                  if (sc->txpow1[14 + i] < -7 || sc->txpow1[14 + i] > 15)
 521  522                          sc->txpow1[14 + i] = 5;
 522  523                  if (sc->txpow2[14 + i] < -7 || sc->txpow2[14 + i] > 15)
 523  524                          sc->txpow2[14 + i] = 5;
 524  525                  RWN_DEBUG(RT2860_DBG_EEPROM, "rwn: rt2860_read_eeprom(): "
 525  526                      "chan %d: power1=%d, power2=%d\n",
 526  527                      rt2860_rf2850[14 + i].chan, sc->txpow1[14 + i],
 527  528                      sc->txpow2[14 + i]);
 528  529          }
 529  530  
↓ open down ↓ 2666 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX