linux_dsm_epyc7002/arch/mips
Robert P. J. Day 82ddcb0405 [PATCH] extend the set of "__attribute__" shortcut macros
Extend the set of "__attribute__" shortcut macros, and remove identical
(and now superfluous) definitions from a couple of source files.

based on a page at robert love's blog:

	http://rlove.org/log/2005102601

extend the set of shortcut macros defined in compiler-gcc.h with the
following:

#define __packed                       __attribute__((packed))
#define __weak                         __attribute__((weak))
#define __naked                        __attribute__((naked))
#define __noreturn                     __attribute__((noreturn))
#define __pure                         __attribute__((pure))
#define __aligned(x)                   __attribute__((aligned(x)))
#define __printf(a,b)                  __attribute__((format(printf,a,b)))

Once these are in place, it's up to subsystem maintainers to decide if they
want to take advantage of them.  there is already a strong precedent for
using shortcuts like this in the source tree.

The ones that might give people pause are "__aligned" and "__printf", but
shortcuts for both of those are already in use, and in some ways very
confusingly.  note the two very different definitions for a macro named
"ALIGNED":

  drivers/net/sgiseeq.c:#define ALIGNED(x) ((((unsigned long)(x)) + 0xf) & ~(0xf))
  drivers/scsi/ultrastor.c:#define ALIGNED(x) __attribute__((aligned(x)))

also:

  include/acpi/platform/acgcc.h:
    #define ACPI_PRINTF_LIKE(c) __attribute__ ((__format__ (__printf__, c, c+1)))

Given the precedent, then, it seems logical to at least standardize on a
consistent set of these macros.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-11 10:51:35 -08:00
..
arc [MIPS] Use ARRAY_SIZE macro when appropriate 2007-02-06 16:53:19 +00:00
au1000 [MIPS] PB1100: Fix pile of warnings 2007-02-06 16:53:20 +00:00
basler/excite [MIPS] Define MIPS_CPU_IRQ_BASE in generic header 2007-02-06 16:53:08 +00:00
boot Add .gitignore files for MIPS. 2005-11-07 18:05:37 +00:00
cobalt [MIPS] prom_free_prom_memory cleanup 2007-02-06 16:53:09 +00:00
configs [MIPS] Malta: Resurrect MTD support for onboard flash. 2006-12-12 01:46:24 +00:00
ddb5xxx [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
dec [TC] TURBOchannel support for the DECstation 2007-02-09 16:23:16 +00:00
emma2rh [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
gt64120 [MIPS] Remove superfluous "ifdef CONFIG_KGDB". 2007-02-06 16:53:17 +00:00
jazz [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
jmr3927 [MIPS] Use ARRAY_SIZE macro when appropriate 2007-02-06 16:53:19 +00:00
kernel [PATCH] Common compat_sys_sysinfo 2007-02-11 10:51:32 -08:00
lasat [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
lib [MIPS] Fix warnings in run_uncached on 32bit kernel 2007-02-06 16:53:24 +00:00
lib-32 [MIPS] Unify memset.S 2007-02-06 16:53:12 +00:00
lib-64 [MIPS] Unify memset.S 2007-02-06 16:53:12 +00:00
math-emu [MIPS] Make sure cpu_has_fpu is used only in atomic context 2006-10-09 23:20:48 +01:00
mips-boards [MIPS] Use ARRAY_SIZE macro when appropriate 2007-02-06 16:53:19 +00:00
mm [PATCH] extend the set of "__attribute__" shortcut macros 2007-02-11 10:51:35 -08:00
momentum [MIPS] Jaguar ATX: Fix large number of warnings. 2007-02-06 16:53:22 +00:00
oprofile [MIPS] Do not allow oprofile to be enabled on SMTC. 2007-02-06 16:53:17 +00:00
pci [MIPS] Use ARRAY_SIZE macro when appropriate 2007-02-06 16:53:19 +00:00
philips/pnx8550 [PATCH] proc: remove useless (and buggy) ->nlink settings 2007-02-11 10:51:32 -08:00
pmc-sierra [MIPS] Yosemite: Fix missing parens in SERIAL_READ_1 macro 2007-02-06 16:53:25 +00:00
qemu [MIPS] prom_free_prom_memory cleanup 2007-02-06 16:53:09 +00:00
sgi-ip22 [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
sgi-ip27 [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
sgi-ip32 [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
sibyte [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
sni [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
tx4927 [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
tx4938 [MIPS] use name instead of typename for each irq_chip 2007-02-06 16:53:14 +00:00
vr41xx [MIPS] vr41xx: Use symbolic names for IRQ numers 2007-02-06 16:53:15 +00:00
defconfig [MIPS] Rename SNI_RM200_PCI to just SNI_RM preparing for more RM machines 2006-12-09 01:03:58 +00:00
Kconfig [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
Kconfig.debug [MIPS] Fix some whitespace damage 2007-02-06 16:53:18 +00:00
Makefile [MIPS] There is no __GNUC_MAJOR__ 2007-01-24 19:23:21 +00:00