Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp769108rdb; Fri, 2 Feb 2024 03:38:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyzJw4PIvyerWjmJnr4mFh6LLdImrfMRUZx8TMOFzaYw1e80QbOsX7otW+pF7IxJb9JqfT X-Received: by 2002:a17:906:3093:b0:a36:dfa5:69c with SMTP id 19-20020a170906309300b00a36dfa5069cmr1336172ejv.14.1706873939439; Fri, 02 Feb 2024 03:38:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXAS4SzQA6wiOQ7KOC2XyLtAKaPJ9zjb/ynSG/gzj2tNHrUluX601xRhoKAHtgjRV7Kic4/+r3XD73rr+4NaOLUCDQtpVU9ILujLfkdQA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u22-20020a1709063b9600b00a31a3f16712si696023ejf.252.2024.02.02.03.38.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 03:38:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B+trUOcr; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-49763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 07C841F28604 for ; Fri, 2 Feb 2024 11:38:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E73F13EFEB; Fri, 2 Feb 2024 11:38:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="B+trUOcr" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9331B13D506; Fri, 2 Feb 2024 11:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.11 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706873892; cv=fail; b=crrQ02uMLhmgNGpB3svvYBcy9EWeOHm8pTo9m6a7yZqD6w45syk9iYj8Dr/L/xTsip98B5fHu1hevwH1Uuz1tawCgfy8rX/fUDzl4Bda+lcH3JBnHe/Utb6l6n56d7w3bA/lezSasciK+1TYZ34Cz/x6vFGNdkgmqJt9OupApZc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706873892; c=relaxed/simple; bh=cZioGB2HtDrsXgG5wz4fFN840drduEIUgNpk7rQWJg8=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=DzXEDkoDsIjVtK7++sWu9mZl2JyBfKttPyj2snGM9v4kIfHAUFJw5b75YN7FIsx4KFA60LCew9vX//MKgLF1OupSOFlSMJU2vef/BKAI4d6AyFdldl+pP9Z4Dhd2HObFF/4WCODe6d54eZ+atTXkHRCrydontfSouxSsLkSZp6Q= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=B+trUOcr; arc=fail smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706873890; x=1738409890; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=cZioGB2HtDrsXgG5wz4fFN840drduEIUgNpk7rQWJg8=; b=B+trUOcrVqmTihgPdv+bP4WfTo5jEK88PtkRh77nh8GyEzpRrD8/CkHC OBsCIJmJcwkZcStVRkxWInX4U0D4esUemjI0exUSRuOG5Euqy1B6Tg7SY lX3WuvAnP7QFfRyXl27E5xO8hDeAiNGJ/szyYoKVD8efq6XEaJ41IIi9n QBMkXjDruI1h3DJi6g6/cWzNkizFdeFpCFbYmQOKep+z78aTSOj2jIJCV XJ59Kva3WSxlbZkTb+H+ooNPQNb2NRMPTPxp7gdYAFYyE2Nh06Pgus22n n2UtX6mu+UtTcR+yapc4zyhZ6Ov03RY+ZD85/olHPUMNcZQT2hzf16t8U A==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="10793588" X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="10793588" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 03:38:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="45142" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa009.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 02 Feb 2024 03:38:06 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 2 Feb 2024 03:38:06 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 2 Feb 2024 03:38:06 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 2 Feb 2024 03:38:06 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 2 Feb 2024 03:38:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cAfMfP+pVx7CN7xJvt341/fSgTugNAVyU0mYBm4K6T0n+0lxiRsrsv/koZVfeCgwhgXBk9f1RnI2sdb+L2Qman9vHjRTMdSTQgRiotzATfUln5pIuI6yE5ty9EC/4WMSO+VwXbWs8CvW+7lVAxsgVtnNOuK2PJTRs3Cf+qVe8ueFcAd+D69KkTQF5z1Cy/Jq9bhNgT8bQlZNzd9+057HRdbK0pFprXhWSWuYnLFEPlGflXQrGwcXzeDtCl7vfXXpDrC9Q88MJmsmfLvyQgW5hfI5jdARypKkyd/x4w9FKhwLqtDJxMRmG77fOPJO6QErN6i9kdxfPJUXZHhN7/Pe1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=M584L8oCKrEJ2Rt2VGppr/AiDCbSayeL6c/cGgHNpHA=; b=OuorxP84oRk3Lh7+SI/4pDNkadZqmIX52ga/qs50q0mRy+LJg5NbUx5sxCprB4e/gJx8ctPetEmfg4pbSwKZwySoC7OoJlSo2O6kyxy4ERokt/Np2s++3e8Li7Xgpf9b5tT8rZrVMmEyiPkNbHKAgP0Z9bdssu5eLjGkeLoY5t96SaE0ePacm0McrP62O8EYDYUBezJ2/IHJE3mK5IR4wkpzVGkL43v0sE9wzEvwBrdqhjatobKSOlhXTN/i5fKHm77dSWYq47PZO7LL+GXf39v1yU0RBAXONnVRGVwsELEPnelCZYnCoPa6xqLxn1jBa44dNYcd87ov2L/Ms3cImA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MN6PR11MB8102.namprd11.prod.outlook.com (2603:10b6:208:46d::9) by SA0PR11MB4541.namprd11.prod.outlook.com (2603:10b6:806:94::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.29; Fri, 2 Feb 2024 11:38:04 +0000 Received: from MN6PR11MB8102.namprd11.prod.outlook.com ([fe80::b1b8:dbaa:aa04:a6bf]) by MN6PR11MB8102.namprd11.prod.outlook.com ([fe80::b1b8:dbaa:aa04:a6bf%7]) with mapi id 15.20.7249.024; Fri, 2 Feb 2024 11:38:04 +0000 Message-ID: <694382da-8d3e-4092-8a52-1982f655aca1@intel.com> Date: Fri, 2 Feb 2024 12:37:54 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5 11/21] tools: move alignment-related macros to new Content-Language: en-US To: Alexander Lobakin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni CC: Michal Swiatkowski , Marcin Szycik , Wojciech Drewek , Yury Norov , Andy Shevchenko , "Rasmus Villemoes" , Alexander Potapenko , Jiri Pirko , Ido Schimmel , Simon Horman , , , , , , , References: <20240201122216.2634007-1-aleksander.lobakin@intel.com> <20240201122216.2634007-12-aleksander.lobakin@intel.com> From: Przemek Kitszel In-Reply-To: <20240201122216.2634007-12-aleksander.lobakin@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0048.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:48::10) To MN6PR11MB8102.namprd11.prod.outlook.com (2603:10b6:208:46d::9) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN6PR11MB8102:EE_|SA0PR11MB4541:EE_ X-MS-Office365-Filtering-Correlation-Id: 09fa2ed5-fe72-4ad0-885a-08dc23e36b2b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C1jgBuhuOLBMfiGqailvrlKvqgT+O0JEpP/Xm99tRhcSpkOc/nkzYhjUIe0MKnBkiAfXqCeZw3YOoQRouXhpvH3bEOaXZlVjOu9UCeoIVtzaLkeDm+X42/l93OLcFP8Kkv/anpIFkUoeNNWl+9ZI9iVLNyQEiwXXy3r82D35VR+yx1+U5VfyKpzi0ArXecqnOtp2aFLOpAnjRk99Nb70eqt3Eclr6dEeN9KwFUycb1xkgG5zEQ+574Rn+E78iYkRNzDcGWXzVWHBUZmAnUiv9UMWTydXkgu0ume/m1uxrmwl+cuhGyFqzyFq3hQ68XX8Wpuv3Suw7EXg/lhfGCTbmbr6uAPq1gvXDA7z7zokqLhhW/LotGBus4Mn7N5oB4GqtC+lCRawhm6ys/TXolY1jnsVeAX8toJU4rHM2R/UvJ3UPixF+5/lTliZq5dBAPhBNszWyypmEXZP5ZUUmAM1rY8q24tAZdOIQ6wHtUfq5zHPj20588ynXhzEpi7nRctZ8Vazm9fCj9p4Dgs7+n/z93PjQr43e3tySZkXSkOslP0RiTPaQElqrjTf1W59lBt6PhKz9Oso8HqN2feGufy/vusEIttsQoYCVm9+PZrxR/6cZucQ39cTKAUKzokNHkiWIFlxQTkMjJtgvbCwvbzP7w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8102.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(366004)(376002)(136003)(39860400002)(346002)(230922051799003)(186009)(1800799012)(451199024)(64100799003)(83380400001)(26005)(41300700001)(2616005)(54906003)(82960400001)(8936002)(38100700002)(110136005)(66946007)(8676002)(316002)(66556008)(4326008)(66476007)(5660300002)(4744005)(7416002)(2906002)(6666004)(6506007)(6486002)(6512007)(478600001)(53546011)(86362001)(31696002)(36756003)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S3hrTW04YmJYNElOY1Ixc052dW9MQkFNelhjVHUrZjJWSisxZk9PU3ljRDRl?= =?utf-8?B?S3AyUk5KTHQ0dEpKbDhlWEJjTFhEZU9mMitMYmdoZFpGNmtCRDlXMEdkMEhV?= =?utf-8?B?K0ZoZEs3dE81QSs3WGJtdE9qK083dWhtelk3WnFsTWM5bFg5TlRYYkthNzUw?= =?utf-8?B?UjJrcTBlRTJnQ2RrL3NkNFhZV0N0cHl0c3I0djZLdndKWkduaG5oZk5kbkRP?= =?utf-8?B?ZW5UQkxWTm5waExjVnpaNDBZbkRKclFJaUFNUVJRdkdGSURmV21ya29ZRFQx?= =?utf-8?B?SXFKZy82MTdyMDE0ZUpad3lUVG5VVndNc1BJc1htaGJCK0NMM3YwR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5Tkxpb280SG9yMCtSc292SE9SYUMrNVFI?= =?utf-8?B?MlE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 09fa2ed5-fe72-4ad0-885a-08dc23e36b2b X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8102.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2024 11:38:04.3982 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +VWa99jho0GVibwLN2kSkXbVoe0JbG4QizQGg2o9zixWert2WkY1RhFpFvsExM0Q1fB13XVrR9MwvvAduzVBj5i3ouJ4YGblQWor7PY273c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4541 X-OriginatorOrg: intel.com On 2/1/24 13:22, Alexander Lobakin wrote: > Currently, tools have *ALIGN*() macros scattered across the unrelated > headers, as there are only 3 of them and they were added separately > each time on an as-needed basis. > Anyway, let's make it more consistent with the kernel headers and allow > using those macros outside of the mentioned headers. Create > inside the tools/ folder and include it where needed. > > Signed-off-by: Alexander Lobakin > --- > tools/include/linux/align.h | 12 ++++++++++++ > tools/include/linux/bitmap.h | 2 +- > tools/include/linux/mm.h | 5 +---- > 3 files changed, 14 insertions(+), 5 deletions(-) > create mode 100644 tools/include/linux/align.h > Reviewed-by: Przemek Kitszel