[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161201115346.1ba16485@gandalf.local.home>
Date: Thu, 1 Dec 2016 11:53:46 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Ross Zwisler <ross.zwisler@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org,
Alexander Viro <viro@...iv.linux.org.uk>,
Andrew Morton <akpm@...ux-foundation.org>,
Christoph Hellwig <hch@....de>,
Dan Williams <dan.j.williams@...el.com>,
Dave Chinner <david@...morbit.com>,
Ingo Molnar <mingo@...hat.com>, Jan Kara <jack@...e.cz>,
Matthew Wilcox <mawilcox@...rosoft.com>,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
linux-nvdimm@...ts.01.org
Subject: Re: [PATCH v3 1/5] tracing: add __print_flags_u64()
On Thu, 1 Dec 2016 09:37:47 -0700
Ross Zwisler <ross.zwisler@...ux.intel.com> wrote:
> Add __print_flags_u64() and the helper trace_print_flags_seq_u64() in the
> same spirit as __print_symbolic_u64() and trace_print_symbols_seq_u64().
> These functions allow us to print symbols associated with flags that are 64
> bits wide even on 32 bit machines.
>
> These will be used by the DAX code so that we can print the flags set in a
> pfn_t such as PFN_SG_CHAIN, PFN_SG_LAST, PFN_DEV and PFN_MAP.
>
> Without this new function I was getting errors like the following when
> compiling for i386:
>
> ./include/linux/pfn_t.h:13:22: warning: large integer implicitly truncated
> to unsigned type [-Woverflow]
> #define PFN_SG_CHAIN (1ULL << (BITS_PER_LONG_LONG - 1))
> ^
>
> Signed-off-by: Ross Zwisler <ross.zwisler@...ux.intel.com>
Reviewed-by: Steven Rostedt <rostedt@...dmis.org>
-- Steve
Powered by blists - more mailing lists