Message ID | 1529768142-9989-1-git-send-email-yamada.masahiro@socionext.com |
---|---|
State | Accepted |
Commit | 7a1f1b594a3d102f3766b9866aa081f5480c0be0 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2112524lji; Sat, 23 Jun 2018 08:37:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKvGsG2xbFrW3y3Dw/rXQPJG2De05eD1ssbrrLw2hCXAKKsepOMXeieiUtvTOYBvgNfKSBu X-Received: by 2002:a62:4b16:: with SMTP id y22-v6mr6304420pfa.214.1529768222255; Sat, 23 Jun 2018 08:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529768222; cv=none; d=google.com; s=arc-20160816; b=W/DYdSmAQo1wi2xtCfaOaIQr/9yRCIZymkyb0jQavD5Iesgjycf4tPKUHYpvrqA/my +3kNYIpB8ynQATXSKcfkAk2RO4i5wrbQIMZfjxdE5edsa1Cr43bI9Axu7R7aUsAkfNAN F4QCQx+uTrfe1on5YbDESbrhUf/wr+Zu8ESi4PqLQMb5kbTMVHUeKpZ9H+W0X8ImVmBc 8z57jj1Km4JzwTdxuRVNcXxp4dGpJZ/FAO2GwjiEagitEE3mckl+c0hdoDdrRlmEhtv4 igCyNKsyPMxVhN3m7sShCLtgfF4iuINkfhPt0Fr4ESoDu7E7nyI3LJhpMHCyUNTFBMop iQIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter:dkim-signature:arc-authentication-results; bh=TgnFaKRiBbMdr24Rnr9L5kOLyur+bVixEtFnnsSiJEs=; b=dBVtkYjJAnJRpc4lBT+YmA2s0yAgRHGWDrsXKlk3UCoDQrWTSKF0d7iZpPL7LT57N2 lwpzJkFhybYc/L2o/1nonWzG8Z4P+1o9bY/W5G1t503QlRIbI/6IkcnKJ4CFpyHw8cb7 5jsArhumNOfdqwPUxZuDFb5sYQInwGAGIyattFwH1sVut1snb1DEimMCH16lPQP36z6Q 6Dy5FZKOktYzNpyNgARGaPd+Rf0UqAZ7n8bfhT/r498EAhVA2LflbRC+VDqWb6p0csIP +Sa2GW06mJU3C6XjhV/RTW6Wi16rrgIPxZgFTK2jolmISmco2OZThDTz7nMXva3lwCOS G07g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=PFFg9kLL; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="z3lR/Yq6"; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" Return-Path: <linux-mtd-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id m8-v6si8192148pgq.637.2018.06.23.08.37.02 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Jun 2018 08:37:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=PFFg9kLL; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="z3lR/Yq6"; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" 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: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:In-Reply-To: References:List-Owner; bh=TgnFaKRiBbMdr24Rnr9L5kOLyur+bVixEtFnnsSiJEs=; b=PFF g9kLLfXRGLQeS2WE+bAfoReP+sMJYjkkbmPn3hUS29t46mk9oGO13a7Kpx+1CV4X2Olu6eWYc4v7v 2a5ZuFiyjS0quTo1rYnv3F87qoZRS3ufVp6McxnoBEgWVoO0CL0BzmdVPIAlwgui+fRxdPrCuSR5R k/tJrPFGpDDTXrOPcdFWBT+6i4MgbANDK91uOaOGar8n8cmbnNNb85lJ4Kj8GceLwRo+sZkGqMQX3 nRCJpQxv4gusmcYhu0n6E1yemFg9Mid8Fog6mhA4m+7ufHhCGu+g/rECEpPGlzgPlKKp7E3/YYjKH 9rVLQorUNip9+91FcXGWkWTG85jnE9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fWkae-0002rH-0i; Sat, 23 Jun 2018 15:36:40 +0000 Received: from conuserg-12.nifty.com ([210.131.2.79]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fWkaZ-0002oi-KE for linux-mtd@lists.infradead.org; Sat, 23 Jun 2018 15:36:37 +0000 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-12.nifty.com with ESMTP id w5NFZpFj013984; Sun, 24 Jun 2018 00:35:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w5NFZpFj013984 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1529768152; bh=bp3zuQy2EhWTNPjBPy8HbIHgF0Lg2H/adam7m6NX0L0=; h=From:To:Cc:Subject:Date:From; b=z3lR/Yq6aTKizUlAMFXYYrHxoZoDaLqdqv5mk5ic2fheuKQ3kfm6giyjRt5CMVK8y cmtg62j7uKRVbrabdYNi9F7kkeQMB2JOZ2Ab7UC+t7ZWiOV+fHRPKe4AOAQUhFPhb7 Ij7Nm2udE//8bjUtiDxZ+R5hul///tF7mzBwY/nA5jd0R4iBFxHj00P0b9SxHvh6X8 hixP5CenPSeCbf4i9VbfO6lPiA0Cd3f5TvnuA3lfbFF9yUS/n5JhzPR34P3zFSjH45 9+DdJ5bzzY9eK4mFzxxp/GnXI0kWm0319did88qoU3JWjl5/uMELWabw5BcHlE8Rqy OcYT/3hyi7opQ== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada <yamada.masahiro@socionext.com> To: linux-mtd@lists.infradead.org, Boris Brezillon <boris.brezillon@bootlin.com> Subject: [PATCH] mtd: replace VMLINUX_SYMBOL_STR() with string literal Date: Sun, 24 Jun 2018 00:35:42 +0900 Message-Id: <1529768142-9989-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180623_083636_022804_05EB91C4 X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [210.131.2.79 listed in list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: Marek Vasut <marek.vasut@gmail.com>, Richard Weinberger <richard@nod.at>, linux-kernel@vger.kernel.org, Masahiro Yamada <yamada.masahiro@socionext.com>, Brian Norris <computersforpeace@gmail.com>, David Woodhouse <dwmw2@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org |
Series |
mtd: replace VMLINUX_SYMBOL_STR() with string literal
|
expand
|
diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c index b57ceea..879bebf 100644 --- a/drivers/mtd/chips/gen_probe.c +++ b/drivers/mtd/chips/gen_probe.c @@ -202,10 +202,10 @@ static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, struct cfi_private *cfi = map->fldrv_priv; __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; #ifdef CONFIG_MODULES - char probename[sizeof(VMLINUX_SYMBOL_STR(cfi_cmdset_%4.4X))]; + char probename[sizeof("cfi_cmdset_%4.4X")]; cfi_cmdset_fn_t *probe_function; - sprintf(probename, VMLINUX_SYMBOL_STR(cfi_cmdset_%4.4X), type); + sprintf(probename, "cfi_cmdset_%4.4X", type); probe_function = __symbol_get(probename); if (!probe_function) {
With the special case handling for Blackfin and Metag was removed by commit 94e58e0ac312 ("export.h: remove code for prefixing symbols with underscore"), VMLINUX_SYMBOL_STR() can be replaced with string literal. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- drivers/mtd/chips/gen_probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/