Message ID | 20200501131459.801370911@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=1/SS=6P=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76CF4C47253 for <stable@archiver.kernel.org>; Fri, 1 May 2020 13:53:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 56C892054F for <stable@archiver.kernel.org>; Fri, 1 May 2020 13:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588341226; bh=iyB7jYnakYPDqumcyEXSoel5QyTvyXki8tVZ+K2WuzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=iD4OlHt+7z2dX1KJwDPi6Eo0PGXkZ7hb69eM3cx3N/fCfnzqkh0uQ6SEPHj+zGDRg Rt0/gKGeDF3+6Y73a+CZHp+9WTYnkZsu2OkSKXhXEqLlPUeIeHgmQd9sTvZIYncrFZ c1zmun5VizTufTDUXTsjXzMCTt9RT4Wnpfyd6158= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729175AbgEANxl (ORCPT <rfc822;stable@archiver.kernel.org>); Fri, 1 May 2020 09:53:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:34314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730798AbgEANf4 (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 1 May 2020 09:35:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8298424954; Fri, 1 May 2020 13:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588340156; bh=iyB7jYnakYPDqumcyEXSoel5QyTvyXki8tVZ+K2WuzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JbQEZffLAGyqsTJX8S6zuJ7gSMqgLQYN88ns+kCbx5kvA093gqgOHySL/4qcYAWmR Rev93NAqsOXM/p2v6QeuYn2bnC8ulqYX5Pfn3+RuyDxr5ywY31N/j55zfg6goX4WYq iGuMc76m0UusDJUpg9o4vUKKX/Ob06SNyPTWnIvs= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Christian Borntraeger <borntraeger@de.ibm.com>, Yury Norov <yury.norov@gmail.com>, Allison Randal <allison@lohutok.net>, Joe Perches <joe@perches.com>, Thomas Gleixner <tglx@linutronix.de>, William Breathitt Gray <vilhelm.gray@gmail.com>, Torsten Hilbrich <torsten.hilbrich@secunet.com>, Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org>, Guenter Roeck <linux@roeck-us.net> Subject: [PATCH 4.19 03/46] include/uapi/linux/swab.h: fix userspace breakage, use __BITS_PER_LONG for swap Date: Fri, 1 May 2020 15:22:28 +0200 Message-Id: <20200501131459.801370911@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200501131457.023036302@linuxfoundation.org> References: <20200501131457.023036302@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/include/uapi/linux/swab.h +++ b/include/uapi/linux/swab.h @@ -135,9 +135,9 @@ static inline __attribute_const__ __u32 static __always_inline unsigned long __swab(const unsigned long y) { -#if BITS_PER_LONG == 64 +#if __BITS_PER_LONG == 64 return __swab64(y); -#else /* BITS_PER_LONG == 32 */ +#else /* __BITS_PER_LONG == 32 */ return __swab32(y); #endif }