From patchwork Sat Aug 17 12:42:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 19279 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f198.google.com (mail-gh0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 832CE248D9 for ; Sat, 17 Aug 2013 12:43:00 +0000 (UTC) Received: by mail-gh0-f198.google.com with SMTP id r13sf2494453ghr.5 for ; Sat, 17 Aug 2013 05:42:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=h54OvxNC0lAYVqrTR/feymg1uSsgtMgABryzbcgoW40=; b=PbUGfd5heEPk9JVmVEDDUvoKzxreUN5kNowsYBEv0sW34Ggo1sb4VDc1mjn5SY2Ib6 PKVMWTHxpNZebXl1pzXSM7U9uAoYGRMXvmPj+j+Lx83iJNVVlNDbd+rMtsUfLLwMPbkF iGgPm5daD937WKCqQ3buGXfduUWDMLZ9oU84cV/9XdiAr/ojT8MOIOeRygbTzPlnEShh W4XINaJDU67djOLzn1BTdeI/kJyp7HTzoshgLmVd9VPXV0YXjHS0t3bwnLE3xXT4EJFz M52/Y15tv3rGTjm80SX1j22MGfC9drukiM3o7EaDG5PT9d24PCBU2lhGyZe3P9xfQZ2L hCsw== X-Received: by 10.224.4.138 with SMTP id 10mr393853qar.8.1376743379546; Sat, 17 Aug 2013 05:42:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.117.129 with SMTP id ke1ls1095299qeb.88.gmail; Sat, 17 Aug 2013 05:42:59 -0700 (PDT) X-Received: by 10.58.237.105 with SMTP id vb9mr2915428vec.2.1376743379359; Sat, 17 Aug 2013 05:42:59 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id h4si554872vdw.123.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 17 Aug 2013 05:42:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id id13so2048050vcb.4 for ; Sat, 17 Aug 2013 05:42:59 -0700 (PDT) X-Gm-Message-State: ALoCoQkJKcFkMI5TPkfe/y9uIDc10fYFJ/emWedz7YVgRh0jNPRgKZzj5cL/BDp7+MvEVRbUa7dv X-Received: by 10.58.211.227 with SMTP id nf3mr147117vec.20.1376743379216; Sat, 17 Aug 2013 05:42:59 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp6806vcz; Sat, 17 Aug 2013 05:42:58 -0700 (PDT) X-Received: by 10.50.131.137 with SMTP id om9mr1250572igb.55.1376743378502; Sat, 17 Aug 2013 05:42:58 -0700 (PDT) Received: from hanjun-Latitude-D630.domain ([115.204.90.166]) by mx.google.com with ESMTPS id pk7si1102266icc.56.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 17 Aug 2013 05:42:58 -0700 (PDT) Received-SPF: neutral (google.com: 115.204.90.166 is neither permitted nor denied by best guess record for domain of hanjun@hanjun-latitude-d630.domain) client-ip=115.204.90.166; Received: from hanjun-Latitude-D630.domain (localhost [127.0.0.1]) by hanjun-Latitude-D630.domain (8.14.4/8.14.4/Debian-2ubuntu2) with ESMTP id r7HCginb009502; Sat, 17 Aug 2013 20:42:44 +0800 Received: (from hanjun@localhost) by hanjun-Latitude-D630.domain (8.14.4/8.14.4/Submit) id r7HCgek3009501; Sat, 17 Aug 2013 20:42:40 +0800 From: Hanjun Guo To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Hanjun Guo Subject: [PATCH 1/3] drivers / base: Fix sysfs_deprecated_setup() __init attribute location Date: Sat, 17 Aug 2013 20:42:24 +0800 Message-Id: <1376743346-9465-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , __init belongs after the return type on functions, not before it. Signed-off-by: Hanjun Guo --- drivers/base/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 8856d74..b9ccc5d 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -36,7 +36,7 @@ long sysfs_deprecated = 1; #else long sysfs_deprecated = 0; #endif -static __init int sysfs_deprecated_setup(char *arg) +static int __init sysfs_deprecated_setup(char *arg) { return strict_strtol(arg, 10, &sysfs_deprecated); }