From patchwork Sat Apr 16 11:15:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Joshi X-Patchwork-Id: 712341 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3GBEwbr004134 for ; Sat, 16 Apr 2011 11:14:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759314Ab1DPLOz (ORCPT ); Sat, 16 Apr 2011 07:14:55 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:54809 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759277Ab1DPLOz (ORCPT ); Sat, 16 Apr 2011 07:14:55 -0400 Received: by wya21 with SMTP id 21so2831138wya.19 for ; Sat, 16 Apr 2011 04:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=MQh3Aa/+HJQQeC0dMCz/xQRJGw5edHDnWz6d5Mil4p8=; b=DFdpnSlguoeA7523Z05W76Yezn+us1+qIBGt7FhaX9ZswkNU3Ube7VLEKmmyA4ICS3 Wy+inpcogMdwe/vNuTMMONFZlvcBNUm+YdZI/kaMi4MntjBS4s3Tf33kiz5qaQJQk9Et l+gb9hbNyANPZHN3GS3SgmrQoPrcJTsrQfKiY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=fSZRhOU7DwWcBfpkTwB9PTNoc1JwkaUItcMB63d679FtS75xt+1S9TWhrRz2gMdBE7 9KcFfYnjGXqQV+l9tOyY0ysYT/D8TP4GB5ctUQUn1gpgLc+Oc+m5MiGw/NL8p+5pnYqz xeRoXedkehBemdo3JuAYoN+D2Y2IQyGlWnhT8= Received: by 10.227.179.207 with SMTP id br15mr3012681wbb.191.1302952493884; Sat, 16 Apr 2011 04:14:53 -0700 (PDT) Received: from prasad-kvm.localdomain (pineapple.rdg.ac.uk [134.225.206.123]) by mx.google.com with ESMTPS id u9sm2117955wbg.0.2011.04.16.04.14.53 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Apr 2011 04:14:53 -0700 (PDT) Received: by prasad-kvm.localdomain (Postfix, from userid 1000) id 3DFB626E006E; Sat, 16 Apr 2011 12:15:07 +0100 (BST) From: Prasad Joshi To: prasadjoshi124@gmail.com Cc: mingo@elte.hu, kvm@vger.kernel.org, penberg@kernel.org, asias.hejun@gmail.com, gorcunov@gmail.com, levinsasha928@gmail.com, chaitanyakulkarni15@gmail.com Subject: [PATCH v3] kvm tool: Remove the __stringify*() defination from util.h Date: Sat, 16 Apr 2011 12:15:06 +0100 Message-Id: <1302952506-13484-1-git-send-email-prasadjoshi124@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 16 Apr 2011 11:15:01 +0000 (UTC) Include the Linux kernel header file linux/stringify.h file instead of redefining the __stringify* macros Signed-off-by: Prasad Joshi --- tools/kvm/include/kvm/util.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/kvm/include/kvm/util.h b/tools/kvm/include/kvm/util.h index ae033cc..fc222c3 100644 --- a/tools/kvm/include/kvm/util.h +++ b/tools/kvm/include/kvm/util.h @@ -1,3 +1,5 @@ +#include + #ifndef KVM__UTIL_H #define KVM__UTIL_H @@ -27,9 +29,6 @@ #endif #endif -#define __stringify_1(x) #x -#define __stringify(x) __stringify_1(x) - extern void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2))); extern void die_perror(const char *s) NORETURN; extern int error(const char *err, ...) __attribute__((format (printf, 1, 2)));