* grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add

missing attribute.
	* grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
This commit is contained in:
Vladimir Serbinenko 2013-11-08 09:27:56 +01:00
parent c4f11a2a99
commit e2a6810069
3 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
missing attribute.
* grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com> 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/misc.c (grub_divmod64): Don't fallback to * grub-core/kern/misc.c (grub_divmod64): Don't fallback to

View file

@ -201,7 +201,7 @@ grub_gdb_hex2int (char **ptr, grub_uint64_t *int_value)
} }
/* This function does all command procesing for interfacing to gdb. */ /* This function does all command procesing for interfacing to gdb. */
void void __attribute__ ((regparm(3)))
grub_gdb_trap (int trap_no) grub_gdb_trap (int trap_no)
{ {
unsigned int sig_no; unsigned int sig_no;

View file

@ -52,12 +52,16 @@ typedef unsigned char grub_uint8_t;
#include <grub/types.h> #include <grub/types.h>
#include <grub/misc.h> #include <grub/misc.h>
#endif #endif
#ifdef __i386__
#define REED_SOLOMON_ATTRIBUTE __attribute__ ((regparm(3)))
#else
#define REED_SOLOMON_ATTRIBUTE
#endif
void void
grub_reed_solomon_recover (void *ptr_, grub_size_t s, grub_size_t rs) grub_reed_solomon_recover (void *ptr_, grub_size_t s, grub_size_t rs)
#ifdef __i386__ REED_SOLOMON_ATTRIBUTE;
__attribute__ ((regparm(3))) #else
#endif #define REED_SOLOMON_ATTRIBUTE
;
#endif #endif
#define GF_SIZE 8 #define GF_SIZE 8
@ -381,7 +385,7 @@ grub_reed_solomon_add_redundancy (void *buffer, grub_size_t data_size,
} }
#endif #endif
void void REED_SOLOMON_ATTRIBUTE
grub_reed_solomon_recover (void *ptr_, grub_size_t s, grub_size_t rs) grub_reed_solomon_recover (void *ptr_, grub_size_t s, grub_size_t rs)
{ {
gf_single_t *ptr = ptr_; gf_single_t *ptr = ptr_;