Received: by 10.213.65.68 with SMTP id h4csp559064imn; Fri, 30 Mar 2018 10:43:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+i/PwY9mCVo9UffE+rm9dXPkiXlzoC4F7meiZhymNTrQY/+h83s8cvzXJuuvmH4tgWfz2i X-Received: by 2002:a17:902:b60c:: with SMTP id b12-v6mr7752517pls.203.1522431831008; Fri, 30 Mar 2018 10:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522431830; cv=none; d=google.com; s=arc-20160816; b=0u253oe7mc7MtJDI6Xt914Zn1j+DkAS+Wpv3xa4PB4MwQR56iQsW3lHQnP8ELe+MYM lKoflNC+FOCg0B3Gr8PV+82ArhtPv6MUl6kLf9mWIbzmuE0FzTQQ1mF9V/CPaSPV3pjF hBFf/83YJ0esqmvkT5VG6qBae6/wZVi9XEydLWjuNQRbevsGjXKCextnX1DqSAyjN+Th zkVxezE+BxYP/mrKtwPCOZWLITiS5fQg/CamspjnKpLIt66z0ARm1TfGhDnGYiPG5M91 5Q2HS1QmwgvUVntQJp7m1XHqXgGNCoOjGRbwHC0tpaUuRJxUL64ulff70R4ls22JYtqx yJsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=0RcaxddTltlveqNvPg1ea1lGA3Nv2NYXVbvE6UEzFoE=; b=dc/YOuv1jMXfknNpZ33iDwgh0It0/dvhp21s6dAc8ZVHOxNpmWBuLA1Mc1vwxu7zDH sqILQ7ameDrmN/iwp5c7kU5rIdJJelK7oK/g8Z3ampBL9479B5I4NOjziFqfl8LKHGto 5lU6npZYunRKpmCfwo6xIyfypA5pyn1E+NSunytuohZaYlbMfeJRkDCdf3ut7ejbABfx x1U6eFyS8jTsg9B8kPwCHJl2/RPWP/IR3JeqI9tEFgMqm1Krhuh/FyeynR27YvhxsL89 WVbGOK778ah19/op5JoJbz9+//j4LC0BWjnKYTJKPIm3g/VP0fG+CtKH0XnBOo7TvBMo u/eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 128si5909733pgh.189.2018.03.30.10.43.36; Fri, 30 Mar 2018 10:43:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752303AbeC3Rmb (ORCPT + 99 others); Fri, 30 Mar 2018 13:42:31 -0400 Received: from g4t3425.houston.hpe.com ([15.241.140.78]:52476 "EHLO g4t3425.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751749AbeC3Rma (ORCPT ); Fri, 30 Mar 2018 13:42:30 -0400 Received: from G4W9120.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.210.21.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3425.houston.hpe.com (Postfix) with ESMTPS id 51F67BC; Fri, 30 Mar 2018 17:42:29 +0000 (UTC) Received: from G4W9122.americas.hpqcorp.net (2002:10d2:1511::10d2:1511) by G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 30 Mar 2018 17:41:53 +0000 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (15.241.52.11) by G4W9122.americas.hpqcorp.net (16.210.21.17) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Fri, 30 Mar 2018 17:41:52 +0000 Received: from AT5PR8401MB0385.NAMPRD84.PROD.OUTLOOK.COM (10.169.2.151) by AT5PR8401MB1011.NAMPRD84.PROD.OUTLOOK.COM (10.169.7.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.10; Fri, 30 Mar 2018 17:41:50 +0000 Received: from AT5PR8401MB0385.NAMPRD84.PROD.OUTLOOK.COM ([fe80::2956:a4c0:fb27:a07e]) by AT5PR8401MB0385.NAMPRD84.PROD.OUTLOOK.COM ([fe80::2956:a4c0:fb27:a07e%4]) with mapi id 15.20.0631.012; Fri, 30 Mar 2018 17:41:50 +0000 From: "Kani, Toshi" To: "xieyisheng1@huawei.com" , "akpm@linux-foundation.org" CC: "linux-kernel@vger.kernel.org" , "guohanjun@huawei.com" , "tanxiaojun@huawei.com" , "wangzhou1@hisilicon.com" , "kstewart@linuxfoundation.org" , "gregkh@linuxfoundation.org" , "linux-arch@vger.kernel.org" , "arnd@arndb.de" , "jcm@redhat.com" Subject: Re: [RFC PATCH] lib/ioremap: Avoid triggering BUG_ON when end is not PAGE_ALIGN Thread-Topic: [RFC PATCH] lib/ioremap: Avoid triggering BUG_ON when end is not PAGE_ALIGN Thread-Index: AQHTx+QYtn35R0vJSUez91zNgj+/lKPpDOKA Date: Fri, 30 Mar 2018 17:41:50 +0000 Message-ID: <1522431689.2693.290.camel@hpe.com> References: <1522385385-7074-1-git-send-email-xieyisheng1@huawei.com> In-Reply-To: <1522385385-7074-1-git-send-email-xieyisheng1@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=toshi.kani@hpe.com; x-originating-ip: [15.203.227.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AT5PR8401MB1011;7:o3J8hzcnhBTYb2kTuacXsT/mLdAb7JM3dVDZZQsAY6LsAnF5tHFDUQRXbPgp3KU4TIEJVnTjVyGjZB2ILSsLQHEOZkh3Chh1zx6SaF/u3iDdlxrh7yevrxvrt7UvXy9Dpc+6q2GE73OLWNEviIxaGz9NSb+tAfpBqv3hkiQO9BaUD4URI9QMG61gRhPMAncORD0Befx3CafrOrtHZWdp3vOQu3JbiJs7HJ+3u8U1byNAEQy9i2tvJyU6XeqkcHKI x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 732ee7f7-900a-44dc-b9c2-08d5966584f1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(8989060)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7153060)(7193020);SRVR:AT5PR8401MB1011; x-ms-traffictypediagnostic: AT5PR8401MB1011: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231221)(944501327)(52105095)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:AT5PR8401MB1011;BCL:0;PCL:0;RULEID:;SRVR:AT5PR8401MB1011; x-forefront-prvs: 06274D1C43 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(366004)(39380400002)(396003)(346002)(376002)(377424004)(189003)(199004)(3280700002)(68736007)(446003)(76176011)(102836004)(486005)(476003)(14454004)(3660700001)(486005)(11346002)(2616005)(106356001)(59450400001)(2900100001)(6512007)(6116002)(3846002)(53936002)(6506007)(97736004)(99286004)(66066001)(2501003)(5250100002)(6246003)(25786009)(86362001)(105586002)(478600001)(186003)(103116003)(8936002)(8676002)(229853002)(81166006)(54906003)(4326008)(36756003)(5660300001)(7416002)(7736002)(6436002)(2906002)(6486002)(305945005)(26005)(316002)(81156014)(110136005);DIR:OUT;SFP:1102;SCL:1;SRVR:AT5PR8401MB1011;H:AT5PR8401MB0385.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: io59qR3eDLgQ/8XnmW3N6ngZj6AuaKpwg7JFmvl3CEiQWpZB3sfeB/Bn2kAXkMhdLBwOFuP3QkRG8PTTu9u50J0FjIiONZzhY2mA0vxoWqqPMYvlwr9AhLmfaBM6Zyth4Iz0PWVcXkzD2vJskWc9Hky5eXeuB+sY23ecKMz03Or7IUEZWhPQsJ9GU1TVCXFyEjz7dN/WTFxUAcS8/dvSMAArFHfbKe7jbZd8qA+JJvKH8UROrGEl4qXkMklUhkvLuDC+C1bSaG7EtV9266WbfyHg3T8Jtw2GkMN+FTXJUATnK+Op0wGQmEIHki8692Dhdb2UQ6fLNnp8JyqcsbM/J+UtHnIW4GIcCLQSoLsB8orAD8z6sB8k759zyaAisuiVAtu/ocWBFGavuLNiXoajlCRxNSO82HTi/LKOkrZFtWE= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <09CC2BC754EAF0498E344AEAAC336A7F@NAMPRD84.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 732ee7f7-900a-44dc-b9c2-08d5966584f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Mar 2018 17:41:50.7569 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR8401MB1011 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