Message ID | 20171211125025.2270-11-sergey.senozhatsky@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="V3UjWURA"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="giKqBl1j"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GIG/N8ts"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ywNYY6zY0z9s4q for <incoming@patchwork.ozlabs.org>; Tue, 12 Dec 2017 00:08:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=6iad42K0uAIVizTSU+7GBrkvMNhEaQAuqURI8szdxdo=; b=V3UjWURAthEIlaIE+Pxwkf1wZy 0S4C0ABXwLhGsZEi+qEvdYXK3n5b264fn8aKldDuxut1pwJt2riOHdgBpW0oKp5Q52M+0yp5ktUIO qxDNOyqOShWr3rd1BNo30RnDEY1IRe5KMEU1dJQ45YOkugR1kX4qOosiAHOmT9/I8z4x2VO/Hpw34 JeL9UI+1K4hNssl4r0dM76QX4JRdg9MQEF+HKtuRIyhBgRJ+U57FyrN4gxfZqNp390xzJX+K/3h1d JD4YoQMGHEjLWlP8TeEmUICJ2eGTDQozfozdBKVnm3FcsmNJGXQSS/NqU6kvq65dZxpZCemkoiyZq KrYGRURw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eONoe-0008QY-3F; Mon, 11 Dec 2017 13:08:16 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONnq-0007Ve-Vd; Mon, 11 Dec 2017 13:07:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JWgoK9afefGQjnRiHihdqCp0j3QrBwlFdVYG+CbmKZY=; b=giKqBl1jEKHXN1vJQEIa37+/1 xKfb9Fibwgu/nfIGveg8x9rBn8c2F/v+Q8qGvN3a4jjZI9iWFXN6Wo/XCYKlFlX8OeeraMEubU9hC yk6PfvOslfeX0+Oga1ELeXPG+Xe37Gj8BPJcCWs87WqVImqFLd6ICTgSDHU/F7FS5olBK27bEbMjU idQZWFHlvpe5bmvPVAXWxnyjO6dbuLExkKT4yqX191EQWkiDmrVgXq9il/HLubNF0DQO9qCZYBd8s a7zUUH+9OGaxdy2dUwgcNhleDqSSM1sKWzzC/hacA6sOLUQM7It/cnGZex06A6uFxoQ0XCJrnTRos cBZxbktCg==; Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONZu-00015P-4t; Mon, 11 Dec 2017 12:53:04 +0000 Received: by mail-pg0-x241.google.com with SMTP id b18so10849893pgv.10; Mon, 11 Dec 2017 04:52:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JWgoK9afefGQjnRiHihdqCp0j3QrBwlFdVYG+CbmKZY=; b=GIG/N8ts9L0JRqJHZLAsVD6KCrT1qrSgF9bN+DW6dSjBud03dUsYugBCRQ8p8WiZiM accsuUP2vtVEiBpX7wqTOs8MEdEPyo2lSc39mLhNfp8nvcOaE1R4wwXoi98hei1qA6vm 3O4cMizp6LxGE/Tm5ncE3xP9UkVvpWzDJ9hhNqr3iy56b9gQOCm3WnqlgUrjgZKNqZMI apfiyfSDB3Hi4kUV3kZWRx1noX0MsKohzIzdLlYPzLagMYvpBpEtBhHqjbFsD06KaOv6 7EoqRYA1QaKGC3hb8EKqeNat6sgT/6jm99kjvHmV36dbADH45WHzDXOGFVKfrHlGuC2M hbGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JWgoK9afefGQjnRiHihdqCp0j3QrBwlFdVYG+CbmKZY=; b=gyyagj0/t3g7J1A5pBf9aIOB6miFNjNR5S7NaSUZB668GS6iIdyHU4OdMxS2byXSIk BXm/KcpkPufukW70gtugsrwocL9NhT3pXDo4Z3t4e6R8r/pB8J6Z0BTDrQLI42BIGyjj k/1713xDB65vrT1xSR3Ih9dtynuJOYkE06XR4wAtkREBXUvODrnHYd8NjV7yZBFNRcCS 8UL8Kwo0UC2veXK9hepVECkvjZki80KLFnIxAVVmuzeQzpmkyYT9LgcLkg8mB8FLffAY 4KRxvHRX+z2z+gNQ6u2T9THYeaY+iJRD7Tmfzof7E33gIB5fYixApx6bXckzA/KmPJV9 qxiQ== X-Gm-Message-State: AKGB3mKqUgb7zQt4KwrgAQiElozsJSn50bZPrnmNHuWxKmaCcwjUFext LfsONlQ5yTsv3eAANbErrbM= X-Google-Smtp-Source: ACJfBouo/AKXGADejX+CQGgn30nxuDayH5f8aTBQKht1GNq5+PRD2iawkwWKDObGrDz9z4UppmAxGQ== X-Received: by 10.98.66.77 with SMTP id p74mr260909pfa.183.1512996762317; Mon, 11 Dec 2017 04:52:42 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.52.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:52:41 -0800 (PST) From: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> X-Google-Original-From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> To: Andrew Morton <akpm@linux-foundation.org>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Mark Salter <msalter@redhat.com>, Tony Luck <tony.luck@intel.com>, David Howells <dhowells@redhat.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Guan Xuetao <gxt@mprc.pku.edu.cn>, Borislav Petkov <bp@alien8.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Thomas Gleixner <tglx@linutronix.de>, Peter Zijlstra <peterz@infradead.org>, Vineet Gupta <vgupta@synopsys.com>, Fengguang Wu <fengguang.wu@intel.com> Subject: [PATCH 10/13] sysfs: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:22 +0900 Message-Id: <20171211125025.2270-11-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171211125025.2270-1-sergey.senozhatsky@gmail.com> References: <20171211125025.2270-1-sergey.senozhatsky@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171211_125302_334538_E1EB51DA X-CRM114-Status: GOOD ( 11.38 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-2.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c05:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sergey.senozhatsky.work[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Cc: Petr Mladek <pmladek@suse.com>, linux-am33-list@redhat.com, linux-ia64@vger.kernel.org, linux-c6x-dev@linux-c6x.org, linux-sh@vger.kernel.org, x86@kernel.org, Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>, LKML <linux-kernel@vger.kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Sergey Senozhatsky <sergey.senozhatsky@gmail.com>, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
replace print_symbol() with printk()-s
|
expand
|
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 39c75a86c67f..bfcbe486d385 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -12,7 +12,6 @@ #include <linux/module.h> #include <linux/kobject.h> -#include <linux/kallsyms.h> #include <linux/slab.h> #include <linux/list.h> #include <linux/mutex.h> @@ -70,8 +69,8 @@ static int sysfs_kf_seq_show(struct seq_file *sf, void *v) * indicate truncated result or overflow in normal use cases. */ if (count >= (ssize_t)PAGE_SIZE) { - print_symbol("fill_read_buffer: %s returned bad count\n", - (unsigned long)ops->show); + printk("fill_read_buffer: %pS returned bad count\n", + ops->show); /* Try to struggle along */ count = PAGE_SIZE - 1; }
print_symbol() uses extra stack space to sprintf() symbol information and then to feed that buffer to printk() char buffer[KSYM_SYMBOL_LEN]; sprint_symbol(buffer, address); printk(fmt, buffer); Replace print_symbol() with a direct printk("%pS") call. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- fs/sysfs/file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)