From patchwork Tue Nov 7 04:50:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 118102 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3540958qgn; Mon, 6 Nov 2017 20:50:43 -0800 (PST) X-Google-Smtp-Source: ABhQp+SDzGu2bnNH1lHBt7sKhGqL65vZt8Lf7xm/tTOX5sp0SJMBbgfCD2/u58P8vYXnLh6RHq5c X-Received: by 10.84.196.3 with SMTP id k3mr16517525pld.237.1510030243267; Mon, 06 Nov 2017 20:50:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510030243; cv=none; d=google.com; s=arc-20160816; b=O8ZnOgFMVgpLweE6ZGrq4WtntO0CbAG7NusOqsURQO4VFhamL/NmxzuphfqWqcQAN9 +r3J70QqgIYrxqatC+Ne7c4UR89uHQ3AkYG1pjmcVMPfCtF7yeqyqjEQWXp40ekrkzZE VA/sFg1+4T0R0f4HFHgTjS5XjQOlFsNKYowFse+xbOAfWFA9MeguPnNbRfZO/u46kjG5 ueUa93yu6dQxm36zihnz7V3JhjpiCwbDs2+Nj/u1J7wA/v+6AsVoceNjM96E2TFIDl0o KsvzzTaDgQY4L893lZJx/idoiYj4ibxXnpBR5WFK9J2JcOTjb7iaX61aXVJlvhywR4RY fcVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Ql93JPBRknsGKLEY94tB04YcmM7iZQV+fBpgmVDdhKg=; b=KKYKAZaPmBTb0MiI3bGoFHn81Mn3m179DlIMxqY8WDS071RCKPCaH5a8TZqjuDLXvP YaVfGYGRE9dqYa/nI5g3+5U9wM3gtauXnn67R/00uiHoe3VO36Mnhxc5/r68klvA1QP9 wAYqP1iqtOn8DZZxJ7PsqG74hwV4dpG53fwHQSsIqEVp4pIWTmfJ8EDAQwGsvysUyuhs Jw7HVhDRYvmnWCwDMPcjUw9I2veoB7bi0S6rswzWAIoNZueNRXd89nMfoYRD5XEp3Mj5 svau0msJRknsO2Ma5pHmRN0R91CPHkiqjRstquwEuZphvSCXk740hE++I4HPXFWTw9UP r8Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EitBpx3b; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si329418plk.410.2017.11.06.20.50.43; Mon, 06 Nov 2017 20:50:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EitBpx3b; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbdKGEul (ORCPT + 7 others); Mon, 6 Nov 2017 23:50:41 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:49433 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752414AbdKGEuk (ORCPT ); Mon, 6 Nov 2017 23:50:40 -0500 Received: by mail-pg0-f66.google.com with SMTP id g6so10080518pgn.6 for ; Mon, 06 Nov 2017 20:50:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Ql93JPBRknsGKLEY94tB04YcmM7iZQV+fBpgmVDdhKg=; b=EitBpx3bKMtCo7mBZ9rvX+7t6iUNT5bKxjwpNvGH1G7VzpRFmhnQLyAXk6QsBWzcqA C4CkPLG6FUzVzG4qLPJa3HsYw59IhK9D2v4wVcjH+SeYuI1gPFsO+2zTLhBW3RPc9pJO kpDeKPCaBymLN2/Hdk3yqzjQO9OeUvKHseV3Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ql93JPBRknsGKLEY94tB04YcmM7iZQV+fBpgmVDdhKg=; b=f603Boit3LHLVuVcLNul2D9h27lIdFUbQwwGscG5bpKpVOXuLi5ae2+NTaqvWbJwzW +DX/FIqK9U60118UbBMJIpmMomIWW9fy/rrF7U0PL5k87ODcWNiFfzijyydE58DvH7tF foFqJjBlweHN7Z3y71QyKgtg4qB0C7/mqYuwLA/1ascKWSrLLmZfk2GaO6dI85SPQ8AW nB9TI99luCgzB8iWBzQtni32KE5st8w+DSih/C8pmLY0Z+DdeZMF/JgTUOuHz8eAiToR 8cxpEpgiAGt71Yq0TLZcPrRwryGn3pCAUf0CUwXbJPyGu1gCprg0Sqgl2Mj0HsSk3ScT h8ZQ== X-Gm-Message-State: AMCzsaWM88GBH1zoPD7HcyVvZ+HNAn93yyVOT4m3n/gBxbYiVihhkAMb FU17LUdIRgrWAGlzIK7i8llAYg== X-Received: by 10.98.224.11 with SMTP id f11mr19056012pfh.43.1510030239536; Mon, 06 Nov 2017 20:50:39 -0800 (PST) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id g13sm645289pfm.130.2017.11.06.20.50.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 20:50:38 -0800 (PST) From: Bjorn Andersson To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH] qrtr: Move to postcore_initcall Date: Mon, 6 Nov 2017 20:50:35 -0800 Message-Id: <20171107045035.21624-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Registering qrtr with module_init makes the ability of typical platform code to create AF_QIPCRTR socket during probe a matter of link order luck. Moving qrtr to postcore_initcall() avoids this. Signed-off-by: Bjorn Andersson --- net/qrtr/qrtr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0 diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c index e458ece96d3d..77ab05e23001 100644 --- a/net/qrtr/qrtr.c +++ b/net/qrtr/qrtr.c @@ -1120,7 +1120,7 @@ static int __init qrtr_proto_init(void) return 0; } -module_init(qrtr_proto_init); +postcore_initcall(qrtr_proto_init); static void __exit qrtr_proto_fini(void) {