From patchwork Sat May 14 17:47:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 785162 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4EHlf7Q007921 for ; Sat, 14 May 2011 17:47:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754869Ab1ENRrk (ORCPT ); Sat, 14 May 2011 13:47:40 -0400 Received: from server19320154104.serverpool.info ([193.201.54.104]:46002 "EHLO hauke-m.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753729Ab1ENRrj (ORCPT ); Sat, 14 May 2011 13:47:39 -0400 Received: from localhost (localhost [127.0.0.1]) by hauke-m.de (Postfix) with ESMTP id 3ABFA8ACA; Sat, 14 May 2011 19:47:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hauke-m.de Received: from hauke-m.de ([127.0.0.1]) by localhost (hauke-m.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W8y1isW2CrBI; Sat, 14 May 2011 19:47:36 +0200 (CEST) Received: from localhost.localdomain (host-091-097-248-002.ewe-ip-backbone.de [91.97.248.2]) by hauke-m.de (Postfix) with ESMTPSA id BBFBD87E4; Sat, 14 May 2011 19:47:35 +0200 (CEST) From: Hauke Mehrtens To: mcgrof@gmail.com, lrodriguez@atheros.com Cc: linux-wireless@vger.kernel.org, Hauke Mehrtens Subject: [PATCH] compat: add header linux/printk.h Date: Sat, 14 May 2011 19:47:32 +0200 Message-Id: <1305395252-21873-1-git-send-email-hauke@hauke-m.de> X-Mailer: git-send-email 1.7.4.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 14 May 2011 17:47:42 +0000 (UTC) Some drivers are including linux/printk.h and this is not available for kernel < 2.6.37, but the needed declared methods are all in linux/kernel.h. Signed-off-by: Hauke Mehrtens --- include/linux/printk.h | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 include/linux/printk.h diff --git a/include/linux/printk.h b/include/linux/printk.h new file mode 100644 index 0000000..c0822ac --- /dev/null +++ b/include/linux/printk.h @@ -0,0 +1,12 @@ +#ifndef _COMPAT_LINUX_PRINTK_H +#define _COMPAT_LINUX_PRINTK_H 1 + +#include + +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,36)) +#include_next +#else +#include +#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,35)) */ + +#endif /* _COMPAT_LINUX_PRINTK_H */