Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3592419rwb; Mon, 5 Sep 2022 14:54:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR60dnmkDU2QzonhQw1L/ULIk7YQnnnEBiRg6kUgVNpnEkFBUth8E6VsbZkvtVzEAxo97AqB X-Received: by 2002:a17:902:a70e:b0:172:c859:dcc1 with SMTP id w14-20020a170902a70e00b00172c859dcc1mr52077922plq.121.1662414881483; Mon, 05 Sep 2022 14:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662414881; cv=none; d=google.com; s=arc-20160816; b=s77j64fUkPzF9cawDnUCqxm6faPQPxM/4qlUiWPTz/1lgEsV46lejYNdj3P9zvIyo1 gFcy6xJHzjjLQl7A4l3Xy57rYTwny8Dd3bJoXtJ0uXP0UK7mSZnrX3eY4c3nwolAn0pt yNlITGVYumWLS1tDag330MgjrG7HF6kJ2nE8UJvoDcQgFQgo395Sz21wGpEZ62Eva6ks o5DfMwugPOpCHd47TV3pwDBJdrkzJ9Qio1hfLsq2JVTh8m/q6wZb78jmQ9pUPlhDOJUm wc1HyZWDLM+M52+xRFjbt+/sfA+caXIgC1LTThOT/Icj1/vAqjamm09vHaU6BMe0nalI Jsow== 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=Xrez/vnZo/oxjqNbdHGgKzELApXd1vkR10PWPCg0Dhs=; b=VIaYUrjJsMlv5coVI6xoyo21ophMrw4xlS7CSLzY16CAAUhhiZ/nlRz/vHtnsAkc5m tUcKBixfDYtWvm5HIDc81FOCmlt9ZBLXRPP5Ff38XrGODYYACSyCMM3jH+kmmEXx7c3A qg+NZpXk4yMpoansRHRi4hTlp0+EHXS2q5GwxRMetULPwuavBkFViR202K5FuKIgkT6n S+IAkiEffAJfdYq1pYT/9LZXgvO9E0DDJR/ecrKOm7viXuMMHO4uYbDVIYzTFgSANLzw zBOILjLgSMN0ox7cWB8GtMrgHWCj2TSOnmCvRSPx7g9WXp/3pI6sfvdshvQ73Lrp7Nf4 U1TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=t2jE6p9p; 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 a18-20020a1709027d9200b0016d0be7887csi2928488plm.518.2022.09.05.14.54.30; Mon, 05 Sep 2022 14:54:41 -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=t2jE6p9p; 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 S233148AbiIEVKD (ORCPT + 99 others); Mon, 5 Sep 2022 17:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238019AbiIEVJZ (ORCPT ); Mon, 5 Sep 2022 17:09:25 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 267FE5A2C5 for ; Mon, 5 Sep 2022 14:09:12 -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=1662412150; 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=Xrez/vnZo/oxjqNbdHGgKzELApXd1vkR10PWPCg0Dhs=; b=t2jE6p9pbIiCRjPA2WBL+FZYraE6CBckmhhN4Cf/51LN/hl6voMskq7f/VkL5sRQMtYRy9 vKvG6NU3QM+X1gzNvv4IUjJfzu/gkOptUVyM3BsBm/BhPUsHIUZ666j4Aaxgm3J08E+nGQ NlFYZ4xU1iPLPZ3E+rTMpoPhF2tdcHk= From: andrey.konovalov@linux.dev To: Andrew Morton Cc: Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Peter Collingbourne , Evgenii Stepanov , Florian Mayer , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH mm v3 21/34] kasan: cosmetic changes in report.c Date: Mon, 5 Sep 2022 23:05:36 +0200 Message-Id: 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,T_SCC_BODY_TEXT_LINE 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. Reviewed-by: Marco Elver 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