From patchwork Thu May 9 09:19:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denis Efremov X-Patchwork-Id: 242735 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 330982C00DF for ; Thu, 9 May 2013 19:22:35 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753297Ab3EIJWR (ORCPT ); Thu, 9 May 2013 05:22:17 -0400 Received: from mail-la0-f50.google.com ([209.85.215.50]:42067 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753066Ab3EIJWP (ORCPT ); Thu, 9 May 2013 05:22:15 -0400 Received: by mail-la0-f50.google.com with SMTP id fl20so2616218lab.37 for ; Thu, 09 May 2013 02:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=k+pdliUKqZ5QTANXIRSODYDmsrzeMOZ8YGosdf3tEgc=; b=r2qCU5yAkBliSCL5B+rOmdgVt5LWvDSHc0fSAVQuAO13vGdNkYPH6B/sB/sIbjF13B WBvCtQ9jz3tugkHsZNEtganLp04W8/QETAoBiSkIphf5p+AcreqryawoXupVu+Gn53Sb zBYvW6X6IYc0OaNEsPYTE/vYoc+YzECTCrpYmOt10H2zUw0ttamwsZpebhu7p9skrhpm QxLDaFWnyCpYi+D//5BP0hXaYv1ndl6Trr1Nq9Eu5FVEz5zy6smOH3vaCcszhNpIRoN/ gc+9MVEKuPOsyHgYcgpcudvwryh9LpIEK/Cbd9FWxnX8nJj1bkYnPZAG+8WRNmeNbcs1 eeVQ== X-Received: by 10.152.121.9 with SMTP id lg9mr4952083lab.39.1368091333644; Thu, 09 May 2013 02:22:13 -0700 (PDT) Received: from localhost.localdomain (95-26-197-249.broadband.corbina.ru. [95.26.197.249]) by mx.google.com with ESMTPSA id ay3sm770243lab.1.2013.05.09.02.22.12 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 09 May 2013 02:22:12 -0700 (PDT) From: Denis Efremov To: "David S. Miller" Cc: Denis Efremov , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org, ldv-project@linuxtesting.org Subject: [PATCH 11/21] ipv4: ip_output: remove inline marking of EXPORT_SYMBOL functions Date: Thu, 9 May 2013 13:19:42 +0400 Message-Id: <1368091192-10245-6-git-send-email-yefremov.denis@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1368086241-9357-1-git-send-email-yefremov.denis@gmail.com> References: <1368086241-9357-1-git-send-email-yefremov.denis@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org EXPORT_SYMBOL and inline directives are contradictory to each other. The patch fixes this inconsistency. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov --- net/ipv4/ip_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 147abf5..4bcabf3 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -84,7 +84,7 @@ int sysctl_ip_default_ttl __read_mostly = IPDEFTTL; EXPORT_SYMBOL(sysctl_ip_default_ttl); /* Generate a checksum for an outgoing IP datagram. */ -__inline__ void ip_send_check(struct iphdr *iph) +void ip_send_check(struct iphdr *iph) { iph->check = 0; iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);