From patchwork Wed Nov 9 06:52:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yauheni Kaliuta X-Patchwork-Id: 9418521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 92C016048E for ; Wed, 9 Nov 2016 06:51:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84DCF28820 for ; Wed, 9 Nov 2016 06:51:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7946228841; Wed, 9 Nov 2016 06:51:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21D7728820 for ; Wed, 9 Nov 2016 06:51:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751520AbcKIGvc (ORCPT ); Wed, 9 Nov 2016 01:51:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38886 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbcKIGvc (ORCPT ); Wed, 9 Nov 2016 01:51:32 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B7B5561B83; Wed, 9 Nov 2016 06:51:31 +0000 (UTC) Received: from astarta.redhat.com (vpn1-6-253.ams2.redhat.com [10.36.6.253]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uA96pTvR032587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 9 Nov 2016 01:51:30 -0500 From: Yauheni Kaliuta To: linux-modules@vger.kernel.org Cc: Lucas De Marchi , Jessica Yu Subject: [PATCH] shared: make scratchbuf_str static Date: Wed, 9 Nov 2016 08:52:26 +0200 Message-Id: <1478674346-29996-1-git-send-email-yauheni.kaliuta@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 09 Nov 2016 06:51:31 +0000 (UTC) Sender: owner-linux-modules@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP It fixes linking problem tools/depmod.o: In function `output_symbols_bin': depmod.c:(.text.output_symbols_bin+0x135): undefined reference to `scratchbuf_str' for -O0 build, where gcc doesn't actually inline it. Signed-off-by: Yauheni Kaliuta --- shared/scratchbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/scratchbuf.h b/shared/scratchbuf.h index c12e4902528f..27ea9d9f6008 100644 --- a/shared/scratchbuf.h +++ b/shared/scratchbuf.h @@ -19,7 +19,7 @@ int scratchbuf_alloc(struct scratchbuf *buf, size_t sz); void scratchbuf_release(struct scratchbuf *buf); /* Return a C string */ -inline char *scratchbuf_str(struct scratchbuf *buf) +static inline char *scratchbuf_str(struct scratchbuf *buf) { return buf->bytes; }