From patchwork Sun May 29 13:05:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1113 Return-Path: Received: from confino.investici.org (investici.nine.ch [217.150.252.179]) by open-mesh.org (Postfix) with ESMTPS id 72E101541CF for ; Sun, 29 May 2011 15:05:33 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [217.150.252.179] (confino [217.150.252.179]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id 34B5DC865F; Sun, 29 May 2011 13:05:30 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 confino.investici.org 34B5DC865F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1306674332; bh=WXxK1VImt/w+MzvzJ2UEXkR46JxkdyrZrrn9tL8VtRU=; h=From:To:Cc:Subject:Date:Message-Id; b=rmQvs8CjRomR/TVnsPOajAb7Pq8ibIWQscVHNF9GQUKPgl/vwz71xPGvVdca+c5UQ UoXFkOBsVaURnMCXNY+qotCplwONBVSvP80WP2iSzwS9AYU3E4ZkQdBHaC6q9VodQI cDBxuTocb0VvTTSdL8k1+fawBeimVxLoROODNdDc= From: Antonio Quartulli To: "B.A.T.M.A.N" Date: Sun, 29 May 2011 15:05:34 +0200 Message-Id: <1306674334-17397-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: correct kobject_set_name() arguments X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2011 13:05:33 -0000 Compiling against kernel version <2.6.25 was failing due to wrong parameters. Signed-off-by: Antonio Quartulli --- compat.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/compat.h b/compat.h index 6842a26..0f0e66e 100644 --- a/compat.h +++ b/compat.h @@ -131,7 +131,7 @@ static inline struct kobject *kobject_create_and_add(const char *name, if (!kobj) return NULL; - kobject_set_name(kobj, name); + kobject_set_name(kobj, "%s", name); kobj->ktype = &ktype_bat_wrapper; kobj->kset = NULL; kobj->parent = parent;