Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1316433ybz; Wed, 22 Apr 2020 18:22:57 -0700 (PDT) X-Google-Smtp-Source: APiQypJ9RUY15y1QP+pKS+uZWPl9zhMneUKacXtzrg1T3HCm7kgcgU7FZmE9fT1n+1g34tL6sWV8 X-Received: by 2002:a17:906:eb90:: with SMTP id mh16mr794301ejb.201.1587604977299; Wed, 22 Apr 2020 18:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587604977; cv=none; d=google.com; s=arc-20160816; b=O2Trq7g8CTr4WxyomFmeylosR21JiOgOm+eW040EmTz6Knv3RfHeXRVMAIAfy9RlyR 051qsmska8JE1IG2bdiurSmFzys2l7thkRJvyZxNTXacDyPnxZxOzXGwn8PN8qcZJJap 37V8LaY1lZ/1qnDg0j4Pr3YKBIUyiBZb5G0pTw+tw+NueKKP6Pjp8w+vR6WYdsw8up1j QWEmFauep2S5Hfa25QeKySnSwzr77YF12KcIG1Jf8a5aTyRe9LqVM6yMuz+bnkipnBmj r5Air7PDpWSdBwjF6n8cUOjXHR6TvvOEY/xuTBTB5p9gO8VdEyYdWDb2c1/ulFI0Uzd2 D8mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=HuA0hxQTe90PJtZs9WSSy8kDWUbxSlnvi9VsPza7S2Y=; b=KuzTS83y/hDP6N0g9EpOzvdHsECu+G/rotUUINHfueM4Dx222qi1q1UA5f7qdL6QR6 J8rLJIpaPjBwfnkZu2BXnfOw5I/yX0bcyJ1fLD0JC9H3aj1MVgzripJ6tFnccFGMqzom UHgZ8WY/SvePewhTbrjg/uUg644AP9b9quQq4QP/BEavFydCOeUSpeW9NKRU0n8d6jVy Y+7vHO//cbtn+yjQWLU88i9VNtRb22tMrTWyEjgsD2hMUOVgm45ojPX4UnrHIBJH8tkQ iww5Hclynl7kaVmBIOrGMFQWckf78qvaAV/kQ1FgrfZKkl9lqbswe2GL2FsxpfencUwm O6Hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l35si425263edl.187.2020.04.22.18.22.33; Wed, 22 Apr 2020 18:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726061AbgDWBVS (ORCPT + 99 others); Wed, 22 Apr 2020 21:21:18 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34145 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgDWBVR (ORCPT ); Wed, 22 Apr 2020 21:21:17 -0400 Received: by mail-pf1-f195.google.com with SMTP id x15so2098728pfa.1 for ; Wed, 22 Apr 2020 18:21:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HuA0hxQTe90PJtZs9WSSy8kDWUbxSlnvi9VsPza7S2Y=; b=NxRGnjG+UfX4tgyPXsBtpAS7Ie29rFncjOTE1gAkOH3z2STfgMKfNzV6wTRRmyuvfX zPB0hS7tuzb4UsOI8BNVUMKvlFqN5AlknjZeIFJCo6msYW9bLiO3Hd3mGQ/Vk9cSnQAW nFesuslAC/VQtY+yujN6O/0lKJF8WSZWoQ8nCIVqislChrJuS4Shql5nHK5/S6KWmraq MG371PT5+Ql5cHo3ZRVgAxO1u2aSPKJvkKaZ4yeju8Z/OfecVlBS9nHY2YiXxHGu5SnT sEI3IhylpUwVoljxW5svgPudgs2e+A4ImcQGEEFAGLAsjwIFFB0uTPBt2/39agzDHJ4O GP3Q== X-Gm-Message-State: AGi0PuY3mPuDaXhI3aHXso6RXLG2DNZz8DJGHkF6jWUbvEvELXPHcrft X1hiWoCsb3uPZXuVtcSyWhA= X-Received: by 2002:aa7:80cf:: with SMTP id a15mr1441540pfn.124.1587604876968; Wed, 22 Apr 2020 18:21:16 -0700 (PDT) Received: from [100.124.12.67] ([104.129.198.222]) by smtp.gmail.com with ESMTPSA id n23sm471545pjq.18.2020.04.22.18.21.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2020 18:21:16 -0700 (PDT) Subject: Re: [PATCH v2] stacktrace: cleanup inconsistent variable type To: Walter Wu , Matthias Brugger , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Josh Poimboeuf , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wsd_upstream References: <20200421013511.5960-1-walter-zh.wu@mediatek.com> From: Bart Van Assche Message-ID: Date: Wed, 22 Apr 2020 18:21:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200421013511.5960-1-walter-zh.wu@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/20/20 6:35 PM, Walter Wu wrote: > Modify the variable type of 'skip' member of struct stack_trace. > In theory, the 'skip' variable type should be unsigned int. > There are two reasons: > - The 'skip' only has two situation, 1)Positive value, 2)Zero > - The 'skip' of struct stack_trace has inconsistent type with struct > stack_trace_data, it makes a bit confusion in the relationship between > struct stack_trace and stack_trace_data. Reviewed-by: Bart Van Assche