Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7007639rwi; Mon, 24 Oct 2022 08:42:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4cWjwR39Xv3awAPBEKzUS+dagjTPKatcaLm8N6qFGOmmRweZbF+8DgwonCzxi7sXEDoknx X-Received: by 2002:a17:90b:1e03:b0:20d:7f0:7671 with SMTP id pg3-20020a17090b1e0300b0020d07f07671mr38303780pjb.174.1666626152481; Mon, 24 Oct 2022 08:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666626152; cv=none; d=google.com; s=arc-20160816; b=IKfr8E6mE8mHYLa0pq1VVihmf/SYE5cgeKaXUTtwRrPc17qo2P44z6Y8TW/9ZjET2T JT8l9JUkA2brozfHwEROwkyVgg+dPTljIG/kPRA4BV9dHT++UogrvqcB7fNXW4QsZtHV nISLePpxdSH9LGgt87YZ1OhIqoV5RgwpdldeK1VP/5Pni7IXqoUbQCt4xz2Hax4FwcWP RF7fiDjmytnwQqN4g+KLCOYxx3M5pe0RRGOKhptKs0HeX5LVzjW7SRp9KalgpBKEkI7N fNRSOOqUDICtgTixhDWmbrE+WMYFglqWVCmDvkDbbh2CYorxb4Z4Bbvwej+QI8Idc4sx bltQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3rOjnwLS0L1hOL5mm32937WDelq0OUBHoIdZryau318=; b=j/qYtdhIHWAASTkT3c6i3yl2lSPyllhD9kXlwjICSiUIUCsxpA1XtfagNdVa+9PjrF gM7seITTCWazUrY25vfnTGlwoMeJEL7ZFb1Tu2KyURzqZcS4YPQnurIvVLeOVpK+Ci4I kpzN5xdF1ufFpx9Mwyu8UbqT/SxoyK0kbkwq9UuZuEUyZaS3RUbwg8RlpNg3FRzdUsh8 H8LbVSQkoRq4TYKEVdqpEomzk2i4LUry40w5n8Fvz37BjXerjBj73AjpJp0mG0pHNvAc 7js+0K7RB7CPJubcUL1+RU+7t7mpMFiMST4PnRAFuycSpBrWfNkXSjIXKakoAE1ipCIF HLVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HuS5pPx7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jd3-20020a170903260300b001869e7dea17si5133624plb.129.2022.10.24.08.42.20; Mon, 24 Oct 2022 08:42:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HuS5pPx7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231742AbiJXPbL (ORCPT + 99 others); Mon, 24 Oct 2022 11:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232048AbiJXPav (ORCPT ); Mon, 24 Oct 2022 11:30:51 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AED021A9900 for ; Mon, 24 Oct 2022 07:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666621040; x=1698157040; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vjLUo0d5GXV0ni6+ddEs2sp+kzKyXOmoq/0N6AX5ATg=; b=HuS5pPx7lawsgqVWX0EmMJmwj5RnSAuQi5qglEzALD7oEIAMK4sjoglc dJm3Hd5shrnpn+w7PbIiE84JDi5LZ4AyzbPEzN9xER1Kch8lqPyl7WU61 jaQGrMeCKw00EXJIRerEgLDDxJVEniapW0Jm+ZzgVm5sy1b/rAJeVpsw8 GD1TxNpkJdviLZf/3MgtjxttB13k7YhSYH/kDxZsqXYakfVwaMTSpR7pT nvxHmErwtflZk0peXVCDxxkw5qOKsdzYdBoo1qsuJVtzovIK/KhgE8TI2 3ZxqEIS3bKpAGF4owov0K6qq8mkXGSbm3aVqRxnag+e++mQs/C8mzVi2W A==; X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="369482023" X-IronPort-AV: E=Sophos;i="5.95,209,1661842800"; d="scan'208";a="369482023" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 06:24:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="960426203" X-IronPort-AV: E=Sophos;i="5.95,209,1661842800"; d="scan'208";a="960426203" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 24 Oct 2022 06:24:17 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 272AB291; Mon, 24 Oct 2022 16:24:39 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Ingo Molnar , linux-kernel@vger.kernel.org Cc: Andrew Morton Subject: [rft, PATCH v1 1/4] kernel.h: Move READ/WRITE definitions to Date: Mon, 24 Oct 2022 16:24:31 +0300 Message-Id: <20221024132434.47057-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ingo Molnar Headers shouldn't be forced to include just to gain these simple constants. Signed-off-by: Ingo Molnar Signed-off-by: Andy Shevchenko --- include/linux/kernel.h | 4 ---- include/linux/types.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index fe6efb24d151..bc3e0364970a 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -44,10 +44,6 @@ */ #define REPEAT_BYTE(x) ((~0ul / 0xff) * (x)) -/* generic data direction definitions */ -#define READ 0 -#define WRITE 1 - /** * ARRAY_SIZE - get the number of elements in array @arr * @arr: array to be sized diff --git a/include/linux/types.h b/include/linux/types.h index ea8cf60a8a79..67846bc43d53 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -125,6 +125,10 @@ typedef s64 int64_t; typedef u64 sector_t; typedef u64 blkcnt_t; +/* generic data direction definitions */ +#define READ 0 +#define WRITE 1 + /* * The type of an index into the pagecache. */ -- 2.35.1