Message ID | 20200713110141.13156-3-kishon@ti.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2726097ilg; Mon, 13 Jul 2020 04:02:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGjFqLyta7Z0em+3Q+qB6NjPZhWFkhScVdyBnINWIA1uKPj2gCwPjSF96Vw6U73DWsVwA6 X-Received: by 2002:a17:907:2108:: with SMTP id qn8mr68010731ejb.16.1594638126453; Mon, 13 Jul 2020 04:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594638126; cv=none; d=google.com; s=arc-20160816; b=0qtNJWm6InwG3nK4/u6eylqcgIovBDf2qqm1YljUK7nYCh1WLmQs2auGqlRcL6hcMq cuHewxoQYrnz9LA9PtlwTskLGT4FYcAJ2lgZ5c4ZSKjB6IU1NhxSVg+++3Yz9Obs9J0I hCWv2VUDyN8PWwKQIeYPI0rd+7OuDvU2i87kWyqAbZH/C7ii3u42f5qyJgiHDNFMPMk6 sQAqTCLdO8I367l3mIwMd+heQW9lCCbJ0J612Y0rA718l/uvFozPdfXpvOtGySDaJqQm 3L23Q5Q7VlFKUlxEX4fJoxRSu0GaZa1l6NpCrWd/tKVPvUb/g1dbbZM4xbW3KXyipin6 JEZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZG1VUcH+6tOwwV7BnhCzX/gBAhx0Ee8zky2NKNJPpXQ=; b=eT9oFtFqYd1hns/i5fbh1oneZjEIP0B7dKfDAbaXU74/rdTlnawktEqKs/AVog0pQO ZuM5dhg4KCrutHK/2BJgMnxMC52UejjG8lXho3OiV56AhbXgzVIc/ppATjCGexvs6shh +harrF5MDhnVPRkd+2fC31RIOBYKncO0Gyd53oyNZ1Eu1k7wJShdqh5xsCb7drAqFZHP LyV5VR4fk05JzXkkoe23fJ3V07DeZgaJPtQOVnzG19K501CtLzJwpcKVHKO2FJTWHm3j E/yP5eODRYWKdiKOBgjdVlzaulXXn+OIcyM5lybrjiFqvuIyU3wrc1fHszb1JbhpRDIk oLvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iLcZlaFY; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: <devicetree-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca17si9187578ejb.533.2020.07.13.04.02.06; Mon, 13 Jul 2020 04:02:06 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iLcZlaFY; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729613AbgGMLCE (ORCPT <rfc822;patch@linaro.org> + 6 others); Mon, 13 Jul 2020 07:02:04 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:56768 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729594AbgGMLCE (ORCPT <rfc822; devicetree@vger.kernel.org>); Mon, 13 Jul 2020 07:02:04 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06DB1rRO101036; Mon, 13 Jul 2020 06:01:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1594638113; bh=ZG1VUcH+6tOwwV7BnhCzX/gBAhx0Ee8zky2NKNJPpXQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=iLcZlaFYgxY+pEddiCt4s0N65g148YmhrBqaWqC72bVb6Z+vCsVZ0j5iDnBkSapkF nduM9TqEoUbGUxHU5ar29OmsrViS8QRqqqXo7IY1GPlp7GxS5GmafIHJES9iZ0XkDn H2v7u9nbw40E9r/qEG7Z9nKVj0qaiKtAoDBVmlhA= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06DB1rWt009039 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Jul 2020 06:01:53 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 13 Jul 2020 06:01:53 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 13 Jul 2020 06:01:53 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06DB1gVc031460; Mon, 13 Jul 2020 06:01:50 -0500 From: Kishon Vijay Abraham I <kishon@ti.com> To: Tom Joseph <tjoseph@cadence.com>, Bjorn Helgaas <bhelgaas@google.com>, Rob Herring <robh+dt@kernel.org>, Kishon Vijay Abraham I <kishon@ti.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Arnd Bergmann <arnd@arndb.de> CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, <linux-pci@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-omap@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> Subject: [PATCH v7 02/14] linux/kernel.h: Add PTR_ALIGN_DOWN macro Date: Mon, 13 Jul 2020 16:31:29 +0530 Message-ID: <20200713110141.13156-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200713110141.13156-1-kishon@ti.com> References: <20200713110141.13156-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: <devicetree.vger.kernel.org> X-Mailing-List: devicetree@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 9b7a8d74a9d6..c3b361b5be54 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -34,6 +34,7 @@ #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) #define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) +#define PTR_ALIGN_DOWN(p, a) ((typeof(p))ALIGN_DOWN((unsigned long)(p), (a))) #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) /* generic data direction definitions */