Skip to content

Commit

Permalink
target: use stringify.h instead of own definition
Browse files Browse the repository at this point in the history
Signed-off-by: David Disseldorp <ddiss@suse.de>
Acked-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
David Disseldorp authored and Nicholas Bellinger committed Sep 11, 2015
1 parent ed97d0c commit ac64a2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion drivers/target/target_core_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/parser.h>
#include <linux/vmalloc.h>
#include <linux/uio_driver.h>
#include <linux/stringify.h>
#include <net/genetlink.h>
#include <scsi/scsi_common.h>
#include <scsi/scsi_proto.h>
Expand Down Expand Up @@ -898,7 +899,7 @@ static int tcmu_configure_device(struct se_device *dev)
WARN_ON(!PAGE_ALIGNED(udev->data_off));
WARN_ON(udev->data_size % PAGE_SIZE);

info->version = xstr(TCMU_MAILBOX_VERSION);
info->version = __stringify(TCMU_MAILBOX_VERSION);

info->mem[0].name = "tcm-user command & data buffer";
info->mem[0].addr = (phys_addr_t) udev->mb_addr;
Expand Down
4 changes: 0 additions & 4 deletions include/uapi/linux/target_core_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
#define TCMU_MAILBOX_VERSION 2
#define ALIGN_SIZE 64 /* Should be enough for most CPUs */

/* See https://gcc.gnu.org/onlinedocs/cpp/Stringification.html */
#define xstr(s) str(s)
#define str(s) #s

struct tcmu_mailbox {
__u16 version;
__u16 flags;
Expand Down

0 comments on commit ac64a2c

Please sign in to comment.