Received: by 10.213.65.68 with SMTP id h4csp1176462imn; Mon, 26 Mar 2018 02:16:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELtb+9feY4bNdkXgzRQ7to8eCM5C04GfjyouQxQz4hVPZQ1INzbqHh9dX8D7ocOPt107iK0d X-Received: by 2002:a17:902:a5c5:: with SMTP id t5-v6mr40257257plq.244.1522055801659; Mon, 26 Mar 2018 02:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522055801; cv=none; d=google.com; s=arc-20160816; b=FId3PaJ44va6Oz2HIxaIF8vbMgWCclDLt02cR+jcPYMd/jkVN2gH73hXqZi0DcxT2E xoNjHXEVO7DIQJOscr5X/VyQnjjdsOFhxjQNpWRa+e3oRh6ZLrSzLxcPk0xlpomC4JGW mstY9Rl3AmuOJV0gGk5Qer2fAREX/tj+8ro/C4t7h9M2p/OuP6kxt4nGzA1vk0PncJCg H2WpGY7OIGKgLu67eX/J/JIRn5QMAS/fIfmxWnU3T7WQcnYbCLaCmf1U0IGU41hP6Ndt fmSbnlWzvMxbaOtBHNuQwr/LN165EZongCUEZcEZtr9APwZH+mprBfInCbIHZDkyTC8B PHEg== 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 :references:in-reply-to:mime-version:arc-authentication-results; bh=d5DboWJySvfep/AiRr1qR+5YJMAGkJM7tn05GQG2M8I=; b=tHEFy0KCR5J389ZvkxRGG9ASV/N1Q1h1o2UHlk9/qgpsuUJxRHTDy1clHc+EwgaV9Y J34ykB0C81Ka5P1m2jSEoBe9ncsja2U0mT34D0Ne05p3314ibdLaAtwNPjsJRDLb+ykM sQOH8JlmFi6WQKVLezB7k030sk2aBA2zrDALrHwHBBxfZ0roeT13YIf0p4AfxyKIavZO xdFUdbK2Pu7RgL2f2QLLZXemFH7Uq+Qcfssn2Nd862RZ/53cW5Z9nNCeceZFOxXVdBU2 HEI69pjOQe3slsArQiPLtqb1w8aFmWfjxfDaUVV5GNBqb6jlDPAwB5QpL9s1UUS+8ymW giMA== ARC-Authentication-Results: i=1; mx.google.com; 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 r65si11289691pfa.79.2018.03.26.02.16.27; Mon, 26 Mar 2018 02:16:41 -0700 (PDT) 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; 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 S1751658AbeCZJPY (ORCPT + 99 others); Mon, 26 Mar 2018 05:15:24 -0400 Received: from mout.perfora.net ([74.208.4.197]:36733 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750973AbeCZJPW (ORCPT ); Mon, 26 Mar 2018 05:15:22 -0400 Received: from mail-pg0-f53.google.com ([74.125.83.53]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LkRO1-1ePfcp3Owt-00cUnD; Mon, 26 Mar 2018 11:15:20 +0200 Received: by mail-pg0-f53.google.com with SMTP id a15so7051375pgn.5; Mon, 26 Mar 2018 02:15:20 -0700 (PDT) X-Gm-Message-State: AElRT7FdAMEmAsLObBXksP/YrIAEYq0PLGlsKVOdQBE4dct5iX7J7E40 02Do5tCMOBA+pqyClKIeM49WG7nmOqg6sGl+SO8= X-Received: by 10.98.152.207 with SMTP id d76mr32108730pfk.130.1522055719830; Mon, 26 Mar 2018 02:15:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.155.69 with HTTP; Mon, 26 Mar 2018 02:15:19 -0700 (PDT) In-Reply-To: <201803252111.2HMcV5IS%fengguang.wu@intel.com> References: <20180324041027.6498-1-quytelda@tamalin.org> <201803252111.2HMcV5IS%fengguang.wu@intel.com> From: Quytelda Kahja Date: Mon, 26 Mar 2018 02:15:19 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] ieee80211: Replace bit shifts with the BIT() macro for WLAN_CAPABILITY_*. To: kbuild test robot , Greg KH Cc: kbuild-all@01.org, Johannes Berg , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K0:vjiMmD2GToO+2Te3VfNNN1hjnhYgfzqFXrlYxP+931nAU6nTXZR 1fGAbHPEb4GyPNPcAjZPRzgwgwgUEHxSgjszCIWkogvkr6DfpEzYTpxLKqKwGdjEXjyoyMK zf9xYlMj4vkCi6EtKCzkO81v/Q7KcqSO96QjysRsMvaYMIqHZuY+vCC+Jnwu+EFsZDOFG9Q 26NtfTklB2V9sVQCrM8jg== X-UI-Out-Filterresults: notjunk:1;V01:K0:m4hAJlrpbdg=:bKrU96b4PjIqEkbMfuOIIR WDwwRnFua05Q+sqPwPpxNGaXsLdgHN3/skvMM23hPK0DcVi9ng/6HYpaTJ0dGhqPFOJLNYzn6 gi1VTPEMZpK9PryAZWzXOVK2cAZU8TgkfVW5ElzpTLVJ8glTTc90RCjQsdr8nzQ7a7MNQjJut jQ8QeeoKTgGK1O5Nu5kXWcDY8/SLlD6hITUwFSiJjQujuj+a7ZM4PXEa46mZpaNHJPTeZ71MW nECP9IoSljfr61wiIyqWDwOcU4S5WDWNT9+UKtX5cfaXx7hRsHoHDC1UL7ZyRqmI9csYM29LJ i2Z0ObekAGz8MO6MSShbufxl8NshGpjFA8SEmo6HqdaPxbjivDebyg+WnSJ/BbXxkQPUl7pSB H1Q6uf6LLh3Jlli9W4697XJhcSR+bEBGQSQXJogQ+4pc2NP2TKGJamEXqhBwzVwNvb8O/W3dK KvLxsvafOwbnySnnJCTs+ZjveWN0Tz4qr4TqW7wJcLBc6S9jUbDPaqZVUcFwrzbbYBh3GGqSh nsvrRmfwdvIQVgOYO6ZzKUUB+oHBEbEl9ldWYusndrzNZIMauA36zJYgoC+MdQT3T7VCb1BIU 9f6VYrB4INVRZC1P+JsXn4cL1T08z8DEEiRpyQpMLLkFORY9y388/ztTlMChmWxJSFrMXlL2y 7ifg/CaUVdpGjLWe0XBB0UY1TjGOx/+UDcwAPm/rRtVi+HTuL26ex3P3RWDysESX4HVXIil3e tlidH3ao1hzjb9O4emSRywMYWxXJsG4X7dwDMmOHeYZYA9OVKdxPrrqnen8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a problem with the rtl8723bs driver in staging; it's source tree has a custom IEEE80211 header which imports 'linux/ieee80211.h', but redefines many of the #define's from the original header. Functionally, they are the same, but I will submit a patch in reply to this email which removes the duplicate #defines from drivers/staging/rtl8723bs/include/ieee80211.h. It looks like there's also some #defines there that shadow enum members in 'linux/ieee80211.h', but I will address that in separate patch(es) when I have a chance. Thank you, Quytelda Kahja On Sun, Mar 25, 2018 at 7:05 AM, kbuild test robot wrote: > Hi Quytelda, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on mac80211-next/master] > [also build test WARNING on v4.16-rc6 next-20180323] > [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/Quytelda-Kahja/ieee80211-Replace-bit-shifts-with-the-BIT-macro-for-WLAN_CAPABILITY_/20180325-211645 > base: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master > config: i386-randconfig-s1-03251817 (attached as .config) > compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 > reproduce: > # save the attached .config to linux build tree > make ARCH=i386 > > All warnings (new ones prefixed by >>): > > In file included from drivers/staging/rtl8723bs/include/drv_types.h:33:0, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: >>> drivers/staging/rtl8723bs/include/ieee80211.h:444:0: warning: "WLAN_CAPABILITY_IBSS" redefined > #define WLAN_CAPABILITY_IBSS (1<<1) > > In file included from include/net/cfg80211.h:23:0, > from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50, > from drivers/staging/rtl8723bs/include/osdep_service.h:23, > from drivers/staging/rtl8723bs/include/drv_types.h:29, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: > include/linux/ieee80211.h:1593:0: note: this is the location of the previous definition > #define WLAN_CAPABILITY_IBSS BIT(1) > > In file included from drivers/staging/rtl8723bs/include/drv_types.h:33:0, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: >>> drivers/staging/rtl8723bs/include/ieee80211.h:445:0: warning: "WLAN_CAPABILITY_CF_POLLABLE" redefined > #define WLAN_CAPABILITY_CF_POLLABLE (1<<2) > > In file included from include/net/cfg80211.h:23:0, > from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50, > from drivers/staging/rtl8723bs/include/osdep_service.h:23, > from drivers/staging/rtl8723bs/include/drv_types.h:29, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: > include/linux/ieee80211.h:1603:0: note: this is the location of the previous definition > #define WLAN_CAPABILITY_CF_POLLABLE BIT(2) > > In file included from drivers/staging/rtl8723bs/include/drv_types.h:33:0, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: >>> drivers/staging/rtl8723bs/include/ieee80211.h:446:0: warning: "WLAN_CAPABILITY_CF_POLL_REQUEST" redefined > #define WLAN_CAPABILITY_CF_POLL_REQUEST (1<<3) > > In file included from include/net/cfg80211.h:23:0, > from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50, > from drivers/staging/rtl8723bs/include/osdep_service.h:23, > from drivers/staging/rtl8723bs/include/drv_types.h:29, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: > include/linux/ieee80211.h:1604:0: note: this is the location of the previous definition > #define WLAN_CAPABILITY_CF_POLL_REQUEST BIT(3) > > In file included from drivers/staging/rtl8723bs/include/drv_types.h:33:0, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: >>> drivers/staging/rtl8723bs/include/ieee80211.h:447:0: warning: "WLAN_CAPABILITY_PRIVACY" redefined > #define WLAN_CAPABILITY_PRIVACY (1<<4) > > In file included from include/net/cfg80211.h:23:0, > from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50, > from drivers/staging/rtl8723bs/include/osdep_service.h:23, > from drivers/staging/rtl8723bs/include/drv_types.h:29, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: > include/linux/ieee80211.h:1605:0: note: this is the location of the previous definition > #define WLAN_CAPABILITY_PRIVACY BIT(4) > > In file included from drivers/staging/rtl8723bs/include/drv_types.h:33:0, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: >>> drivers/staging/rtl8723bs/include/ieee80211.h:448:0: warning: "WLAN_CAPABILITY_SHORT_PREAMBLE" redefined > #define WLAN_CAPABILITY_SHORT_PREAMBLE (1<<5) > > In file included from include/net/cfg80211.h:23:0, > from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50, > from drivers/staging/rtl8723bs/include/osdep_service.h:23, > from drivers/staging/rtl8723bs/include/drv_types.h:29, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: > include/linux/ieee80211.h:1606:0: note: this is the location of the previous definition > #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5) > > In file included from drivers/staging/rtl8723bs/include/drv_types.h:33:0, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: >>> drivers/staging/rtl8723bs/include/ieee80211.h:449:0: warning: "WLAN_CAPABILITY_PBCC" redefined > #define WLAN_CAPABILITY_PBCC (1<<6) > > In file included from include/net/cfg80211.h:23:0, > from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50, > from drivers/staging/rtl8723bs/include/osdep_service.h:23, > from drivers/staging/rtl8723bs/include/drv_types.h:29, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: > include/linux/ieee80211.h:1607:0: note: this is the location of the previous definition > #define WLAN_CAPABILITY_PBCC BIT(6) > > In file included from drivers/staging/rtl8723bs/include/drv_types.h:33:0, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: >>> drivers/staging/rtl8723bs/include/ieee80211.h:450:0: warning: "WLAN_CAPABILITY_CHANNEL_AGILITY" redefined > #define WLAN_CAPABILITY_CHANNEL_AGILITY (1<<7) > > In file included from include/net/cfg80211.h:23:0, > from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50, > from drivers/staging/rtl8723bs/include/osdep_service.h:23, > from drivers/staging/rtl8723bs/include/drv_types.h:29, > from drivers/staging/rtl8723bs/hal/rtl8723b_dm.c:20: > include/linux/ieee80211.h:1608:0: note: this is the location of the previous definition > #define WLAN_CAPABILITY_CHANNEL_AGILITY BIT(7) > > > vim +/WLAN_CAPABILITY_IBSS +444 drivers/staging/rtl8723bs/include/ieee80211.h > > 554c0a3a Hans de Goede 2017-03-29 442 > 554c0a3a Hans de Goede 2017-03-29 443 #define WLAN_CAPABILITY_BSS (1<<0) > 554c0a3a Hans de Goede 2017-03-29 @444 #define WLAN_CAPABILITY_IBSS (1<<1) > 554c0a3a Hans de Goede 2017-03-29 @445 #define WLAN_CAPABILITY_CF_POLLABLE (1<<2) > 554c0a3a Hans de Goede 2017-03-29 @446 #define WLAN_CAPABILITY_CF_POLL_REQUEST (1<<3) > 554c0a3a Hans de Goede 2017-03-29 @447 #define WLAN_CAPABILITY_PRIVACY (1<<4) > 554c0a3a Hans de Goede 2017-03-29 @448 #define WLAN_CAPABILITY_SHORT_PREAMBLE (1<<5) > 554c0a3a Hans de Goede 2017-03-29 @449 #define WLAN_CAPABILITY_PBCC (1<<6) > 554c0a3a Hans de Goede 2017-03-29 @450 #define WLAN_CAPABILITY_CHANNEL_AGILITY (1<<7) > 554c0a3a Hans de Goede 2017-03-29 451 #define WLAN_CAPABILITY_SHORT_SLOT (1<<10) > 554c0a3a Hans de Goede 2017-03-29 452 > > :::::: The code at line 444 was first introduced by commit > :::::: 554c0a3abf216c991c5ebddcdb2c08689ecd290b staging: Add rtl8723bs sdio wifi driver > > :::::: TO: Hans de Goede > :::::: CC: Greg Kroah-Hartman > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation