[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130502.140125.697030413654996310.davem@davemloft.net>
Date: Thu, 02 May 2013 14:01:25 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: bjorn@...k.no
Cc: kaber@...sh.net, torvalds@...ux-foundation.org,
hayeswang@...ltek.com, akpm@...ux-foundation.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
bhutchings@...arflare.com
Subject: Re: [GIT] Networking
From: Bjørn Mork <bjorn@...k.no>
Date: Thu, 02 May 2013 11:06:42 +0200
> From d957cf339bf625869c39d852ac6733ef597ecef9 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= <bjorn@...k.no>
> Date: Thu, 2 May 2013 10:37:05 +0200
> Subject: [PATCH] net: vlan,ethtool: netdev_features_t is more than 32 bit
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> Signed-off-by: Bjørn Mork <bjorn@...k.no>
Also applied and queued up for -stable.
These changes show me that this special type isn't providing type
safety in the way that we actually need it.
Something like how we do the MM page table types would work better:
typedef struct { u64 val; } netdev_features_t;
#define __netdev_feature(X) ((netdev_features_t) { X } )
and also with the appropriate set of accessors.
Then you can't get it wrong without a compile error.
But this is net-next material of course.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists