From patchwork Mon Jan 27 22:15:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 23763 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 64B4B20300 for ; Mon, 27 Jan 2014 22:15:46 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g12sf26648878oah.10 for ; Mon, 27 Jan 2014 14:15:45 -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=NXfbuyiR4GCPrW3oc9dbKyGw3LvtjGHM1r3W/tJ+aUo=; b=XVXoiVpzE5xRfixiQRugSrA4vyeikYPmku/IYwMBwNNMKUhISh+pwS96OwtjFcsm8u 00iNX/s1r8qiekmQEyMdm4vzmzFrGDyANtSNaB2hFXBZVnqusVwbOeJhWVdln7lRXjwN ac51sa/xxdwT4dZTTtFdEPyhcA/V0/jn+CdPCushq6BfK7W9XHcmkMEif+IYIKtWRsre Ktsvs9KSgmF4k3eXkG7V2ePh6laY5PGPQC3QYqCh+538h0R+ENejeCJyBllMPwmfAXkX K491w4jhXHYPwnCoax371bgr+mIlata3GBBd4JdfYEeXV5Zhtt4FjQCthj+rHO3kYoDS 90UA== X-Gm-Message-State: ALoCoQlczSfX+0fiVXIZ6JIRY4et1gZS/dQzxtjxAHD8Yyuw5HKQSmj/UB+zinLb9rycvXZOmyDi X-Received: by 10.182.158.4 with SMTP id wq4mr11861228obb.18.1390860945490; Mon, 27 Jan 2014 14:15:45 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.9 with SMTP id l9ls1709060qga.13.gmail; Mon, 27 Jan 2014 14:15:45 -0800 (PST) X-Received: by 10.58.106.134 with SMTP id gu6mr388247veb.44.1390860945405; Mon, 27 Jan 2014 14:15:45 -0800 (PST) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id tt2si1909354vdc.87.2014.01.27.14.15.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 14:15:45 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id id10so3876613vcb.13 for ; Mon, 27 Jan 2014 14:15:45 -0800 (PST) X-Received: by 10.58.100.100 with SMTP id ex4mr17646857veb.2.1390860945314; Mon, 27 Jan 2014 14:15:45 -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 u4csp162768vcz; Mon, 27 Jan 2014 14:15:44 -0800 (PST) X-Received: by 10.50.60.99 with SMTP id g3mr20012807igr.13.1390860944117; Mon, 27 Jan 2014 14:15:44 -0800 (PST) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by mx.google.com with ESMTPS id je8si871257icb.95.2014.01.27.14.15.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 14:15:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.213.176 is neither permitted nor denied by best guess record for domain of alex.elder@linaro.org) client-ip=209.85.213.176; Received: by mail-ig0-f176.google.com with SMTP id j1so10328636iga.3 for ; Mon, 27 Jan 2014 14:15:43 -0800 (PST) X-Received: by 10.50.78.200 with SMTP id d8mr19619080igx.38.1390860943839; Mon, 27 Jan 2014 14:15:43 -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 ac3sm49107768igd.4.2014.01.27.14.15.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 14:15:43 -0800 (PST) Message-ID: <52E6DA8F.50200@linaro.org> Date: Mon, 27 Jan 2014 16:15:43 -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] clk: bcm281xx: define U32_MAX conditionally for now References: <1388155197-29703-2-git-send-email-elder@linaro.org> In-Reply-To: <1388155197-29703-2-git-send-email-elder@linaro.org> X-Enigmail-Version: 1.5.2 X-Forwarded-Message-Id: <1388155197-29703-2-git-send-email-elder@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.220.182 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 1/1] clk: bcm281xx: define U32_MAX conditionally for now Date: Fri, 27 Dec 2013 08:39:57 -0600 From: Alex Elder To: mturquette@linaro.org CC: akpm@linux-foundation.org, sfr@canb.auug.org.au A separate patch that defines U32_MAX in has been accepted and will cause a build problem if it is present in the tree without this change. Defining these symbols conditionally avoids this problem. The block of definitions found in this "clk-kona.h" can be deleted later. Signed-off-by: Alex Elder --- drivers/clk/bcm/clk-kona.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/bcm/clk-kona.h b/drivers/clk/bcm/clk-kona.h index 2a01cbd..b1991b3 100644 --- a/drivers/clk/bcm/clk-kona.h +++ b/drivers/clk/bcm/clk-kona.h @@ -25,9 +25,11 @@ #define BILLION 1000000000 +#ifndef U32_MAX #define U8_MAX ((u8)~0U) #define U32_MAX ((u32)~0U) #define U64_MAX ((u64)~0U) +#endif /* !U32_MAX */ /* The common clock framework uses u8 to represent a parent index */ #define PARENT_COUNT_MAX ((u32)U8_MAX)