Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3185242pxj; Mon, 14 Jun 2021 17:01:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPIatz8OVkaqweqYTM+MEmH3VD3lMMC3vymGFFkPTAfmLtdRwSKFiPcB9UpHUYel4rSes/ X-Received: by 2002:a05:6402:4316:: with SMTP id m22mr20083017edc.316.1623715288662; Mon, 14 Jun 2021 17:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623715288; cv=none; d=google.com; s=arc-20160816; b=qzH2ulccIC4Pv5slM54cVL/mdtXh9ftm8QLEX3fXsAoWRB1LcEg5dZ8hHEzZIW1z/u DaoGxW5QYgt7/dDWKk209kGcFhFTZNR/DVHDT23JOjejSUEI9Oxop+pwC7RzNjXYTFaI uLmCURhZY5KOQ7dwt6c2zSdvJLUtXVxVJK1gCJlGd2k+j4vUYub+cS8LVyUdeNBUmpfM dCLrdwPd1WX/s+DMVCdRmlq5CEZaCNlLGrsK5vqNOp5/bTmaQWUgOeLLjLQ6GKuHbPt9 rxy+z/tazc3MUmLQUHcQL0KOt0SqQ0UjC0hk6tLMZI1WlWvIakM8aFJHBBTEsA0TlOQ+ lZQQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=2hZ/fLKjk/CGa8mnGkTM9do02TlLwRcH/q+h0ZKU7YY=; b=rYRu1UdHOHwMmhT8h4I2mNWtSxGlvQiFC2plW0rmgCozYd1ym4mCYqwcEBs1EMs07l A3bakQs7F1GM5J5Wn3Qn+x3qdeUWR3h7iiea9TzA4q+E6mW0Sebji0/J40rY/UQxRQVu Y9wudtFLsGcwR4XPyk4ceq7tZol3/deQmkoZvXMqhDnDB2kBXDyzLY1uLf6knzC1MD+d fjjeEO6CFcZrWv4J3f+SI9cltgTy1fMw6cs0hqocUoGPv2H1HBpbkrtIrAvk2laFADXQ Flnfa4O2QEzZmV1EBtW7LZsfMKWYbX63jBgF/ps3HTnl8gpS4ApuO+558XkeITyVrWJC 0wtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EpO4Jyl3; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si12997890ejh.536.2021.06.14.17.01.06; Mon, 14 Jun 2021 17:01:28 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EpO4Jyl3; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231786AbhFNX6y (ORCPT + 99 others); Mon, 14 Jun 2021 19:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231499AbhFNX6w (ORCPT ); Mon, 14 Jun 2021 19:58:52 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E8DFC061767 for ; Mon, 14 Jun 2021 16:56:41 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id v13so7495954ple.9 for ; Mon, 14 Jun 2021 16:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2hZ/fLKjk/CGa8mnGkTM9do02TlLwRcH/q+h0ZKU7YY=; b=EpO4Jyl3aeBWQqUeRYC87rEUTL0cCpUevsHit8s+C4YnZ051NpzaLV/m5ZadnYO29y gt9q7hURxiIRzT4Nwu5e9rz+4p50Dx2WAr4i1dea+wPiYdFRnWaNEJUvB7CIp/s4mkBx lH2Qegd0Rz3HuJB3s6hGeSj3CmI8i+QX7WDwsbR1nCJkIxaMRgCreyJh0AKf9zYt3nh4 r1MVy9omNGnz26G1yIJqivH+9jVIlC7Ff2L4abvSJGTfXo8f7I+55Nm0Fb4GrN/NcsWL p6wKowFBMCSeTdVOeOpVewgBYRGDWfpLx0wMGfp18hbJVCZjsVnjTJgMM5OOFKblZGWh 8SEQ== 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:mime-version :content-transfer-encoding; bh=2hZ/fLKjk/CGa8mnGkTM9do02TlLwRcH/q+h0ZKU7YY=; b=fw1HtidrSWyo+KrKoFvvZiijYd73O8C1rzM47/1YBX9OAzRm48sXBZAzHMXbg8pUQ0 gxx6Am33a+rcUh2lcMqizZTcWODVKIywPdYqeLAlTSxghDzC86cmE6nBmYF22genDbEv DzsDtQ7YfxFBcMeI7/nze3N7b2e6rKjDFSXzX9pMjQgYwkruqH57SS/059O4ROBFdAIQ mgteawIpzoA170ZeT6VCSIY2+RnQOidNKIagSnWBxXr1Dh3d/IZ6TAsJ61Q5W/JXWRhm JvSmv2ZQfj45zBj+pSU4KMB4b88SiBiVAMwS7u55tli4nDbD+R9j+AuIvcMV+oN9adal OQ3A== X-Gm-Message-State: AOAM531HZ88WnRBfZGXQo/2QkpjdSz/hy6s8pnWVE9lwQW1tzNGSfQ58 RLe+/oFu9RGtH0PpM2tsYmA= X-Received: by 2002:a17:90b:3ec3:: with SMTP id rm3mr22241049pjb.105.1623715000470; Mon, 14 Jun 2021 16:56:40 -0700 (PDT) Received: from localhost (122x211x248x161.ap122.ftth.ucom.ne.jp. [122.211.248.161]) by smtp.gmail.com with ESMTPSA id v6sm13694092pfi.46.2021.06.14.16.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 16:56:39 -0700 (PDT) From: Punit Agrawal To: pmladek@suse.com, senozhatsky@chromium.org Cc: Punit Agrawal , rostedt@goodmis.org, john.ogness@linutronix.de, linux@rasmusvillemoes.dk, linux-kernel@vger.kernel.org Subject: [PATCH] printk: Move EXPORT_SYMBOL() closer to vprintk definition Date: Tue, 15 Jun 2021 08:56:35 +0900 Message-Id: <20210614235635.887365-1-punitagrawal@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 28e1745b9fa2 ("printk: rename vprintk_func to vprintk") while improving readability by removing vprintk indirection, inadvertently placed the EXPORT_SYMBOL() for the newly renamed function at the end of the file. For reader sanity, and as is convention move the EXPORT_SYMBOL() declaration just after the end of the function. Fixes: 28e1745b9fa2 ("printk: rename vprintk_func to vprintk") Signed-off-by: Punit Agrawal -- Hi, The out-of-place EXPORT_SYMBOL() caused an unexpected conflict while attempting to rebase the RT patches onto newer kernels. Generally I avoid sending trivial changes on their own but this one is a little hard to overlook. Also it felt like an obvious oversight in the original patch. Please consider merging. Thanks, Punit --- kernel/printk/printk_safe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/printk/printk_safe.c b/kernel/printk/printk_safe.c index 7a1414622051..94232186fccb 100644 --- a/kernel/printk/printk_safe.c +++ b/kernel/printk/printk_safe.c @@ -391,6 +391,7 @@ asmlinkage int vprintk(const char *fmt, va_list args) /* No obstacles. */ return vprintk_default(fmt, args); } +EXPORT_SYMBOL(vprintk); void __init printk_safe_init(void) { @@ -411,4 +412,3 @@ void __init printk_safe_init(void) /* Flush pending messages that did not have scheduled IRQ works. */ printk_safe_flush(); } -EXPORT_SYMBOL(vprintk); -- 2.30.2