Changes in 4.9.267 ARM: 8723/2: always assume the "unified" syntax for assembly code iio: hid-sensor-prox: Fix scale not correct issue ALSA: aloop: Fix initialization of controls ASoC: intel: atom: Stop advertising non working S24LE support nfc: fix refcount leak in llcp_sock_bind() nfc: fix refcount leak in llcp_sock_connect() nfc: fix memory leak in llcp_sock_connect() nfc: Avoid endless loops caused by repeated llcp_sock_connect() xen/evtchn: Change irq_info lock to raw_spinlock_t net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh ia64: fix user_stack_pointer() for ptrace() ocfs2: fix deadlock between setattr and dio_end_io_write fs: direct-io: fix missing sdio->boundary parisc: parisc-agp requires SBA IOMMU driver parisc: avoid a warning on u8 cast for cmpxchg on u8 pointers batman-adv: initialize "struct batadv_tvlv_tt_vlan_data"->reserved field net: sched: sch_teql: fix null-pointer dereference sch_red: fix off-by-one checks in red_check_params() gianfar: Handle error code at MAC address change net:tipc: Fix a double free in tipc_sk_mcast_rcv soc/fsl: qbman: fix conflicting alignment attributes clk: fix invalid usage of list cursor in unregister workqueue: Move the position of debug_work_activate() in __queue_work() s390/cpcmd: fix inline assembly register clobbering RDMA/cxgb4: check for ipv6 address properly while destroying listener clk: socfpga: fix iomem pointer cast on 64-bit mm: add cond_resched() in gather_pte_stats() usbip: fix vudc usbip_sockfd_store races leading to gpf cfg80211: remove WARN_ON() in cfg80211_sme_connect net: tun: set tun->dev->addr_len during TUNSETLINK processing drivers: net: fix memory leak in atusb_probe drivers: net: fix memory leak in peak_usb_create_dev net: mac802154: Fix general protection fault net: ieee802154: nl-mac: fix check on panid net: ieee802154: fix nl802154 del llsec key net: ieee802154: fix nl802154 del llsec dev net: ieee802154: fix nl802154 add llsec key net: ieee802154: fix nl802154 del llsec devkey net: ieee802154: forbid monitor for set llsec params net: ieee802154: forbid monitor for del llsec seclevel net: ieee802154: stop dump llsec params for monitors Revert "cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath." drm/imx: imx-ldb: fix out of bounds array access warning gfs2: report "already frozen/thawed" errors netfilter: x_tables: fix compat match/target pad out-of-bound write perf map: Tighten snprintf() string precision to pass gcc check on some 32-bit arches xen/events: fix setting irq affinity Linux 4.9.267 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I5e3b199e53476e0cbd4feb7b1cd15b1e38891aec
70 lines
1.6 KiB
C
70 lines
1.6 KiB
C
/*
|
|
* include/asm-arm/unified.h - Unified Assembler Syntax helper macros
|
|
*
|
|
* Copyright (C) 2008 ARM Limited
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#ifndef __ASM_UNIFIED_H
|
|
#define __ASM_UNIFIED_H
|
|
|
|
#if defined(__ASSEMBLY__)
|
|
.syntax unified
|
|
#else
|
|
__asm__(".syntax unified");
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_V7M
|
|
#define AR_CLASS(x...)
|
|
#define M_CLASS(x...) x
|
|
#else
|
|
#define AR_CLASS(x...) x
|
|
#define M_CLASS(x...)
|
|
#endif
|
|
|
|
#ifdef CONFIG_THUMB2_KERNEL
|
|
|
|
#if __GNUC__ < 4
|
|
#error Thumb-2 kernel requires gcc >= 4
|
|
#endif
|
|
|
|
/* The CPSR bit describing the instruction set (Thumb) */
|
|
#define PSR_ISETSTATE PSR_T_BIT
|
|
|
|
#define ARM(x...)
|
|
#define THUMB(x...) x
|
|
#ifdef __ASSEMBLY__
|
|
#define W(instr) instr.w
|
|
#else
|
|
#define WASM(instr) #instr ".w"
|
|
#endif
|
|
|
|
#else /* !CONFIG_THUMB2_KERNEL */
|
|
|
|
/* The CPSR bit describing the instruction set (ARM) */
|
|
#define PSR_ISETSTATE 0
|
|
|
|
#define ARM(x...) x
|
|
#define THUMB(x...)
|
|
#ifdef __ASSEMBLY__
|
|
#define W(instr) instr
|
|
#else
|
|
#define WASM(instr) #instr
|
|
#endif
|
|
|
|
#endif /* CONFIG_THUMB2_KERNEL */
|
|
|
|
#endif /* !__ASM_UNIFIED_H */
|