Received: by 10.223.185.116 with SMTP id b49csp5221724wrg; Wed, 7 Mar 2018 08:13:21 -0800 (PST) X-Google-Smtp-Source: AG47ELvAXBzfOdyCQjKB8x3xMAyHa4I4kFxqjHIiwchPJSSB21B+f+UlG0VpGZdkc7Gw0LlyPeip X-Received: by 2002:a17:902:b10c:: with SMTP id q12-v6mr4345438plr.197.1520439201549; Wed, 07 Mar 2018 08:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520439201; cv=none; d=google.com; s=arc-20160816; b=tvPNVTbUhdGC5BM/SMMdbzpl4XwtWx6L4m/7slEuM42OasR1weZC0XSAOWyBcL9fnB xzrZE2K/BlxXtwTmiJbXFJyZPuZ13zTWwV8ZaBKfejn2zzUTBvWhEljQSDX23fiKuq88 mrP7j57gFK3ykPxOjzISrbEkrCsVUvVQE8gSIkJCrBXB5jlWOkk75V9HvvEuocyRWLUR FrHZKxzDTlFL8RrNlV4NLZzVHbglwI+eQP0laLKVutrctTRiWCTKHo3WdZh6kfZxqLfC zJSQY6WH12PpiZS/T3DK1KPhCK98FQI+CxtNN+/CXdTwpACfy+i3+X2VPRSHrztsMXiw T2sw== 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 :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:dkim-signature:arc-authentication-results; bh=MlLF/tAvRdVtxWgaHgNO8832c+EV2p7+hf16SwgHX38=; b=XW/XE/9oINaIDU7AAl/orLy5SxUTIRlA5Zpe4bGNLkqK3ZWHhGT2TczvCgNs4m3rYQ AqA4BNCBxRrwbHswO03dKZBDFNKmr4M+DZZfm5U+a2CZVLVlJGyD58+AMmW3mNu+fyKZ Xh+eEs1LrHpJuBC3rSNtrWlRO00Jc8eRz6t8pPrrQFZnn0Aiejr+cQ/7SerIhEdFjv/i fq6qjHCMnQL5VMYbPZ49liMfwyNGEFmHY4H06fMZvQa8EN37eHRkE8R9S8bWWPMMwcOw QGJNV+bJVslDGYiCe1TXQpixhpwslVYt9gIsH3Clc7/G3Hr+j7sjlm9xyQDzuuYUKC99 wFTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=gJz73kBn; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=lM7kC4QQ; 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 g4-v6si13565435plk.422.2018.03.07.08.13.06; Wed, 07 Mar 2018 08:13:21 -0800 (PST) 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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=gJz73kBn; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=lM7kC4QQ; 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 S933844AbeCGQKm (ORCPT + 99 others); Wed, 7 Mar 2018 11:10:42 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:38022 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933335AbeCGQKk (ORCPT ); Wed, 7 Mar 2018 11:10:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1520439040; x=1551975040; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=MlLF/tAvRdVtxWgaHgNO8832c+EV2p7+hf16SwgHX38=; b=gJz73kBn6VAmuaT2QFZHwUJkJNewbL+bcUEEI1Epw2+ETYVdzTwRvyeI 1iIWsk7gvlszRPuDJZ51jqRsTAAS4QZy8jzSVtXbDrFaJSX5Qz0xsZUNn MVS8Od2dAbn3l2ajf6Su8eUwJWpVrBvgNu8opICYEstaLJYQ4P8McXf62 ckYTUMRofT+vdpIPGQZOU8dMDHNm+qCM079EamiQ9OGdrxsdWg/HbbeQW r1rzCRyKevW2y5xcfMfsGgV45ajSEJYfBZOgyA4TjnWQ287yF6lktMSsN tHF82d4l10fp5K6G+cn9plBNgHDd2sqhXjeQKiKbsb1AzfR1E+ooFX44g g==; X-IronPort-AV: E=Sophos;i="5.47,436,1515427200"; d="scan'208";a="72960109" Received: from mail-by2nam01lp0183.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.183]) by ob1.hgst.iphmx.com with ESMTP; 08 Mar 2018 00:10:40 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MlLF/tAvRdVtxWgaHgNO8832c+EV2p7+hf16SwgHX38=; b=lM7kC4QQSDBKw22aECXU/SDrbSfWaFH1VSn9zKwaheniDsGZV9yHGE1b4RMp4Yqetu5uZVungwJM4deSGhHsFtdcNEr4muvWHmnIuY8PDz+eRQ3Tz77OtzFpOn8CANgHUl2VV7gsjB0+m9XJa4fVXLI05z9YKI4wPa8V+6pElsg= Received: from MWHPR04MB1198.namprd04.prod.outlook.com (10.173.48.151) by MWHPR04MB0830.namprd04.prod.outlook.com (10.172.168.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 7 Mar 2018 16:10:38 +0000 Received: from MWHPR04MB1198.namprd04.prod.outlook.com ([fe80::a06f:fa0e:f691:9dca]) by MWHPR04MB1198.namprd04.prod.outlook.com ([fe80::a06f:fa0e:f691:9dca%13]) with mapi id 15.20.0548.016; Wed, 7 Mar 2018 16:10:38 +0000 From: Bart Van Assche To: "linux-kernel@vger.kernel.org" , "tursulin@ursulin.net" CC: "tvrtko.ursulin@intel.com" , "hare@suse.com" , "jthumshirn@suse.de" , "axboe@kernel.dk" Subject: Re: [PATCH 1/6] lib/scatterlist: Tidy types and fix overflow checking in sgl_alloc_order Thread-Topic: [PATCH 1/6] lib/scatterlist: Tidy types and fix overflow checking in sgl_alloc_order Thread-Index: AQHTthKDmR4Kd0LaQkSfrEgTVD+F9aPE8YIA Date: Wed, 7 Mar 2018 16:10:37 +0000 Message-ID: <1520439036.2890.13.camel@wdc.com> References: <20180307124712.14963-1-tvrtko.ursulin@linux.intel.com> <20180307124712.14963-2-tvrtko.ursulin@linux.intel.com> In-Reply-To: <20180307124712.14963-2-tvrtko.ursulin@linux.intel.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=Bart.VanAssche@wdc.com; x-originating-ip: [199.255.44.172] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR04MB0830;7:61GuQ8T+Rq0CJI12FWo9VX6+Tf2basPxqurV5jnyVb0Nzgh/DR8PCyY1TGMK4koy2A4TqGxYiIvSxCFvQg01ZbCxdXBarLCCfrMwjHvMLsDXg6ZNsc8yCGKR3VSe8sOzbpfWHdED3FY3te797xqzFju5RRk71XVsP+IG2ESd41H2PWz1HLt58qw7geKFfHaKGp18EbaG1sOaCHMaqn4JhTuiSS9y3+RIF+i7aAscWdFkfLqliv7WbDhh4S/uWazA;20:jJaiHs3sLDJgA/1cWbn2yEHfwNSG4b8jv34xK9tBaFBgW5iaAEofmEw/fJW1/sE3dfvHE1FF1FzeV0JWcPUoydAWSLbI/p3tnbouL+FS2bNSodZJHHiiP8em+2jkErqnecEYvvMfWidRnkJp9D/QvbuVeNg4zCn/jLiqg2+Yl20= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 15be84e3-a7c0-4054-e582-08d58445f75a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:MWHPR04MB0830; x-ms-traffictypediagnostic: MWHPR04MB0830: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(131327999870524); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:MWHPR04MB0830;BCL:0;PCL:0;RULEID:;SRVR:MWHPR04MB0830; x-forefront-prvs: 0604AFA86B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(39860400002)(346002)(366004)(376002)(199004)(189003)(51444003)(377424004)(99286004)(81156014)(81166006)(8676002)(106356001)(4326008)(26005)(6116002)(3846002)(186003)(305945005)(316002)(59450400001)(105586002)(2906002)(68736007)(229853002)(6506007)(102836004)(2900100001)(72206003)(110136005)(54906003)(7736002)(3660700001)(76176011)(478600001)(86362001)(25786009)(14454004)(6512007)(2950100002)(2501003)(6246003)(5250100002)(8936002)(36756003)(53936002)(6486002)(97736004)(103116003)(3280700002)(66066001)(5660300001)(6436002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR04MB0830;H:MWHPR04MB1198.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-microsoft-antispam-message-info: HvRCCRxxJuJj6T+udPUIy3NVoTG/wO9kLHlrOxf4UHvKp9s8gRTmYH3XPWqFYd+Q/YmJrHUfj8IinA0lkhYsm+UEPW5O4FSossa9+xJ6I1YPsyjFrqKvbBMvd5aywNVmw7CPmPEFZZonVTrS3Xn3C+rc9FwMBysX8b5TWteGfYFOGj8gparVV5TlHLc91SznJ2QtRFh5BKpZr/emgwpaS2iacJukr7jw4935CCUTPAqfJ+U0CG4YxkJsCnS5zp/nZCV88Jy4zYclAazgNnMfsUpD/XxG4jqFdGre3HRlcuXBXuqt4XHmWSzs0QkqqGuBMWZIqOwSlIIYNrSiOmrqag== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <670DA51732E3544F801DF420EDFB2A09@namprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15be84e3-a7c0-4054-e582-08d58445f75a X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2018 16:10:37.8144 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0830 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDE4LTAzLTA3IGF0IDEyOjQ3ICswMDAwLCBUdnJ0a28gVXJzdWxpbiB3cm90ZToN Cj4gc2dsX2FsbG9jX29yZGVyIGV4cGxpY2l0bHkgdGFrZXMgYSA2NC1iaXQgbGVuZ3RoICh1bnNp Z25lZCBsb25nIGxvbmcpIGJ1dA0KPiB0aGVuIHJlamVjdHMgaXQgaW4gb3ZlcmZsb3cgY2hlY2tp bmcgaWYgZ3JlYXRlciB0aGFuIDRHaUIgYWxsb2NhdGlvbiB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