1. 12 7月, 2017 2 次提交
  2. 02 12月, 2016 2 次提交
  3. 17 5月, 2016 3 次提交
  4. 17 3月, 2016 1 次提交
  5. 15 3月, 2016 3 次提交
  6. 25 1月, 2016 2 次提交
  7. 14 1月, 2016 1 次提交
  8. 13 1月, 2016 1 次提交
  9. 11 7月, 2015 1 次提交
    • A
      scsi: fix compiler warning with DEBUG and 48bit LBAs · c7d0fd79
      Andre Przywara 提交于
      Commit 2b42c931 ("ahci: support LBA48 data reads for 2+TB drives")
      introduced conditional code which triggers a warning when compiled
      with DEBUG enabled:
      
      In file included from common/cmd_scsi.c:12:0:
      common/cmd_scsi.c: In function 'scsi_read':
      include/common.h:109:4: warning: 'smallblks' may be used uninitialized in this function [-Wmaybe-uninitialized]
      ...
      
      Since this is for debug only, take the easy way and initialize the
      variable explicitly on declaration to avoid the warning.
      (Fix a nearby whitespace error on the way.)
      Tested-by: NBin Meng <bmeng.cn@gmail.com>
      Signed-off-by: NAndre Przywara <osp@andrep.de>
      c7d0fd79
  10. 13 6月, 2015 2 次提交
  11. 23 4月, 2015 1 次提交
  12. 07 2月, 2015 1 次提交
  13. 27 10月, 2014 1 次提交
  14. 19 2月, 2014 1 次提交
  15. 24 7月, 2013 1 次提交
  16. 16 7月, 2013 1 次提交
    • S
      scsi: Correct types of scsi_read/write() · 4f6aa346
      Simon Glass 提交于
      The block device expects to see lbaint_t for the blknr parameter. Change
      the SCSI read/write functions to suit.
      
      This fixes the following build warnings for coreboot:
      
      cmd_scsi.c: In function ‘scsi_scan’:
      cmd_scsi.c:119:30: error: assignment from incompatible pointer type [-Werror]
      cmd_scsi.c:120:32: error: assignment from incompatible pointer type [-Werror]
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      4f6aa346
  17. 02 5月, 2013 1 次提交
  18. 02 4月, 2013 1 次提交
    • Y
      Consolidate bool type · 472d5460
      York Sun 提交于
      'bool' is defined in random places. This patch consolidates them into a
      single header file include/linux/types.h, using stdbool.h introduced in C99.
      
      All other #define, typedef and enum are removed. They are all consistent with
      true = 1, false = 0.
      
      Replace FALSE, False with false. Replace TRUE, True with true.
      Skip *.py, *.php, lib/* files.
      Signed-off-by: NYork Sun <yorksun@freescale.com>
      472d5460
  19. 03 11月, 2012 4 次提交
  20. 26 9月, 2012 1 次提交
  21. 07 3月, 2012 1 次提交
  22. 26 7月, 2011 3 次提交
  23. 12 1月, 2011 1 次提交
  24. 29 11月, 2010 2 次提交
  25. 25 7月, 2010 1 次提交
  26. 05 7月, 2010 1 次提交
    • W
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk 提交于
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      54841ab5