Message ID | 20221216224507.106789-1-mike.kravetz@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 671D1C4332F for <linux-mm@archiver.kernel.org>; Fri, 16 Dec 2022 22:45:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A91BB8E0002; Fri, 16 Dec 2022 17:45:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A405C8E0001; Fri, 16 Dec 2022 17:45:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8E1288E0002; Fri, 16 Dec 2022 17:45:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 7FAE68E0001 for <linux-mm@kvack.org>; Fri, 16 Dec 2022 17:45:18 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 4DB171C6B51 for <linux-mm@kvack.org>; Fri, 16 Dec 2022 22:45:18 +0000 (UTC) X-FDA: 80249651916.08.79821DA Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf08.hostedemail.com (Postfix) with ESMTP id 6B0AD160004 for <linux-mm@kvack.org>; Fri, 16 Dec 2022 22:45:15 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=Mi7f+PQK; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VA1BwBMo; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf08.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1671230715; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=dCQf7YMobAT4v/S1qun9Wv3LIItywq4gHhbIDQcTRFw=; b=LCzIOrouFrwLA7v7Fwe5ZtsGGVRnbIE8R35Ub0foS0sJz0xouFL7W4F8GUiV2T5m/aAWtj AL2d0tfKXg5ht/5zHnGEKWFslg8ZMfnv3kIFr526secAGZlRho/ZUMCOGVye4wZ0+fLWHK kfCEKBUTr1SuvsagwDqit2z9SFM5zAs= ARC-Authentication-Results: i=2; imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=Mi7f+PQK; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VA1BwBMo; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf08.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1671230715; a=rsa-sha256; cv=pass; b=6J7ebtYo/lRB1GIf25PIUu1m7d89ECs/l7Ecqk1rGt2EX0XSCbzBb3rxyJ/oV7zf18ld97 lIfhZy9PQjW+DHCSCvThk8tiU2XxT/SGP71QOkQuJ7/kop3A/ElzrI2nNckF0yCksyjPjC jwgHfBEoU15gAoRjTCzeownDXEsbk/g= Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BGLSpYD023037; Fri, 16 Dec 2022 22:45:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=dCQf7YMobAT4v/S1qun9Wv3LIItywq4gHhbIDQcTRFw=; b=Mi7f+PQKomfQwZEDvMuNwtwUH5Wff0pmaWm/6rz/Nkl2UOENdjJpb8LmR0fmDvoVrEKV WBHg5ZoKVVZL1yM6UeR7EMVAPqIA6UgXOaeoQWdNcq+FLbEnSP/MS9AZnbigBjaYA+pX AXFzoKohIhoLnXR0rc2bK3/zvVo/0zKupzkbuewELZmMMGpHgNGhInlfu08ML7wv5PjI glMlI11KhwvRuraq4SQgGczOgnUyiBwnvGlRoSHDvERa9ZkzWwAuhebv4OGnP+u/CQGQ 42q0aaa+ACZuo23IgDSlq1Ulw0z/rqvCZah3UYJ1D8HJhwdYfQ7xv7u1Vh0TLD4GgCUw qg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3meyes0nka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Dec 2022 22:45:12 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2BGLbY47027806; Fri, 16 Dec 2022 22:45:12 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2048.outbound.protection.outlook.com [104.47.57.48]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3meyf104tq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Dec 2022 22:45:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FfcURuYcs8EcnbmX7/3y45rRGlKzt8oInrVKreyx/a0r9njfR9/ygY9Ydc22du824a4Aoy1slwC5OccW7ljmrCxprhrIsGgj0K3YZ/7h2JMxlNxLK4pTDc6oKjVWBOMCOYN04VYj3rCmeD0oEYZ3LY6/+SwuZLf+ohEPTIfEgr0Z/J+GDXwzZosqCfTQeuJXByhqxmgO4G2C+PZr+ZKnjRNbgviolsLVbUDD2MZ+6bgc096Nl4tDR2uiubNDtB1LfLue1Zic++ZgprZw5BwSWrmPE39L1O3iItmIPjE+FPyigBDf3SCELU2son6Kr6XEUghd8DExcnMt5Krt8Fwm8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dCQf7YMobAT4v/S1qun9Wv3LIItywq4gHhbIDQcTRFw=; b=Ka0Ewzyvjk8DWPhmuO6llpenfOBfcFV7zuYOH2mQDfifibVXSKY7fJAsDc06llw62S19ts16z2S3/1Md8827yWJX1lI1qC94u7EZ5CN2uYADW3BLBsYwU9uFHTI2is1R8XlUrvLCRxdqq5q4tgmaMptnCjzmrGcsjSJXggflyOcrTdy0jIAP+UorBIudXNqX73tQXuFMXLsFdoHfo/CBpRF2zWQDZ44bFBzh6HPVh+UER+hHO8q8lcX+f+/bP6OidovcHfVJmEFdtEvq/4xf8Dq79Nfnk9y9Crt8Z2SGf8MPsZ/ITUjN8PAPYpcZ1FDReFd8VV/O5rNKMJTrP7O5fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dCQf7YMobAT4v/S1qun9Wv3LIItywq4gHhbIDQcTRFw=; b=VA1BwBMoYuBi6lNehxXTYspolCvqU/5yiEKlI8gkT6RBi7Y6XBaAiLOjCJyPbTZuCDxGDN7/ClAoLgPKViYx5LC5Il8XCHh8O+uXM5GkzjFtoNtlM73xt6laNOWTxm6IrPzgD0W9S8qCWL6Jp9dVv7zswo81UmCR+i0wl9rb5Zo= Received: from BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) by DS7PR10MB5231.namprd10.prod.outlook.com (2603:10b6:5:3b1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.12; Fri, 16 Dec 2022 22:45:10 +0000 Received: from BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::8d67:8c42:d124:3721]) by BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::8d67:8c42:d124:3721%5]) with mapi id 15.20.5924.012; Fri, 16 Dec 2022 22:45:10 +0000 From: Mike Kravetz <mike.kravetz@oracle.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrew Morton <akpm@linux-foundation.org>, Mike Kravetz <mike.kravetz@oracle.com> Subject: [PATCH] hugetlb: initialize variable to avoid compiler warning Date: Fri, 16 Dec 2022 14:45:07 -0800 Message-Id: <20221216224507.106789-1-mike.kravetz@oracle.com> X-Mailer: git-send-email 2.38.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR03CA0257.namprd03.prod.outlook.com (2603:10b6:303:b4::22) To BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4196:EE_|DS7PR10MB5231:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d53c11c-6acb-4c86-a76c-08dadfb72fd7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6R8P7SjtEQl0xPQPY5HbP/mY3XrA4BPS6bv+vCq5oyl+io1fzrUck83qaCDRcXmYfM23lwxjtNT7SK7OA6XiEEjr4TtwpKT3EwC92+Tb6OyPzW+3PKuxJH3u5/x46wjzOxD8qmsiHY+b3IewW9eMtcVi5ekGUzkRfbylSvQfzNU220djleS6SJiEqpiyycyIOa6q8vyQTkRwuz/VI7FgNl7FBybzxzjobRzdQed9RfeLvdaxl2/d/61/vsxIZYvWEbKJTyMbinzHDolRWK97Xe6rNvsXdaWMuCFVJ1gXdOQ9ssQR6PgQMXUCVU1Y3FizVcH7GrQG/cfq+6ocBrUoJg9542L+7tSZDZMmwxyEnYFPx/17E6RTnCz9Fw2zHNkRvcn1iWgYxz05290nP7UiXByQ9IFGXuvl+yz3qsLZZzx6r0/n9vIuEeL5LiIVuCDh7jC7zgDrXoxJYb+CEjV8xGRm3KSerZbT+0KK5aGfxmUk3pgkfL83NJWqktO2nbrDqEi2/RR/M1/xE6lT+8EFVos059nIkJSR9sfExc7iK6FNwoth+CTO+gswxLlDCNqXq9itSTtmucr+XljJbALOtKJbSOojctlLK4lKRxf7odYNgyu7x/R0cdik8fu+HwedwaZV7rdnHaYrwAdkBGVPyA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4196.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(136003)(396003)(39860400002)(366004)(376002)(451199015)(44832011)(4326008)(8676002)(2906002)(2616005)(66946007)(66556008)(66476007)(36756003)(41300700001)(4744005)(1076003)(5660300002)(83380400001)(8936002)(86362001)(38100700002)(478600001)(186003)(316002)(6512007)(26005)(54906003)(6506007)(6486002)(6666004)(107886003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?6xx9+0HuroXI2Fv8dv9YHaT3An28?= =?utf-8?q?7vSYFJj39La1zMzbx5BGXqcYldlCy88Jf2cAKJ7lZWSxqXPdTjTjujICfe5Gx4QaD?= =?utf-8?q?+exWSD80fQbkdLoy9Z0fVqc95wbP6+DD9TQVT5wrKOzX15r7pEsxJcvnDpxuW+ynP?= =?utf-8?q?GfjL4OvWU88AFAD7bzZDV2+xvXFemvNj24YnPqpQxoDnno580yO8JOzl89cefkSru?= =?utf-8?q?GQzPlYrMyzlzeTI0mmj3+UL4sEJ1iWuxyOh4hmT72CRbzI9CqweXtkM2dcLTj9FOz?= =?utf-8?q?iXTn1ybEFQfQFEWWVZCStZUpl8tUFDCaS0q5/T201BbkbMGFlPXFziGFW1PNY993A?= =?utf-8?q?jqrcrf+36w69A89EC4o+7vNbKro2/ea8c3xVXC3mXlAID2QHWu8b8CK6qgMOvZJO7?= =?utf-8?q?YWk7CND5VttF89euO8/j0l5RRXXmy95vMCmqk1x4iK0bma0RQpY0EOnOYYz+uK7X6?= =?utf-8?q?9UA6x7TftEIiYeRp1di2uLiOPVYvd2Doe6JCQc9vbBAMGE+bdvhyTmbi7ogdcVB9Y?= =?utf-8?q?RLeC8xdsNalXwcVl1w1fTLSPOesGYqckK/DmQFw+Bib5t7RfyKVU37+UvLCfA1+kn?= =?utf-8?q?XXFNfNC+VJODRwwjHxR3Wz9jatKeYa5q3JnLXHz5XYK+1qAYOX4AHFY8uRP60QKdx?= =?utf-8?q?sZwCP1XPbQ8PWqFOvGhcvDV89lqoRMf9np/v/FuBrlVQHb0cVHkVoW4w0GCbU8KNs?= =?utf-8?q?YPhnXHaN08dlgfD40udMVoVHaDRuTPThFiaSJk5ozQG2CFUHfdOoLV+9/KVPcmQUU?= =?utf-8?q?5NYiVwLf0jguag7aRXM6pdCHOER0nhcotm3TY/H6c/kxmh7jjdUYDMrDAg9NxKRnM?= =?utf-8?q?05mcklbJVaVnM7BijAO2/JrBbAls4j4aQuiPSFQPrv/OCv0sbJPM8LSNpeVwLpbIG?= =?utf-8?q?KSTQtAQ2BihS9S1QZe9ueoq/s5+T26q50APUWEJVHH+2el0FMy9RDCc1vhbs4KJhy?= =?utf-8?q?PfvMwNLB23aiiBb+W/D5BB+8wMoa+LsAumYiELdLQiUkhfAHGTkXorPK/22XqJdA7?= =?utf-8?q?ixQ0klkK/wMWsOAtNfIW+zgy8M2tsDej8/jMuhb065AjR67DiV6anpi3CARbG5mB7?= =?utf-8?q?JvjDFtzvzntk48iUN0X3nA0xreDoOrQ+v7PoHaQJ9MtWXX4tAf2nBgueVyCfB9tU5?= =?utf-8?q?gwtXEiw1ymBon4xZanOdaB6n3JUhX/AcVR8GvCj8rUCMKiSF6VmQWFrxDJrGRtRVD?= =?utf-8?q?PfI7EURNg+w3qHC9mnxcgpCT5Dp9T166m3JljUPDtQp2k8hHMLn7E0zD9C8kcRXWW?= =?utf-8?q?/3cUnXDHPmqRgFXc5M+wG07Wj0KiCbr+HpAwWVt/FOdZOog47t6u+xrA5Voj8HX+g?= =?utf-8?q?zR/tzSTLEr68mP8ZPUYeLfR7FgFGFe8OMM1mzDShUdfQ7sr3G32sbU88/UYwoNX4j?= =?utf-8?q?KJLUlDh74ZbQsUn57u7wzrhMqhV2KdZQqPaMxwlcAmXV73Gc4RViuT9R2HRWxFFpU?= =?utf-8?q?W3Ihstl74xu6Rguo0r8SZL0TH7RSEttnjCNP3gI/DTfXaGnKI1QFV6R5qWOFRxSHd?= =?utf-8?q?pUB6dc8umQc/oFX9/8ybaGNtckaA+BW4lw=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d53c11c-6acb-4c86-a76c-08dadfb72fd7 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4196.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2022 22:45:10.2736 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: T0WPxqqXVF91SkyYU9wc5mIneWRU1hGxe9fqL3jbfnpuly4tJcQQ8gI0fLbTTLsR+Xpl5PB5oqn9wWQ95k3ZUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB5231 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-16_14,2022-12-15_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212160202 X-Proofpoint-ORIG-GUID: O0KZe3YpqhUjphEeehrSm674H-qV5xqR X-Proofpoint-GUID: O0KZe3YpqhUjphEeehrSm674H-qV5xqR X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 6B0AD160004 X-Stat-Signature: xehyqdt4umi1gi3h6dn7ysob7uqreiuq X-HE-Tag: 1671230715-583334 X-HE-Meta: U2FsdGVkX1+zdw7jF3NqA7SWLK0P0rYQyzeTr6jq7g3qlF5KumVokJM4UD6K9u2kTVrAa/2WVEzrAo4FP1RYAf42EHUioGL44mMtJxiROm2omZ3QP/eudMt9rKv1i1tK3WfvzaO1hZtTnCDbKBfMobbCz/1Ter/C6frEP3qgRVve2sYRKdyxw+xGUPPVsXM/B+iQSI8EdM362ChYsbX25un8/b+amClmFP6Fga6Hvdya7zQiCUfhVq4m1dl34K4vv9dtHT0gzI/+4MgZWeJwJtku+cGYd05+Fz2Cc/ahMw+IkwkbhghIvBVbwW9UtEepap/nB9O4YnaABjcK7LFWeMKP/znz9jxCra5S8wyXgwWcI53UkBuQG+QwhpDUVEeOEgsKMgZklfzZ2Ri3eotnOnUmxlB3pN1D5unBzOc2+3WVhamrM0Y19ZPmizob1Il2eaim0vha5NutQMN9nfHIyyYjZgICzigaqA2aAlcXznB9ua4+eBde05BC5f1l16jyfJvI/wtix+VLlvLbXqNvKCG43iTHi+5W1ERfAz0vPrMyA2yXZ6o5w8d2mEHL+lrvsMwCVtyEbGcOxukyqldWhG8byYeMC7uBvsCW48TZzKYpyrk++aZwS5r17h5fUqrwAkB9o7KqJH91G1nq8zxQo4Ki/0tot/E8d0tBwMAM3IIaIzc4PudQbT7u1jUNnbkwUWTZ+zEdSlK+x1ct5m36VrfJpXV954A5ZQkFLuBmRAbXmfR0CBxQthod+2JBxJyFTTutt4yxtvV7f4hNJnc8gMfaFmmbKWMrqrbNUbXCT0ViDg3f4edBUyz4bdcwlnorfBJrCnTE6azRp4fJsu33SzUDM0wnkRaRV0hIHuzkR/Zg2VMjflX32Y9dvqOOJswT/X8zS9pfgsb2JeGiD3vKZ20eb4L9FJOJJEk9YVqdurFZpr4pP8X3Sbc0ewMTi5XLb8vTHuobw/lQ8myhrsz manG1NBX 0y3QQzK1cI3WFI4HARBDmzpG/PccyY6mBk5eKhYRE9VVVWo9yq3ZqFm/IJA== 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> |
Series |
hugetlb: initialize variable to avoid compiler warning
|
expand
|
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 0dfe441f9f4d..b28b699c0a1a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -6747,7 +6747,7 @@ bool hugetlb_reserve_pages(struct inode *inode, struct vm_area_struct *vma, vm_flags_t vm_flags) { - long chg, add = -1; + long chg = -1, add = -1; struct hstate *h = hstate_inode(inode); struct hugepage_subpool *spool = subpool_inode(inode); struct resv_map *resv_map;
With the gcc 'maybe-uninitialized' warning enabled, gcc will produce: mm/hugetlb.c:6896:20: warning: ‘chg’ may be used uninitialized This is a false positive, but may be difficult for the compiler to determine. maybe-uninitialized is disabled by default, but this gets flagged as a 0-DAY build regression. Initialize the variable to silence the warning. Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com> --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)