From patchwork Mon Jan 27 22:15:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 23761 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D9BA920300 for ; Mon, 27 Jan 2014 22:15:39 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id m20sf12695552qcx.10 for ; Mon, 27 Jan 2014 14:15:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=0/d0MfOPj2Ybd3VdgyGKGnPlwHNOdaHsziAHmiKljmk=; b=aog5YWg1zeCclipqrPyWlcWKNzC5Qb/bNO11lqu9+JrFX5X9NNvcya/YohakrlIVCV dV1BqcuKyrVEvpkZdhScAyUyS/CF5SyiFd5Q/B+PtQ2x44zIhHbISdRHj0xiI6UTV/OQ pwAL40DtjOOz1Tr3X2tqXVZ0hMIYOy2DSF2IlQmFOISksYwVSTfuvddSN4dWd3stHvqW QoXyMO1sFHsf2pkRFp2Os3pqJDtAix/LG+UXMnziakWeurq9pCPKLRN9tzLUF778vgaD RrjBIs1wlrbn6XiMij1NBitR8YFK3xwpFYghyGV5ct2RF5vd2AzkD46K5v+0U8CJE3GD 7C/w== X-Gm-Message-State: ALoCoQmdwgZhx9LoRjRKExaeTkN677KQHAqxgf978BqyWs+LTBl6mTAnlZmGZYOPv/CvOhXjcuvY X-Received: by 10.236.13.36 with SMTP id a24mr2691981yha.50.1390860939096; Mon, 27 Jan 2014 14:15:39 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.134 with SMTP id u6ls1745667qge.79.gmail; Mon, 27 Jan 2014 14:15:39 -0800 (PST) X-Received: by 10.220.95.2 with SMTP id b2mr80050vcn.61.1390860938724; Mon, 27 Jan 2014 14:15:38 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id av10si4193651ved.150.2014.01.27.14.15.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 14:15:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id oy12so3885855veb.14 for ; Mon, 27 Jan 2014 14:15:38 -0800 (PST) X-Received: by 10.220.99.7 with SMTP id s7mr17285695vcn.19.1390860938636; Mon, 27 Jan 2014 14:15:38 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp162759vcz; Mon, 27 Jan 2014 14:15:38 -0800 (PST) X-Received: by 10.43.60.139 with SMTP id ws11mr24037495icb.12.1390860937793; Mon, 27 Jan 2014 14:15:37 -0800 (PST) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by mx.google.com with ESMTPS id ay2si18033923icb.105.2014.01.27.14.15.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 14:15:37 -0800 (PST) Received-SPF: neutral (google.com: 209.85.223.171 is neither permitted nor denied by best guess record for domain of alex.elder@linaro.org) client-ip=209.85.223.171; Received: by mail-ie0-f171.google.com with SMTP id as1so6701719iec.2 for ; Mon, 27 Jan 2014 14:15:37 -0800 (PST) X-Received: by 10.50.176.201 with SMTP id ck9mr19757623igc.46.1390860937446; Mon, 27 Jan 2014 14:15:37 -0800 (PST) Received: from [172.22.22.4] (c-71-195-31-37.hsd1.mn.comcast.net. [71.195.31.37]) by mx.google.com with ESMTPSA id d18sm49145872igz.0.2014.01.27.14.15.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 14:15:37 -0800 (PST) Message-ID: <52E6DA88.3060902@linaro.org> Date: Mon, 27 Jan 2014 16:15:36 -0600 From: Alex Elder User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: patches@linaro.org Subject: Fwd: [PATCH 3/3] remove extra definitions of U32_MAX References: <52BC4772.4020304@linaro.org> In-Reply-To: <52BC4772.4020304@linaro.org> X-Enigmail-Version: 1.5.2 X-Forwarded-Message-Id: <52BC4772.4020304@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alex.elder@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , -------- Original Message -------- Subject: [PATCH 3/3] remove extra definitions of U32_MAX Date: Thu, 26 Dec 2013 09:12:50 -0600 From: Alex Elder To: Sage Weil , David Miller , kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, Al Viro , jeffm@suse.com, Steven Rostedt , Andrew Morton , mst@redhat.com, Ingo Molnar Now that the definition is centralized in , the definitions of U32_MAX (and related) elsewhere in the kernel can be removed. Signed-off-by: Alex Elder --- fs/reiserfs/reiserfs.h | 4 ---- include/linux/ceph/decode.h | 19 ------------------- net/ipv4/tcp_illinois.c | 3 --- 3 files changed, 26 deletions(-) diff --git a/fs/reiserfs/reiserfs.h b/fs/reiserfs/reiserfs.h index 66a2e83..dfb617b 100644 --- a/fs/reiserfs/reiserfs.h +++ b/fs/reiserfs/reiserfs.h @@ -1958,10 +1958,6 @@ struct treepath var = {.path_length = ILLEGAL_PATH_ELEMENT_OFFSET, .reada = 0,} #define MAX_US_INT 0xffff // reiserfs version 2 has max offset 60 bits. Version 1 - 32 bit offset -#ifndef U32_MAX -#define U32_MAX (~(__u32)0) -#endif /* !U32_MAX */ - static inline loff_t max_reiserfs_offset(struct inode *inode) { if (get_inode_item_key_version(inode) == KEY_FORMAT_3_5) diff --git a/include/linux/ceph/decode.h b/include/linux/ceph/decode.h index 27fe66a..a6ef9cc 100644 --- a/include/linux/ceph/decode.h +++ b/include/linux/ceph/decode.h @@ -8,25 +8,6 @@ #include -/* This seemed to be the easiest place to define these */ - -#ifndef U32_MAX -#define U8_MAX ((u8)(~0U)) -#define U16_MAX ((u16)(~0U)) -#define U32_MAX ((u32)(~0U)) -#define U64_MAX ((u64)(~0ULL)) - -#define S8_MAX ((s8)(U8_MAX >> 1)) -#define S16_MAX ((s16)(U16_MAX >> 1)) -#define S32_MAX ((s32)(U32_MAX >> 1)) -#define S64_MAX ((s64)(U64_MAX >> 1LL)) - -#define S8_MIN ((s8)(-S8_MAX - 1)) -#define S16_MIN ((s16)(-S16_MAX - 1)) -#define S32_MIN ((s32)(-S32_MAX - 1)) -#define S64_MIN ((s64)(-S64_MAX - 1LL)) -#endif /* !U32_MAX */ - /* * in all cases, * void **p pointer to position pointer diff --git a/net/ipv4/tcp_illinois.c b/net/ipv4/tcp_illinois.c index f439472..e498a62 100644 --- a/net/ipv4/tcp_illinois.c +++ b/net/ipv4/tcp_illinois.c @@ -23,9 +23,6 @@ #define ALPHA_MIN ((3*ALPHA_SCALE)/10) /* ~0.3 */ #define ALPHA_MAX (10*ALPHA_SCALE) /* 10.0 */ #define ALPHA_BASE ALPHA_SCALE /* 1.0 */ -#ifndef U32_MAX -#define U32_MAX ((u32)~0U) -#endif /* !U32_MAX */ #define RTT_MAX (U32_MAX / ALPHA_MAX) /* 3.3 secs */ #define BETA_SHIFT 6