Message ID | 1459859678-16343-4-git-send-email-animesh.manna@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Animesh,
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on next-20160405]
[cannot apply to v4.6-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Animesh-Manna/HPD-support-during-suspend/20160405-204154
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-n0-201614 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
>> WARNING: drivers/gpu/built-in.o(.text+0x22ff8e): Section mismatch in reference from the function intel_dsm_detect() to the variable .init.data:intel_bxt_dsm_guid
The function intel_dsm_detect() references
the variable __initdata intel_bxt_dsm_guid.
This is often because intel_dsm_detect lacks a __initdata
annotation or the annotation of intel_bxt_dsm_guid is wrong.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
diff --git a/drivers/gpu/drm/i915/intel_acpi.c b/drivers/gpu/drm/i915/intel_acpi.c index 8f3d672..79b774b 100644 --- a/drivers/gpu/drm/i915/intel_acpi.c +++ b/drivers/gpu/drm/i915/intel_acpi.c @@ -17,7 +17,7 @@ static struct intel_dsm_priv { acpi_handle dhandle; } intel_dsm_priv; -static const u8 intel_dsm_guid[] = { +static u8 intel_dsm_guid[] = { 0xd3, 0x73, 0xd8, 0x7e, 0xd0, 0xc2, 0x4f, 0x4e, @@ -25,6 +25,9 @@ static const u8 intel_dsm_guid[] = { 0x0f, 0x13, 0x17, 0xb0, 0x1c, 0x2c }; +static u8 intel_bxt_dsm_guid[] __initdata = + "3E5B41C6-EB1D-4260-9D15-C71FBADAE414"; + static char *intel_dsm_port_name(u8 id) { switch (id) { @@ -143,6 +146,9 @@ static bool intel_dsm_pci_probe(struct pci_dev *pdev) intel_dsm_priv.dhandle = dhandle; + if (IS_BROXTON(dev)) + acpi_str_to_uuid(intel_bxt_dsm_guid, intel_dsm_guid); + if (acpi_check_dsm(dhandle, intel_dsm_guid, INTEL_DSM_REVISION_ID, 1 << INTEL_DSM_FN_PLATFORM_MUX_INFO)) intel_dsm_platform_mux_info();