Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3933989imw; Mon, 18 Jul 2022 17:49:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ueXcaiehRP8i7aOq++gQAA8wanlvQEQrLkoCJRXQ+bPkHTRkREcdEckpSL92X7JuH/WCxT X-Received: by 2002:a17:907:6890:b0:72e:d01f:b889 with SMTP id qy16-20020a170907689000b0072ed01fb889mr24838091ejc.669.1658191780043; Mon, 18 Jul 2022 17:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658191780; cv=none; d=google.com; s=arc-20160816; b=jeGUtCoamNCqBhkJ4K7keu5QYhxknxZP/4nlSpgg9D6sS8CzldT9g4vGgwRF3BQ24Z FVbqPWWaSQhZv5TRnD04GB2MvgXT2usY3TiEb9bRJYbpT33/bjWWPfz4zsbAF/Db/GEP X4BIxZFpPtvjKDdyPuzRljaAAU1SyenTFmslowdoKiIKhJmar9sdhoWvRgaFeNkp7Fzb 2XnBRp4+bgYyo1ex2JCV4ggiu57D4RRolwQzHqUsQOqMpjClRMsHxco5gRMM0EJQtpvS ffDD70uFwssp/NoJ3iQdEWRNV3JHU65ad0lSFMfBdfp7Qk2f8C8SVfW5o6mqm2v6Tawq hPSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ewIngwsCZaE/TDWKEzevD/ov9nRjvr0Ni51fNvRF6vM=; b=TEEXKkMk5oU/4U6JR8AGxj3EAkFU1C2duagcvaWUY6+goEVtJFFhAnhWqtpTzUh4XS A5vqjQoC3iR8QORH930gWenjTncNuCFY35NA0FYSRm3cbbNxrS/Gyd7dFC4bh/yJaUwJ GeDPZKl2cP0qxcMcUE/wm/9yvIOsAEiKvwnqOFPplQztrC8f0Gbwi9z8yVIvw0ZbOW6Y mf+uF1JCOm89McwerL4jM6UTXM5qUWZRC9+svWkAxBL76yz4EbcE3G9lEdW08UDQXJbh 95Ac7CnE25LxKeilpL4cqRH/jT4wHP67fXh8iQzUdwxhGNYeKCLrm4w64idYqg3/FBcR 5OZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Ez4NK3MJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt12-20020a170907728c00b0070f153ebd89si19124436ejc.7.2022.07.18.17.49.15; Mon, 18 Jul 2022 17:49:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Ez4NK3MJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236633AbiGSANo (ORCPT + 99 others); Mon, 18 Jul 2022 20:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236615AbiGSANj (ORCPT ); Mon, 18 Jul 2022 20:13:39 -0400 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3928F33E03 for ; Mon, 18 Jul 2022 17:13:37 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1658189616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ewIngwsCZaE/TDWKEzevD/ov9nRjvr0Ni51fNvRF6vM=; b=Ez4NK3MJ+4tuDDIgHgxsu4MiYUaqGfY5VOiQUKIwGvQBUsYJ7GKoPfKXc55qtCSds5QjTg zAvcXssV/9wWlJajGb7voWZ66ktaEQqD9D8S7tuhDWKIDHvuAmrTGk1WZ8B5A2lVn8f5Am 9EtvJhAOrXSt/GHEyuJMYKNsxpPcuR4= From: andrey.konovalov@linux.dev To: Marco Elver , Alexander Potapenko Cc: Andrey Konovalov , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Peter Collingbourne , Evgenii Stepanov , Florian Mayer , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH mm v2 21/33] kasan: cosmetic changes in report.c Date: Tue, 19 Jul 2022 02:10:01 +0200 Message-Id: <7b5f4b94b922c1753190886d0b6984bc1c16828f.1658189199.git.andreyknvl@google.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Konovalov Do a few non-functional style fixes for the code in report.c. Signed-off-by: Andrey Konovalov --- mm/kasan/report.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/mm/kasan/report.c b/mm/kasan/report.c index 5d225d7d9c4c..83f420a28c0b 100644 --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -200,25 +200,22 @@ static void print_error_description(struct kasan_report_info *info) static void print_track(struct kasan_track *track, const char *prefix) { pr_err("%s by task %u:\n", prefix, track->pid); - if (track->stack) { + if (track->stack) stack_depot_print(track->stack); - } else { + else pr_err("(stack is not available)\n"); - } } struct page *kasan_addr_to_page(const void *addr) { - if ((addr >= (void *)PAGE_OFFSET) && - (addr < high_memory)) + if ((addr >= (void *)PAGE_OFFSET) && (addr < high_memory)) return virt_to_head_page(addr); return NULL; } struct slab *kasan_addr_to_slab(const void *addr) { - if ((addr >= (void *)PAGE_OFFSET) && - (addr < high_memory)) + if ((addr >= (void *)PAGE_OFFSET) && (addr < high_memory)) return virt_to_slab(addr); return NULL; } -- 2.25.1