Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933113AbaLDVP1 (ORCPT ); Thu, 4 Dec 2014 16:15:27 -0500 Received: from mga02.intel.com ([134.134.136.20]:6536 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932845AbaLDVPX (ORCPT ); Thu, 4 Dec 2014 16:15:23 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,518,1413270000"; d="scan'208";a="618815698" From: Ashutosh Dixit To: Dan Streetman Cc: Jonathan Corbet , Jiri Kosina , Greg Kroah-Hartman , Peter Foley , Seth Jennings , Randy Dunlap , "Yokoyama\, Caz" , "Chandramouli\, Dasaratharaman" , "Dutt\, Sudeep" , "linux-doc\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" Subject: Re: [PATCH] Documentation/mic/mpssd: fix compile error on BE platforms References: <1417708875-32189-1-git-send-email-ddstreet@ieee.org> Date: Thu, 04 Dec 2014 13:33:10 -0800 In-Reply-To: <1417708875-32189-1-git-send-email-ddstreet@ieee.org> (Dan Streetman's message of "Thu, 4 Dec 2014 09:01:15 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 04 2014 at 08:01:15 AM, Dan Streetman wrote: > Change any use of htole* macro in static context to instead manually check > for endianness and use __bswap_constant_* macro instead. > > The current glibc definitions of the htole* macros don't allow their use > in a static context; on big endian systems the build fails with: Instead of building Documentation/mic/mpssd for all architectures, I have submitted a patch which would build it only for x86_64 since that is the only place where it will ever be used. This would resolve this and future builds breaks and also make this patch unnecessary. The maintainers can decide to accept either or these patches, or even both. -- 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/