Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754082Ab2FMNbP (ORCPT ); Wed, 13 Jun 2012 09:31:15 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:41128 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753743Ab2FMNbN (ORCPT ); Wed, 13 Jun 2012 09:31:13 -0400 MIME-Version: 1.0 In-Reply-To: <20120613214157.0a5179d5358ec7f1b2646606@gmail.com> References: <20120613130054.b5695621.yoshikawa.takuya@oss.ntt.co.jp> <20120613130304.0186fa9d.yoshikawa.takuya@oss.ntt.co.jp> <20120613214157.0a5179d5358ec7f1b2646606@gmail.com> Date: Wed, 13 Jun 2012 22:31:13 +0900 Message-ID: Subject: Re: [PATCH 2/5] drivers/net/ethernet/dec/tulip: Use standard __set_bit_le() function From: Akinobu Mita To: Takuya Yoshikawa Cc: Takuya Yoshikawa , akpm@linux-foundation.org, bhutchings@solarflare.com, grundler@parisc-linux.org, arnd@arndb.de, benh@kernel.crashing.org, avi@redhat.com, mtosatti@redhat.com, linux-net-drivers@solarflare.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 777 Lines: 18 2012/6/13 Takuya Yoshikawa : > On Wed, 13 Jun 2012 18:43:40 +0900 > Akinobu Mita wrote: > >> Should this hash_table be converted from u16 hash_table[32] to >> DECLARE_BITMAP(hash_table, 16 * 32) to ensure that it is aligned >> on long-word boundary? > > I think hash_table is already long-word aligned because it is placed > right after a pointer. I recommend converting to proper bitmap. Because such an implicit assumption is easily broken by someone touching this function. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/