Received: by 10.223.176.5 with SMTP id f5csp763650wra; Sat, 3 Feb 2018 09:43:44 -0800 (PST) X-Google-Smtp-Source: AH8x22413Tno55gMu5NhBWAXXClmOpP8ucrPU+JDMT944rYpkJgzVoZtHc1JkehOMpFRMyRe8HxR X-Received: by 10.101.101.200 with SMTP id y8mr35075416pgv.0.1517679824678; Sat, 03 Feb 2018 09:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517679824; cv=none; d=google.com; s=arc-20160816; b=EHxPFhsQNPMlppVVcxlDFGcC9noLI3TOhB8UhTla6ji91fGXl+tVwEMHJR5vK/xQ3P syYMYmY7H3VAHWRjjLuKrmgU6WKbkNH2leBGsnJB287v5oNiSFQPSaEjNr1ytOJq/5PV O4JEU/Neur+CvcmdwPMxU5xqvMmQzJJP9nMnN69f0ZYNHo8OuVI328qZTR53VEaFa9sf eHhkQmfLXQ6n8QIOhDMMvAHHYJ6OC4LUvAwmqB/oqtx5YcHNHxLWOkIh21g4brwH8b8X Wedc6yCqTwUMnAaRt1uR/eLbLLdYcGeQDNJLEl9fxXAc0a8KWrsaeAaxYZT8imLBTVVJ vx8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=I5+CdTPAmgQ2aJlYsCaDislYf9iCy1GIihAP4A2fvYs=; b=YfQ0eL7oIoqcXyVsASr88T/7um8SYMnx8MLcJAmvWPyozA2LDcHTwKqwDxYQjw/fkc B9YTC/K0TUYm9sng0Vn8z+UMj0v5QnLqBvAFV516IbQPwCGX/LVswUoHx9MVAhWQiOOu tiJzj9BREAblpzN1Mfwwsjd0BHUNvIespaMu/dx8toRmGjV1cqkl/HC3Wt/yQOa2f3wK WZh7TehMubGlyqFX/u3m/j55DIJbQgXNCkH4LLgygFPSHbN/iN+QS9Z1ofuKWCM9jWk2 5ELtFGNRilKBoKalQVjDBfME8PKNbaaB56z9y/bMHwyLwbni8N6umHU9Plr382wYno1E zhjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QnWSlU2C; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s185si1331492pgc.308.2018.02.03.09.43.30; Sat, 03 Feb 2018 09:43:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QnWSlU2C; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752714AbeBCRmx (ORCPT + 99 others); Sat, 3 Feb 2018 12:42:53 -0500 Received: from mail-vk0-f65.google.com ([209.85.213.65]:39381 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235AbeBCRmq (ORCPT ); Sat, 3 Feb 2018 12:42:46 -0500 Received: by mail-vk0-f65.google.com with SMTP id a63so15419635vkg.6; Sat, 03 Feb 2018 09:42:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=I5+CdTPAmgQ2aJlYsCaDislYf9iCy1GIihAP4A2fvYs=; b=QnWSlU2C1W+yVAgymyvS6F5fqV1qLqcb/tZNGlDsDlO5F2X0kCXX+y6VWreVdRk0iB Fxh+/JUH1Yo2EuTvAvnkH7UNCtaKpmbnhOnqPgh+o7ajcHreK9Sr50W6E7v2GnvFLgyr GLkYDIB/3QwtQJg9RzlPbMy/mTzsKcmdxJqhjlrKSG1Han5DNhF4jWAXgzRHXGYc5deR g8k+JuOANvJY5p0IIlrpm7fwKn1txNoLMHYy9rEHDLWkktiPTcLYbnLL4XgZ2hy90tH8 HZhnVkggT5OYU2rOK1CAfK4CUI2jFBrrEPmST1y5lZ6cYDwiCyttgqVnm9a3WEtZ5ETz G0wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:cc; bh=I5+CdTPAmgQ2aJlYsCaDislYf9iCy1GIihAP4A2fvYs=; b=NPT2YnOVhMifFOJARHCt55LGR70YPwOdSydSaZSqcdpndV5BX4qrU15zYmI7BCOpbP hGv40BtxCTSa4p8PtTVu1cdOBlPcXodaOBrAcp7Ye5lwB0sT6L8z5xvuzuFld0M9Kz4Y yHeLrgvyEgH3r2G3awMRoIeZZr1SSCO8JCY8+h0VfXTRuVqXtzkAUJDwfSuHbN2kFmEL 9WuPy5tETdaA4eqiBERUH+bLaqXrvSiNJYjjZiEEA32GkmWxjjhglTYY3iGEPkLNJktq zoFuqPtCAi86Uk/VwlMEXKK/zZ8N47hcanC6PPu6ILOBDezY/VtMlZfMHEXdELMJJhDW uZFg== X-Gm-Message-State: AKwxytf9ppkgaFBogddBW2aq9Ux/73G+8/JDNKlPdO5HwgJBS753xvDq Bp+OGkWeA/HkAg4M+NWnKg+7PudWZ17ur9uDbs0= X-Received: by 10.31.92.200 with SMTP id q191mr34562071vkb.151.1517679765509; Sat, 03 Feb 2018 09:42:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.78.22 with HTTP; Sat, 3 Feb 2018 09:42:25 -0800 (PST) From: Mathieu Malaterre Date: Sat, 3 Feb 2018 18:42:25 +0100 X-Google-Sender-Auth: U4ebgdVxzOkMtoRr_vnq9NdrutE Message-ID: Subject: warning: "EDID_LENGTH" redefined (was Re: [PATCH v4] Fix loading of module radeonfb on PowerMac) To: Dave Airlie Cc: Linux Fbdev development list , dri-devel , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, Since I am not very familiar with the drm vs fbdev architecture, could you please suggest a patch for the following [*]. Reference: f453ba0460742 (Dave Airlie 2008-11-07 14:05:41 -0800 32) #define EDID_LENGTH 128 Thanks [*] On Sat, Feb 3, 2018 at 3:39 AM, kbuild test robot wrote: > Hi Mathieu, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v4.15 next-20180202] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Mathieu-Malaterre/Fix-loading-of-module-radeonfb-on-PowerMac/20180203-085907 > config: x86_64-randconfig-x009-201804 (attached as .config) > compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > All warnings (new ones prefixed by >>): > > In file included from drivers/video/fbdev/aty/radeon_base.c:91:0: >>> drivers/video/fbdev/aty/../edid.h:21:0: warning: "EDID_LENGTH" redefined > #define EDID_LENGTH 0x80 > > In file included from include/drm/drm_crtc.h:44:0, > from include/drm/drm_fb_helper.h:35, > from drivers/video/fbdev/aty/radeon_base.c:73: > include/drm/drm_edid.h:32:0: note: this is the location of the previous definition > #define EDID_LENGTH 128 > > Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64 > Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64 > Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order > Cyclomatic Complexity 1 include/linux/string.h:strnlen > Cyclomatic Complexity 4 include/linux/string.h:strlen > Cyclomatic Complexity 6 include/linux/string.h:strlcpy > Cyclomatic Complexity 4 include/linux/string.h:memcpy > Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_irq_disable > Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_irq_enable > Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check > Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore > Cyclomatic Complexity 1 include/linux/jiffies.h:_msecs_to_jiffies > Cyclomatic Complexity 3 include/linux/jiffies.h:msecs_to_jiffies > Cyclomatic Complexity 1 arch/x86/include/asm/io.h:readb > Cyclomatic Complexity 1 arch/x86/include/asm/io.h:readw > Cyclomatic Complexity 1 arch/x86/include/asm/io.h:readl > Cyclomatic Complexity 1 arch/x86/include/asm/io.h:writeb > Cyclomatic Complexity 1 arch/x86/include/asm/io.h:writel > Cyclomatic Complexity 1 arch/x86/include/asm/io.h:ioremap > Cyclomatic Complexity 1 include/linux/kobject.h:kobject_name > Cyclomatic Complexity 2 include/linux/device.h:dev_name > Cyclomatic Complexity 1 include/linux/device.h:dev_get_drvdata > Cyclomatic Complexity 1 include/linux/device.h:dev_set_drvdata > Cyclomatic Complexity 1 include/linux/io.h:arch_phys_wc_add > Cyclomatic Complexity 1 include/linux/io.h:arch_phys_wc_del > Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large > Cyclomatic Complexity 3 include/linux/slab.h:kmalloc > Cyclomatic Complexity 1 include/linux/slab.h:kzalloc > Cyclomatic Complexity 1 include/linux/pci.h:pci_get_drvdata > Cyclomatic Complexity 1 include/linux/pci.h:pci_set_drvdata > Cyclomatic Complexity 1 include/linux/pci.h:pci_name > Cyclomatic Complexity 2 include/linux/fb.h:alloc_apertures > Cyclomatic Complexity 2 drivers/video/fbdev/aty/radeonfb.h:radeon_pll_errata_after_index > Cyclomatic Complexity 2 drivers/video/fbdev/aty/radeonfb.h:radeon_pll_errata_after_data > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeonfb.h:round_div > Cyclomatic Complexity 3 drivers/video/fbdev/aty/radeonfb.h:var_to_depth > Cyclomatic Complexity 5 drivers/video/fbdev/aty/radeonfb.h:radeon_get_dstbpp > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeonfb.h:radeonfb_bl_init > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeonfb.h:radeonfb_bl_exit > Cyclomatic Complexity 1 include/drm/drm_fb_helper.h:drm_fb_helper_remove_conflicting_framebuffers > Cyclomatic Complexity 21 drivers/video/fbdev/aty/radeon_base.c:radeon_calc_pll_regs > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeon_base.c:radeonfb_exit > Cyclomatic Complexity 6 drivers/video/fbdev/aty/radeon_base.c:radeon_find_mem_vbios > Cyclomatic Complexity 4 drivers/video/fbdev/aty/radeon_base.c:radeon_kick_out_firmware_fb > Cyclomatic Complexity 5 drivers/video/fbdev/aty/radeon_base.c:radeonfb_pci_unregister > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeon_base.c:radeon_show_one_edid > Cyclomatic Complexity 3 drivers/video/fbdev/aty/radeon_base.c:radeon_show_edid2 > Cyclomatic Complexity 3 drivers/video/fbdev/aty/radeon_base.c:radeon_show_edid1 > Cyclomatic Complexity 2 drivers/video/fbdev/aty/radeon_base.c:radeon_set_fbinfo > Cyclomatic Complexity 18 drivers/video/fbdev/aty/radeon_base.c:radeonfb_check_var > Cyclomatic Complexity 2 drivers/video/fbdev/aty/radeon_base.c:radeon_unmap_ROM > Cyclomatic Complexity 7 drivers/video/fbdev/aty/radeon_base.c:radeon_map_ROM > Cyclomatic Complexity 16 drivers/video/fbdev/aty/radeon_base.c:radeonfb_setup > Cyclomatic Complexity 2 drivers/video/fbdev/aty/radeon_base.c:radeonfb_init > Cyclomatic Complexity 8 drivers/video/fbdev/aty/radeon_base.c:_radeon_msleep > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeon_base.c:radeon_pll_errata_after_index_slow > Cyclomatic Complexity 3 drivers/video/fbdev/aty/radeon_base.c:radeon_pll_errata_after_data_slow > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeon_base.c:_OUTREGP > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeon_base.c:__INPLL > Cyclomatic Complexity 20 drivers/video/fbdev/aty/radeon_base.c:radeon_probe_pll_params > Cyclomatic Complexity 10 drivers/video/fbdev/aty/radeon_base.c:radeon_get_pllinfo > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeon_base.c:radeon_save_state > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeon_base.c:__OUTPLL > Cyclomatic Complexity 1 drivers/video/fbdev/aty/radeon_base.c:__OUTPLLP > Cyclomatic Complexity 3 drivers/video/fbdev/aty/radeon_base.c:_radeon_fifo_wait > Cyclomatic Complexity 17 drivers/video/fbdev/aty/radeon_base.c:radeon_write_pll_regs > Cyclomatic Complexity 25 drivers/video/fbdev/aty/radeon_base.c:radeon_identify_vram > Cyclomatic Complexity 31 drivers/video/fbdev/aty/radeon_base.c:radeonfb_pci_register > Cyclomatic Complexity 10 drivers/video/fbdev/aty/radeon_base.c:radeonfb_ioctl > Cyclomatic Complexity 4 drivers/video/fbdev/aty/radeon_base.c:radeonfb_pan_display > Cyclomatic Complexity 16 drivers/video/fbdev/aty/radeon_base.c:radeon_setcolreg > Cyclomatic Complexity 9 drivers/video/fbdev/aty/radeon_base.c:radeonfb_setcmap > Cyclomatic Complexity 6 drivers/video/fbdev/aty/radeon_base.c:radeonfb_setcolreg > Cyclomatic Complexity 3 drivers/video/fbdev/aty/radeon_base.c:radeon_engine_flush > Cyclomatic Complexity 3 drivers/video/fbdev/aty/radeon_base.c:_radeon_engine_idle > Cyclomatic Complexity 2 drivers/video/fbdev/aty/radeon_base.c:radeon_lvds_timer_func > Cyclomatic Complexity 17 drivers/video/fbdev/aty/radeon_base.c:radeon_screen_blank > Cyclomatic Complexity 2 drivers/video/fbdev/aty/radeon_base.c:radeonfb_blank > Cyclomatic Complexity 7 drivers/video/fbdev/aty/radeon_base.c:radeon_write_mode > Cyclomatic Complexity 42 drivers/video/fbdev/aty/radeon_base.c:radeonfb_set_par > In file included from drivers/video/fbdev/aty/radeon_base.c:91:0: >>> drivers/video/fbdev/aty/../edid.h:21:0: warning: "EDID_LENGTH" redefined > #define EDID_LENGTH 0x80 > > In file included from include/drm/drm_crtc.h:44:0, > from include/drm/drm_fb_helper.h:35, > from drivers/video/fbdev/aty/radeon_base.c:73: > include/drm/drm_edid.h:32:0: note: this is the location of the previous definition > #define EDID_LENGTH 128 > > > vim +/EDID_LENGTH +21 drivers/video/fbdev/aty/../edid.h > > ^1da177e drivers/video/edid.h Linus Torvalds 2005-04-16 20 > ^1da177e drivers/video/edid.h Linus Torvalds 2005-04-16 @21 #define EDID_LENGTH 0x80 > ^1da177e drivers/video/edid.h Linus Torvalds 2005-04-16 22 #define EDID_HEADER 0x00 > ^1da177e drivers/video/edid.h Linus Torvalds 2005-04-16 23 #define EDID_HEADER_END 0x07 > ^1da177e drivers/video/edid.h Linus Torvalds 2005-04-16 24 > > :::::: The code at line 21 was first introduced by commit > :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 > > :::::: TO: Linus Torvalds > :::::: CC: Linus Torvalds > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation