Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4245532pxf; Tue, 30 Mar 2021 03:04:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDghnXscVtl+Xny12RbVSEiLk2hejNPquj1e/Swt7XPE1HgUIqi8BIo3Ikf2yi0Ao7Ybd/ X-Received: by 2002:aa7:c5c4:: with SMTP id h4mr31660720eds.375.1617098667789; Tue, 30 Mar 2021 03:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617098667; cv=none; d=google.com; s=arc-20160816; b=zbF2HexnCcmiDOVUhmojNcntALsx6uccK3K8fvvruAfVdHolqYr1dibG5XDCXEh9g/ JB4rh6RHdJm+XSJlvsmapeXbH9rm8R5nufdiA6GRDAEXUwHPrbHulb+fuUizKQn2hYJx F1cUQ3HEx9mBf2P32f4yRZ+Eu5rjMdkrMofN4W3ihRbYAPOcScna4o3BySHJsdEOPW7D j9s4zTvKlhbvkKILyfeQEWurc3deJPfexvr4+wQqO6MuRNT6xjOL1o8Nt0Mz+A7FU2QK CWTcpbi0Fm/q4tRAj8y5LKZGd+SDT9vDlBQyBe3J0rkPww94meVPWhD/nGyJsPX8yx8a hhOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=UteZSqJ4qcXGFwncc6Ddf84j6sWCA5+30PaREClFbYU=; b=ZajnhCpvBz5WuhqPoBoVfk2V3WTWDWx84h8TnFjO/rS7v9l4WW03h/WPc6N+ipWJmr wZGMSLgDulaefEpz623UZja+yJClkZwA4l5u28IHiBLgUnGmjAHYbWT8i/zOtKNt6Df0 QYDJdH5WQb3WSWMOhUBwSIgqDuVpyqFdZQMvuu5m+h2xqSvLzww34rH0SfVUmtM1zkCE pod84PXc3GRajSgyE4qVN8UMeDF0KHZHvnV5W72OzqCVzcYe7D+36tWRR3H9oyy4BfDd YcDLlV+qCpvxM2TqgjDmSaFESISWD4nurT1d1OMwbl9/AZs3HZ8XmbFlFbFi2LjPxX8G 36Fw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si14996167ejc.80.2021.03.30.03.04.05; Tue, 30 Mar 2021 03:04:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbhC3KCl (ORCPT + 99 others); Tue, 30 Mar 2021 06:02:41 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:33183 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbhC3KCg (ORCPT ); Tue, 30 Mar 2021 06:02:36 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R221e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UTrGin3_1617098547; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UTrGin3_1617098547) by smtp.aliyun-inc.com(127.0.0.1); Tue, 30 Mar 2021 18:02:34 +0800 From: Jiapeng Chong To: rostedt@goodmis.org Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ftrace: Modify parameter transfer type Date: Tue, 30 Mar 2021 18:02:26 +0800 Message-Id: <1617098546-41010-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following whitescan warning: "order" is passed to a parameter that cannot be negative. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/trace/ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index b7e29db..bd42e86 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -6811,7 +6811,7 @@ void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr) if (!pg->index) { *last_pg = pg->next; order = get_count_order(pg->size / ENTRIES_PER_PAGE); - free_pages((unsigned long)pg->records, order); + free_pages((unsigned long)pg->records, (unsigned int)order); ftrace_number_of_pages -= 1 << order; ftrace_number_of_groups--; kfree(pg); -- 1.8.3.1