1. 04 11月, 2017 2 次提交
  2. 28 9月, 2017 3 次提交
  3. 18 8月, 2017 1 次提交
  4. 22 7月, 2017 1 次提交
  5. 14 6月, 2017 2 次提交
  6. 07 6月, 2017 14 次提交
  7. 21 5月, 2016 1 次提交
  8. 11 9月, 2015 1 次提交
    • R
      wmi: Remove private %pUL implementation · 85b4e4eb
      Rasmus Villemoes 提交于
      The work performed by wmi_gtoa is equivalent to simply sprintf(out,
      "%pUL", in), so one could replace its body by this. However, most
      users feed the result directly as a %s argument to some other function
      which also understands the %p extensions (they all ultimately use
      vsnprintf), so we can eliminate some stack buffers and quite a bit of
      code by just using %pUL directly.
      
      In wmi_dev_uevent I'm not sure whether there's room for a
      nul-terminator in env->buf, so I've just replaced wmi_gtoa with the
      equivalent sprintf call.
      Signed-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      85b4e4eb
  9. 08 4月, 2015 1 次提交
  10. 26 3月, 2015 1 次提交
    • P
      x86/wmi: delete unused wmi_data_lock mutex causing gcc warning · f62a4ffd
      Paul Gortmaker 提交于
      In commit bff431e4 ("ACPI: WMI: Add
      ACPI-WMI mapping driver") this mutex was added, but the rest of the
      final commit never actually made use of it, resulting in:
      
       In file included from include/linux/mutex.h:29:0,
                        from include/linux/kernfs.h:13,
                        from include/linux/sysfs.h:15,
                        from include/linux/kobject.h:21,
                        from include/linux/device.h:17,
                        from drivers/platform/x86/wmi.c:35:
       drivers/platform/x86/wmi.c:48:21: warning: ‘wmi_data_lock’ defined but not used [-Wunused-variable]
        static DEFINE_MUTEX(wmi_data_lock);
                            ^
      
      A git grep shows no other instances/references to the wmi_data_lock.
      Delete it, assuming that the mutex addition was just a leftover from
      an earlier work in progress version of the change, since the original
      dates from 2008.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      f62a4ffd
  11. 16 8月, 2014 1 次提交
    • H
      WMI: Remove unnecessary null test · 959ef6d5
      Himangi Saraogi 提交于
      This patch removes the null test on block. block is initialized at the
      beginning of the function to &wblock->gblock. Since wblock is
      dereferenced prior to the null test, wblock must be a valid pointer,
      and &wblock->gblock cannot be null.
      
      The following Coccinelle script is used for detecting the change:
      
      @r@
      expression e,f;
      identifier g,y;
      statement S1,S2;
      @@
      
      *e = &f->g
      <+...
       f->y
       ...+>
      *if (e != NULL || ...)
       S1 else S2
      Signed-off-by: NHimangi Saraogi <himangi774@gmail.com>
      Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
      959ef6d5
  12. 07 12月, 2013 1 次提交
    • L
      ACPI: Clean up inclusions of ACPI header files · 8b48463f
      Lv Zheng 提交于
      Replace direct inclusions of <acpi/acpi.h>, <acpi/acpi_bus.h> and
      <acpi/acpi_drivers.h>, which are incorrect, with <linux/acpi.h>
      inclusions and remove some inclusions of those files that aren't
      necessary.
      
      First of all, <acpi/acpi.h>, <acpi/acpi_bus.h> and <acpi/acpi_drivers.h>
      should not be included directly from any files that are built for
      CONFIG_ACPI unset, because that generally leads to build warnings about
      undefined symbols in !CONFIG_ACPI builds.  For CONFIG_ACPI set,
      <linux/acpi.h> includes those files and for CONFIG_ACPI unset it
      provides stub ACPI symbols to be used in that case.
      
      Second, there are ordering dependencies between those files that always
      have to be met.  Namely, it is required that <acpi/acpi_bus.h> be included
      prior to <acpi/acpi_drivers.h> so that the acpi_pci_root declarations the
      latter depends on are always there.  And <acpi/acpi.h> which provides
      basic ACPICA type declarations should always be included prior to any other
      ACPI headers in CONFIG_ACPI builds.  That also is taken care of including
      <linux/acpi.h> as appropriate.
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Acked-by: Bjorn Helgaas <bhelgaas@google.com> (drivers/pci stuff)
      Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> (Xen stuff)
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8b48463f
  13. 21 11月, 2013 1 次提交
  14. 24 9月, 2013 2 次提交
  15. 05 9月, 2013 1 次提交
  16. 20 8月, 2013 1 次提交
  17. 04 7月, 2013 1 次提交
  18. 26 1月, 2013 1 次提交
  19. 13 1月, 2012 1 次提交
  20. 01 11月, 2011 1 次提交
  21. 24 10月, 2011 1 次提交
  22. 28 5月, 2011 1 次提交