From patchwork Tue Aug 13 10:31:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 19047 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0AD6F24687 for ; Tue, 13 Aug 2013 10:32:26 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m12sf4685519yen.1 for ; Tue, 13 Aug 2013 03:32:26 -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=b2ZVoM+XDZY+Zaa3YoSaNUPW5bp2XyCEWAOB1cLIZ0A=; b=E+NS+yRCPlDP6IfLnIeIGp/0dm7AUv+SIOPoY2i3hq6kcOf3gO51U4tstQ4mQfrCzj eSBhD0lBAHfXWsPDzgYBE9fN7+4FwUVhlD8SCuEEfoweXtlUXnJmY1wJKfNL4Jele/d+ SeXyDIYmGY9h50NVkPEx7EFK8nBoimCmjZrJwJh3O+eUdR7NGjBl7UoNa4nngyEljFRh Vjbe4mJ/6Act27nF8BTZkEfJQuu8HmNCxJvWpIbzBhdOAudsUafXXbqWo6YE3BmGJOvk tH03AWw7US3dtsa80RUEPQZPmajf8yhyPvCZMPz0YHkiBs6cSFsJu6CKwA1tQYkUCO7j 6lwA== X-Received: by 10.236.91.173 with SMTP id h33mr1447893yhf.17.1376389946321; Tue, 13 Aug 2013 03:32:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.41.40 with SMTP id c8ls2676415qel.72.gmail; Tue, 13 Aug 2013 03:32:26 -0700 (PDT) X-Received: by 10.220.171.129 with SMTP id h1mr1347565vcz.28.1376389946173; Tue, 13 Aug 2013 03:32:26 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id bk8si9562165vec.56.2013.08.13.03.32.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 03:32:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id ij15so3678719vcb.2 for ; Tue, 13 Aug 2013 03:32:26 -0700 (PDT) X-Gm-Message-State: ALoCoQkgUk599FcNVqrPkfiplL9ZC4gn6YaRUaF4nXJXkieNVGmgnscVcfnbQ+lRmz+QLLFb4+mr X-Received: by 10.221.64.17 with SMTP id xg17mr3807243vcb.5.1376389946096; Tue, 13 Aug 2013 03:32:26 -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 u4csp146344vcz; Tue, 13 Aug 2013 03:32:25 -0700 (PDT) X-Received: by 10.67.3.34 with SMTP id bt2mr3839716pad.3.1376389945140; Tue, 13 Aug 2013 03:32:25 -0700 (PDT) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by mx.google.com with ESMTPS id qn3si24660350pbc.62.2013.08.13.03.32.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 03:32:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.42 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.160.42; Received: by mail-pb0-f42.google.com with SMTP id un15so7882375pbc.15 for ; Tue, 13 Aug 2013 03:32:24 -0700 (PDT) X-Received: by 10.66.241.34 with SMTP id wf2mr3719464pac.111.1376389944634; Tue, 13 Aug 2013 03:32:24 -0700 (PDT) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id hk3sm1509317pbb.3.2013.08.13.03.31.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 13 Aug 2013 03:32:23 -0700 (PDT) From: Hanjun Guo To: "Rafael J. Wysocki" Cc: linux-acpi@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Hanjun Guo Subject: [PATCH 1/3] ACPI / dock: Fix __init attribute locations Date: Tue, 13 Aug 2013 18:31:13 +0800 Message-Id: <1376389876-11791-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.171 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/acpi/dock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 8265607..c90112c 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -1055,7 +1055,7 @@ err_unregister: * * This is called by acpi_walk_namespace to look for dock stations and bays. */ -static __init acpi_status +static acpi_status __init find_dock_and_bay(acpi_handle handle, u32 lvl, void *context, void **rv) { if (is_dock(handle) || is_ejectable_bay(handle))