From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [PATCH 1/2] wireless: mt76: call hweight8() instead of __sw_hweight8() Date: Mon, 18 Feb 2019 21:20:46 +0200 Message-ID: <87pnrosy29.fsf@kamboji.qca.qualcomm.com> References: <1550469571-25933-1-git-send-email-yamada.masahiro@socionext.com> <1550469571-25933-2-git-send-email-yamada.masahiro@socionext.com> <877edxt1f1.fsf@kamboji.qca.qualcomm.com> <87tvh0syq2.fsf@kamboji.qca.qualcomm.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <87tvh0syq2.fsf@kamboji.qca.qualcomm.com> (Kalle Valo's message of "Mon, 18 Feb 2019 21:06:29 +0200") Sender: linux-kernel-owner@vger.kernel.org To: Masahiro Yamada Cc: Ingo Molnar , Thomas Gleixner , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-wireless@vger.kernel.org, Christoph Hellwig , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Bianconi , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Felix Fietkau , Matthias Brugger List-Id: linux-mediatek@lists.infradead.org Kalle Valo writes: > Kalle Valo writes: > >> Masahiro Yamada writes: >> >>> __sw_hweight8() is just internal implementation. >>> >>> Drivers should use the common API, hweight8(). >>> >>> Signed-off-by: Masahiro Yamada >> >> Acked-by: Kalle Valo >> >>> This patch should go to x86 tree along with 2/2. >>> >>> Otherwise, all{yes,mod}config of x86 would be broken. >>> >>> This patch is trivial enough. >>> I want ACK from the net/wireless maintainer >>> so that this can go in via x86 tree. >> >> Sounds good to me, feel free to push via the x86 tree. > > Actually, can you wait a bit? Felix just reminded me that we have a > similar patch pending from Ben Hutchings: > > https://patchwork.kernel.org/patch/10808203/ > > And it seems there are two instances of __sw_hweight8, at least in my > wireless-drivers-next tree: > > drivers/net/wireless/mediatek/mt76/mac80211.c: int i, nstream = > __sw_hweight8(dev->antenna_mask); > drivers/net/wireless/mediatek/mt76/mac80211.c: int n_chains = > __sw_hweight8(dev->antenna_mask); > > So we need to think what to do. I think the best would be that Felix applies Ben's patch to the wireless tree and I'll push it to Linus during the next merge window (via net-next). Simpler and less conflicts that way. So Masahiro, could you hold your x86 patch for a while until the mt76 patch will be in Linus' tree? That should not take more than two weeks, I think. -- Kalle Valo