Received: by 10.223.164.202 with SMTP id h10csp1976141wrb; Mon, 27 Nov 2017 10:00:58 -0800 (PST) X-Google-Smtp-Source: AGs4zMYn7Rc9ToEYvoWP66BEwsR/QA5xkLph8dku4jO5YlAeTzuwwkT0moOQdKQItnE2yCPnOyOe X-Received: by 10.98.107.133 with SMTP id g127mr37308045pfc.228.1511805658380; Mon, 27 Nov 2017 10:00:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511805658; cv=none; d=google.com; s=arc-20160816; b=T+pqgfWvJLKtUtfZAqmNcei0oMS/4B2/Sw27ot0McWq2SrxWAqukQ7M0cpDdocKyRy fXV2pe88AYb14T9Sg4NK7cJmeu+MXx15xSRd+6v6g4a9gr4C0j0beTpmK3EKr4R9EROX oN2WS6tlwjcDg9ZIWnI+dbP2OKjwSLjo0uMFqCPrgFfNlvgy8NR2zhsGYm8Katk3Do0s 3tHSZC2Tgz+z0KSN4BMXvCBVH5YAmsJGNB1+dgVu6fQbReLdFgNjBnCgIHjSxQrLKDHn BZ0xE2dsvoHRSe0k3w95uUNX5Fm6hO2O7gm9FVxSO43myTNiW/KVPzsJhgKiycqKzzvO H4mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=bGayQc97fBUSB9sdBkDOnAigejNFolo5V7l3uEtGyRw=; b=GVY5lykl+z4g05GLJQZH5S1lUvlcYr7ew0brpgViCt0jizx709aBOq4pD7cwDkVHrN tAJubyo+t6GqzmAJIj5d2rAoA/XQfaIxZgJVxM95N1bFa3jkQCX0rtVUbxmiHIejr+5o BMU/hjygukhxau4Jkwvz9v8qcgx9bOO8r2w8adVxQ4kEfkV5vsV0na7u9HmbUk1FLUlh iiFCrN6jvnX9Mkkdw0A2AQYh48NhcwHjLyVN+QmZE8ptKsQxcQM+buMo6pmP+s6JmEfH ACJCKokXpwrtxH7JR7oK9+XIXA9L1xcR/CI/EOvYUAw77p3aNgMJaCJEEGDP5Xkv7Cj+ rC0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=UxJUaiIc; 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 11si23473996plb.316.2017.11.27.10.00.45; Mon, 27 Nov 2017 10:00:58 -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=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=UxJUaiIc; 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 S932471AbdK0R7s (ORCPT + 78 others); Mon, 27 Nov 2017 12:59:48 -0500 Received: from mail-sn1nam02on0050.outbound.protection.outlook.com ([104.47.36.50]:11269 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753489AbdK0R7o (ORCPT ); Mon, 27 Nov 2017 12:59:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bGayQc97fBUSB9sdBkDOnAigejNFolo5V7l3uEtGyRw=; b=UxJUaiIcJtKMw1vGSWgySbu1ynRYUSmkwChS0gyEQIs9YqF242t2kj3bstpogpxVLlHSRNX/eA9JTvmIRNPb21s+J7jvbliEq1mjekewhe9d9cEV6kSj7mi+eQBZB0/emD2kWY3Sn8cj0CrI6l7W+b09WpGjAGpPZsrxLpzZ6Ss= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (1.39.97.181) by CY4PR0701MB3827.namprd07.prod.outlook.com (2603:10b6:910:94::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Mon, 27 Nov 2017 17:59:38 +0000 Date: Mon, 27 Nov 2017 20:59:19 +0300 From: Yury Norov To: Nick Desaulniers Cc: linux-arm-kernel@lists.infradead.org, LKML , Alex Matveev , Alexander Potapenko , Andi Kleen , Ard Biesheuvel , Catalin Marinas , Kees Cook , Mark Rutland , Maxim Kuvyrkov , Peter Zijlstra , Sami Tolvanen , Stephen Boyd , Will Deacon , Joe Perches , Andy Whitcroft Subject: Re: [PATCH] arm64: fix missing 'const' qualifiers Message-ID: <20171127175919.y5hr7qgvhkdwanbm@yury-thinkpad> References: <20171125094127.7536-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [1.39.97.181] X-ClientProxiedBy: HE1PR0102CA0031.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::44) To CY4PR0701MB3827.namprd07.prod.outlook.com (2603:10b6:910:94::33) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d6d4619-8e54-4040-a9fd-08d535c0a1bd X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603199);SRVR:CY4PR0701MB3827; X-Microsoft-Exchange-Diagnostics: 1;CY4PR0701MB3827;3:rHlc8P7cyf5k2WBiZpdVXIWORCFH1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mvvxSU6gT13F/Fo/k7/GcbfEOkrxQdDmT41bDUIupdD8sUEv4ZiRdATGkN3ujjdnpV1NmuRwB8A9oovJJc0C9CwPf8eosv0KVziEAXGrb0bDjhGCSgg9CmQF47Ff8xa6myaml1/BUKxCIWc/35Ttj3KcLQYixhema1QEDJKH/elgHw47stsNadyClASVu6lMjuiqW4zSMPdPKgheJtl8p5lIG9oSSplskeKqhj82RofLiX0U06FNtHqEe+cV146bu+SBgAc8BxJ51jIxt6TX8Nh2cxj0aq0ceUZqnnh/oR7VOjZUtPD6Zrfv2DZsFPmF0ozkq8nsCbd2cDC6B5eC3Ptzfie1DMsSb1kNHwpmMKHQnqf4JQa23o7NbLXoYD747k0xgnnP6yrPgBtD6jQrkwYLAPEjKqRWh0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(211936372134217)(153496737603132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3002001)(3231022)(920507027)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123562025)(20161123560025)(6072148)(201708071742011);SRVR:CY4PR0701MB3827;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY4PR0701MB3827; X-Microsoft-Exchange-Diagnostics: 1;CY4PR0701MB3827;4:agiGJLMKcxdldWTu5MjKUmphKA0+zMJu5xfRu6Q/AyFtnzId5fnVZBYtFr825kvPQ5nOqSDhZu+xSP+90J24R2H7tqHorFG1IFPHO5mUdbm7MTWr8HmZd9sNRMp5sbR2XUJ3l0WSUIgzVzUyi5NqQT/Hbyxz8q1x3s8hQ7E+kk2bAX6FLw9VZML2QMK+oitoBBN5DW/SSWc8hQ84daDIqGryIsoYbwBDkqH6Wjo/sHYM2hjM2TQJ7kEi8vhD3yua/i7dSOic1qKJ3pUuNaHmBePLRaG3JfW6d3OviO2gdC3F9As94KKwJmQuw969EVeqeNigAzVKl/qHhkCtfVS1iJ/c5+tehlbxPQaWSulSHrN5pdWeiMyT7Q2P7ZeFLKX2 X-Forefront-PRVS: 0504F29D72 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(7916004)(346002)(376002)(366004)(199003)(189002)(24454002)(3846002)(39060400002)(6246003)(47776003)(9686003)(8936002)(53936002)(189998001)(101416001)(83506002)(4326008)(33646002)(105586002)(50466002)(229853002)(2906002)(6486002)(25786009)(55236003)(106356001)(76506005)(6496006)(7736002)(305945005)(66066001)(34040400001)(68736007)(45080400002)(81156014)(8676002)(81166006)(478600001)(16526018)(6116002)(33716001)(5009440100003)(6666003)(72206003)(2950100002)(42882006)(52116002)(58126008)(54906003)(6916009)(7416002)(97736004)(316002)(16586007)(1076002)(5660300001)(23726003)(76176999)(54356999)(50986999)(36456003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR0701MB3827;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR0701MB3827;23:1jDpfYInIGrVyCEt+MBbQdUVVwaEaZmZuBhh6AN?= =?us-ascii?Q?Pet5wgCasY+sphWMhcjn9Pw7cIjIzplIVBnwt/dID2+0eD6pMlwlOJttp0FZ?= =?us-ascii?Q?66sGw+UDH44f0cnN+1Xhv/gEAbRiVdDs/vFr9nkTnVLSE5lfTgtRfBTwRnd7?= =?us-ascii?Q?0mMzT9OKWTGQ2XmFf8fTIsCAgjTgN1LZpWJc5IvXtJjOWZNCexvcW/HFPjzv?= =?us-ascii?Q?OG0O7+o/3gVS3DzEMeiu756Ezrfavs6ng2X0Cwsdv4EUPyryGHjG7IFrQWde?= =?us-ascii?Q?nA92C0xgh5bgaV2oj+cvGer/Bh8tiIO9gspBr2+/L6GGBFgSKAY6nItO+0na?= =?us-ascii?Q?BMHhA3KJf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n4aRzzuY62XVA5Jfqm3FHwxdq/YPHVMYNJnOI09GrCa1/yuW1GkrrdRvWnIliDu3xL18otEwL7JZlGp1d6ZMaNV5pla8EiFJh1EFmJZ1kaV3UnUAdbWsEg+KAfzumcLGD5XaaBIhR9zi4HjA4y2yrj40P66SdhSxtymc2sctp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2017 17:59:38.8222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d6d4619-8e54-4040-a9fd-08d535c0a1bd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3827 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 27, 2017 at 09:15:50AM -0800, Nick Desaulniers wrote: > Checked call sites, looks like no one tries to modify these pointers. > I too prefer to make things as const as possible, though I recently > had a coworker refer to the propagation of const in a code base as a > "Gordian knot," which I thought was eloquent. > > checkpatch mentions that there's one line that's over 80 chars, and > that there's M$ DOS style line endings (but that may just be my client > gmail, or yours (exchange?)). If you fix up that long line, then: I happily use mutt, but my company's mail server is MS Outlook, so I have to send everything with msmtp. It usually works. In fact, this is the first complain for 2 years. My checkpatch: yury:linux$ scripts/checkpatch.pl const.patch total: 0 errors, 0 warnings, 32 lines checked const.patch has no obvious style problems and is ready for submission. I guess, because 1 line is exactly 80 chars length, and because MS format adds another symbol as line delimiter, we end up with 81 chars in line, which makes checkpatch worrying. CC Joe Perches and Andy Whitcroft for it. > Reviewed-by: Nick Desaulniers Thanks From 1585240410857030262@xxx Mon Nov 27 17:17:45 +0000 2017 X-GM-THRID: 1585030578918772458 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread