Message ID | 20181124090327.GA10877@avx2 (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8CDC16B1 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 24 Nov 2018 09:03:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8567285D6 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 24 Nov 2018 09:03:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A984C285F9; Sat, 24 Nov 2018 09:03:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F440285D6 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 24 Nov 2018 09:03:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A486D6B35B5; Sat, 24 Nov 2018 04:03:32 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9F83F6B35B6; Sat, 24 Nov 2018 04:03:32 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 92DB26B35B7; Sat, 24 Nov 2018 04:03:32 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by kanga.kvack.org (Postfix) with ESMTP id 8FABB6B35B6 for <linux-mm@kvack.org>; Sat, 24 Nov 2018 04:03:31 -0500 (EST) Received: by mail-wr1-f71.google.com with SMTP id j30so8603525wre.16 for <linux-mm@kvack.org>; Sat, 24 Nov 2018 01:03:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:date:from:to:cc:subject :message-id:mime-version:content-disposition:user-agent; bh=LfE64W4w780/1t0B+3+JEt5W4d6IIfdiPiVMl/WEbuo=; b=EYXefLX/j6ne6dosji/lDrAbZlFTLeLuQNsupPHgMSexSY5Sx1bJ3bpBr72s2sm6mr F6Dtiy6ZmZ41w2oBv2C8EMvIwYxX35XjnR6OF5mGlqDo25v4oJJ0xYJa8MzR9oCRYVQ7 WCSnCUA6ZwZj3eiB/O7da7xfC6VzoisyKh01iPc0A9qsVT8Tadx3Movwgu7JSKlB7x36 EbdR8TxewC8r+UCIBwHaNKLrmTwFOX/vJJ6DP2cWA5WQB08RLTwZcLL5K1AMAzEqwp6P vC2lW7o/Wvkl2pEpAd12l2bq7Pxq4zVJqR2rhl1VpojSYE5MVl1NCJcDe3OJ4d0uBApC lNdA== X-Gm-Message-State: AA+aEWZGkqJJdVirgzTCPw6UvMH/kycF9muE0Gj66cPE0LDx3G2Xuesz MTxuStE9UF4I0gqFqTM6JiIo0Su5WxdtdD5E8mTglhL0Tt3Pw1j9FgzNLooW6maGms+E4rNdwBB go/ZixEiyDN41BlBuVsXJNnymk04pnnV/hQWpewS7gg9VetKcnqPe7TjQROtQM8jjvjYO4Pa/Ko Ywte+vD0lkwA9g3RHBsGWPWDTC4cKH04xxE8uphMePnFIGzn86RRFtW96q4bVCRVVQUc+N4WV3L E7uCdfmZeUdlGaX02QuCR2GCawUxu7ox8tAsaicGzHMEFQlvslN4AD1UVOXjqsd7i2iEQPiDnQd C5mh+n6GBjDQX861DZQcG1JiK1Uz6ECHeGDe+nAdkgNtb+2vZS70oG8XnFDIrNTEUlaTCsnJ98l G X-Received: by 2002:a5d:4e82:: with SMTP id e2mr16484308wru.291.1543050210971; Sat, 24 Nov 2018 01:03:30 -0800 (PST) X-Received: by 2002:a5d:4e82:: with SMTP id e2mr16484269wru.291.1543050210116; Sat, 24 Nov 2018 01:03:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543050210; cv=none; d=google.com; s=arc-20160816; b=M4fl0jnfY0xROXw2xpTSImItMbKrZ9vmNJnQxLLXQw5ii4spbUPoJP6DJ2Qw68YT04 fOyI5NjzZf70W6HrnopMRwr+Sg81TuY/F4rY1Jflk8As0SfrvPMFm0pAlqVS2Gxw9iOz TBp3XdyLmJ0qaXo3Jy6+5nKouXtJDow7IBpEUGfwLQWtpn5UuEu89PCnT0erRfrGrlyn KG8BUsfZhWtGOFjvSw5/REvrtFHMcEJUz9T7lWJp8cF91vGDu3wKtzkDpTb0I9AgyBIC HPtFUIoHNWhPLFg08yaGK4JA9Vs4behknRgtdCs6Bglx+y9Eid8YEj5J6zXUp+r8nK11 GBHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:dkim-signature; bh=LfE64W4w780/1t0B+3+JEt5W4d6IIfdiPiVMl/WEbuo=; b=aNcJj4qOS+CMxz9mDOtwEG9uMePfg+FCuuxdV1E51F5wNYupW4/NU9CvgaqJIwVtex Lq+pecjwuKVtpYRQuROV3XJ7G2vcLaVPsA4I0r8u2P4tkwggkmGU40azSjFuQQA4ATFb ozahrF9h7gWH8sTqvqOJVTpOCJf0mAx4KEf1XGKrOJemMPhnsmcR/i52bCwKTbQ/dT+c TsMLl9uYlVDpM6Ijq25S/lsvKDiaVprZ3ZixYgwBFwHe0MYvg9UctuxBQZWilyxj6a9+ 6OmY4vVqYpTthKxpLK69ILrJ8tm98wj8OzMR5dtjYvdvYUWyGtXV13HKgehOPHlm4OMr 8x8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t5wsbTC6; spf=pass (google.com: domain of adobriyan@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=adobriyan@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id w8sor22356215wrl.37.2018.11.24.01.03.29 for <linux-mm@kvack.org> (Google Transport Security); Sat, 24 Nov 2018 01:03:30 -0800 (PST) Received-SPF: pass (google.com: domain of adobriyan@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t5wsbTC6; spf=pass (google.com: domain of adobriyan@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=adobriyan@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=LfE64W4w780/1t0B+3+JEt5W4d6IIfdiPiVMl/WEbuo=; b=t5wsbTC635sAfFukXxUGmRO4h0Om0NEEeIMzXfo+Xi4A9qYMP5s6VL2C5HrRL+AQw3 uwchg8gV26Ru2F+mLd2yV//GUegQHmFRml10YharDmCX8TcNgYJtbmWUoPDa7kpbdO/d vBqJGDZOLH6t5U4nOxS64nLD+ilxe8xJD0uRR9i9N0nl7OfaOFGtruoaP7B/L+5eJj4Q QTC1lb6s0+o4qwY7QvXxtZyNB4RFH1qgXt+GQS7bab1ATs8QFEt+PYBycxkBUEBvTAvB h9llLVvFw12B9oL8ZrJa5ORXy2qvuauM43ELmSj8OwpdMws4y5PNduufM/FqmTLq9fom Ki8Q== X-Google-Smtp-Source: AFSGD/VTwFYqJ+rmi7Ic9B/smRXu8TiRjOeaJjLyqg79O8rc6+UzGjOA41f/INHOfzj6sX0rrPhjIA== X-Received: by 2002:a5d:5111:: with SMTP id s17mr16538924wrt.43.1543050209721; Sat, 24 Nov 2018 01:03:29 -0800 (PST) Received: from avx2 (nat-minsk-pool-46-53-201-92.telecom.by. [46.53.201.92]) by smtp.gmail.com with ESMTPSA id q189sm11872313wme.5.2018.11.24.01.03.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Nov 2018 01:03:29 -0800 (PST) Date: Sat, 24 Nov 2018 12:03:27 +0300 From: Alexey Dobriyan <adobriyan@gmail.com> To: akpm@linux-foundation.org Cc: linux-mm@kvack.org Subject: [PATCH] mm: make "migratetype_names" const char * Message-ID: <20181124090327.GA10877@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
mm: make "migratetype_names" const char *
|
expand
|
--- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -65,7 +65,7 @@ enum migratetype { }; /* In mm/page_alloc.c; keep in sync also with show_migration_types() there */ -extern char * const migratetype_names[MIGRATE_TYPES]; +extern const char * const migratetype_names[MIGRATE_TYPES]; #ifdef CONFIG_CMA # define is_migrate_cma(migratetype) unlikely((migratetype) == MIGRATE_CMA) --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -237,7 +237,7 @@ static char * const zone_names[MAX_NR_ZONES] = { #endif }; -char * const migratetype_names[MIGRATE_TYPES] = { +const char * const migratetype_names[MIGRATE_TYPES] = { "Unmovable", "Movable", "Reclaimable",
Those strings are immutable in fact. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- include/linux/mmzone.h | 2 +- mm/page_alloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)