Message ID | 1471642875-5957-5-git-send-email-mcgrof@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DCB9E607FF for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 19 Aug 2016 21:43:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D30D1295AD for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 19 Aug 2016 21:43:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1B7B295AF; Fri, 19 Aug 2016 21:43:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4EF7F295A6 for <patchwork-xen-devel@patchwork.kernel.org>; Fri, 19 Aug 2016 21:43:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1barXn-0005No-Rz; Fri, 19 Aug 2016 21:41:39 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <mcgrof@kernel.org>) id 1barXm-0005MU-97 for xen-devel@lists.xensource.com; Fri, 19 Aug 2016 21:41:38 +0000 Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id 01/60-01945-11D77B75; Fri, 19 Aug 2016 21:41:37 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeJIrShJLcpLzFFi42I5NlG2Q1egdnu 4wbxv5hb3prxnd2D02N63iz2AMYo1My8pvyKBNePWku2sBffZK5593MLWwHierYuRi0NIYCqj xO9L91khnBlMEvdmH2LuYuTkYBMQl1jwYw4LSEJE4AaTxNGbu8CqmAUec0ncmf0KrEpYwEHiQ etNdhCbRUBV4mZDGyuIzQsUP/z6GguILSEgJ9HyYzdQnIODU8BR4sI3N5CwkECZxI2nT5hBwh ICBRL7D0dDVHtJLLpxiRXCVpO4em4T8wRGvgWMDKsYNYpTi8pSi3SNjPWSijLTM0pyEzNzdA0 NjPVyU4uLE9NTcxKTivWS83M3MQIDpZ6BgXEHY99ev0OMkhxMSqK8fmrbw4X4kvJTKjMSizPi i0pzUosPMcpwcChJ8DZVA+UEi1LTUyvSMnOAIQuTluDgURLhXQGS5i0uSMwtzkyHSJ1i1OVY8 OP2WiYhlrz8vFQpcd5FIEUCIEUZpXlwI2Dxc4lRVkqYl5GBgUGIpyC1KDezBFX+FaM4B6OSMO 9mkCk8mXklcJteAR3BBHQEL/8WkCNKEhFSUg2M217fEbA5UHT44Lqtyr1Cemu3zDi2aGvywvz IF8cYRXb+rulO2OO5/dkZo9ojGnNNonnEDzq94tzXdufdj69ML3g/F/0PKtp0pEvu68etXW9e Fu8yYtp7v8/r8483Eirn7ur2uR2t+hbrYayjteiubPvUzRGLj5zNMLmjeVj7nvw2pmUPGc79W q7EUpyRaKjFXFScCAC3HlbnmgIAAA== X-Env-Sender: mcgrof@kernel.org X-Msg-Ref: server-4.tower-31.messagelabs.com!1471642895!6275530!1 X-Originating-IP: [198.145.29.136] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 43825 invoked from network); 19 Aug 2016 21:41:36 -0000 Received: from mail.kernel.org (HELO mail.kernel.org) (198.145.29.136) by server-4.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 19 Aug 2016 21:41:36 -0000 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C85F2026F; Fri, 19 Aug 2016 21:41:34 +0000 (UTC) Received: from garbanzo.do-not-panic.com (c-73-15-241-2.hsd1.ca.comcast.net [73.15.241.2]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D2AC20114; Fri, 19 Aug 2016 21:41:31 +0000 (UTC) From: mcgrof@kernel.org To: acme@redhat.com, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, jpoimboe@redhat.com, bp@alien8.de, linux@arm.linux.org.uk, mhiramat@kernel.org, masami.hiramatsu.pt@hitachi.com, jbaron@akamai.com, heiko.carstens@de.ibm.com, ananth@linux.vnet.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, realmz6@gmail.com Date: Fri, 19 Aug 2016 14:41:12 -0700 Message-Id: <1471642875-5957-5-git-send-email-mcgrof@kernel.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1471642875-5957-1-git-send-email-mcgrof@kernel.org> References: <1471642454-5679-1-git-send-email-mcgrof@kernel.org> <1471642875-5957-1-git-send-email-mcgrof@kernel.org> X-Virus-Scanned: ClamAV using ClamSMTP Cc: gnomes@lxorguk.ukuu.org.uk, linux-ia64@vger.kernel.org, jkosina@suse.cz, benh@kernel.crashing.org, ming.lei@canonical.com, linux@rasmusvillemoes.dk, platform-driver-x86@vger.kernel.org, James.Bottomley@HansenPartnership.com, paul.gortmaker@windriver.com, paulus@samba.org, sparclinux@vger.kernel.org, mchehab@osg.samsung.com, linux-arch@vger.kernel.org, markus.heiser@darmarit.de, xen-devel@lists.xensource.com, msalter@redhat.com, linux-sh@vger.kernel.org, mpe@ellerman.id.au, x86@kernel.org, fontana@sharpeleven.org, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, dvhart@infradead.org, dwmw2@infradead.org, linux-xtensa@linux-xtensa.org, pali.rohar@gmail.com, keescook@chromium.org, arnd@arndb.de, jani.nikula@intel.com, will.deacon@arm.com, rusty@rustcorp.com.au, rostedt@goodmis.org, ak@linux.intel.com, andriy.shevchenko@linux.intel.com, mcb30@ipxe.org, linux-kbuild@vger.kernel.org, alan@linux.intel.com, jgross@suse.com, chris@zankel.net, pebolle@tiscali.nl, tony.luck@intel.com, ananth@in.ibm.com, jcmvbkbc@gmail.com, gregkh@linuxfoundation.org, luto@amacapital.net, "Luis R. Rodriguez" <mcgrof@kernel.org>, mmarek@suse.com, david.vrabel@citrix.com, jolsa@kernel.org, andrew.cooper3@citrix.com, akpm@linux-foundation.org, torvalds@linux-foundation.org, korea.drzix@gmail.com Subject: [Xen-devel] [PATCH v1 4/7] tools: add __used and enable to override X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index e33fc1df3935..556c991de212 100644 --- a/tools/include/linux/compiler.h +++ b/tools/include/linux/compiler.h @@ -5,6 +5,12 @@ /* The "volatile" is due to gcc bugs */ #define barrier() __asm__ __volatile__("": : :"memory") + +/* You can override as you see fit on your userspace tool */ +#ifndef __used +#define __used __attribute__((__used__)) +#endif + #ifndef __always_inline # define __always_inline inline __attribute__((always_inline)) #endif