Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1241369

Re: [PATCH] PM / OPP: fix debugfs files for 64-bit

From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] PM / OPP: fix debugfs files for 64-bit
Date 2015-10-07 13:10 +0200
Message-ID <qgULF-2Y1-27@gated-at.bofh.it> (permalink)
References <qgRuq-6Ak-19@gated-at.bofh.it> <qgUBZ-2xr-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 07-10-15, 16:29, Viresh Kumar wrote:
> What about adding something like debugfs_create_unsigned_long() for
> such cases?

And that can be as simple (or ugly, not sure if its buggy) as:

debugfs_create_unsigned_long()
{
        if (sizeof(unsigned long) == sizeof(u32))
                return debugfs_create_u32();
        if (sizeof(unsigned long) == sizeof(u64))
                return debugfs_create_u64();

        return -EINVAL;
}

-- 
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] PM / OPP: fix debugfs files for 64-bit Arnd Bergmann <arnd@arndb.de> - 2015-10-07 09:40 +0200
  Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 13:00 +0200
    Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 13:10 +0200
      Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-07 13:10 +0200
        Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 13:30 +0200
          Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-07 15:00 +0200
            Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 15:10 +0200
              Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-07 19:20 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 19:30 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-07 19:50 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 20:10 +0200
              Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Arnd Bergmann <arnd@arndb.de> - 2015-10-07 21:20 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-08 09:50 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Alan Stern <stern@rowland.harvard.edu> - 2015-10-08 16:30 +0200
          Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 18:40 +0200
          Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-10-07 18:40 +0200

csiph-web