From patchwork Wed Oct 11 06:45:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 115510 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp409873qgn; Tue, 10 Oct 2017 23:47:14 -0700 (PDT) X-Received: by 10.98.33.80 with SMTP id h77mr16021144pfh.18.1507704434056; Tue, 10 Oct 2017 23:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507704434; cv=none; d=google.com; s=arc-20160816; b=ZxwFhBRhVhEQ2+gNqZhsLFRk9J2NoAJB+5rvVaTuui9+Dv7e78ueC+MQ7YL+CO/y+e 8hq8UAFb//CXL5+6Mzf5ok6mx6aDZVZmeG7aDO4aW8fTByMBNjmbc7ULgzVzWs3uH2F6 OgcUuA/lEZPzXUa2xHfg+itiB+fGa+TlEDY7a8+leJ/PHzrWGdSVsCeFE3quq4GklTcp M2P/T4QTplTo5vRiZB43YoMi3nD0mh06usSI/yFlcPZ3w5UNcipbX4z98FQ/FIMu98FV VKgloPISCc6tklkGXHp5EG0GQyFLBLH1AoUGX57E5na4uSy/75XvrSc7+QtQ1AjNYk6H oLkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=h/npvkaeX43uDoR5BegIAix9tb04HzMt3KAuok3Tw4Q=; b=NyjI8reXfNzwbcOu+XV07QwXbv2zdJwpRWYe0kgEYyI9x8ogr6q9oDtCNHiyKy+0x1 h0ivMdjXlDucSnINAdrmfNtciH3s+Db2JMGgwg5WCgXyBbVj8qHU1N7hWhwNuu3rFucq QXLpphEnVSCySNJHrjKnvCqPJHY1A5XO9h3bU1N9rGxEiyHuOZ6hvOdscJuh0Bb6m11u d89xAq97zkVv8f4NP0+Ak6M/kwjoFl8Vin9y+3DG+J0fbM+DwSAuDaaTUtB3sVNXtVxs hAcO3w/g783sIcHAyLmzK6GMRgqxlR4SaaRnBmtuEPilQJ8bvyE3L98QvV/MzQ2+CwT9 DJuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nyt0BZ9y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 k190si10496067pfc.298.2017.10.10.23.47.13; Tue, 10 Oct 2017 23:47:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=Nyt0BZ9y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1757283AbdJKGrL (ORCPT + 26 others); Wed, 11 Oct 2017 02:47:11 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:56459 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756094AbdJKGp3 (ORCPT ); Wed, 11 Oct 2017 02:45:29 -0400 Received: by mail-pf0-f175.google.com with SMTP id b85so631842pfj.13 for ; Tue, 10 Oct 2017 23:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h/npvkaeX43uDoR5BegIAix9tb04HzMt3KAuok3Tw4Q=; b=Nyt0BZ9yuGBSGyhpl2oPBlk8s9nHdHYRMa1qV3FYKxe46NoXcA6DA0Q83z94U5wF0K WLLarVq8TVtD/FcV0w7bFi+k3UoNjxZaflPxnlz/LovIdepSMrUfZ18w2Z8UF2Yeyz87 rxue6S0ndTO7QLHt4PNB+Bzfz43qQzVLXIx1I= 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:in-reply-to :references; bh=h/npvkaeX43uDoR5BegIAix9tb04HzMt3KAuok3Tw4Q=; b=O05JAzXKUViYPpU6/hdRw2CITUihjr8Dr/Qojg2O9SgpQuxKMPDeE1Q3MM5R6JU/QI 0PMsQDQCXOF+1FLrewH5qnEIW0jWLP8HpimOvmdN4ifvLnWfuwhHb+901609eJFEQAXL ruZNKa5BPmxAZii43NmE0lMP9obHHjLZm3LTFRUQIwhNqkWrlZuKyXdmYdyk5GY3DR5S rQinle4rlqNsaltbQ63FRtmJdjOSNsNXDOawBCBZpiZylhx2lc56fOHtKEvBl9hYZGcT uAWeHbT4MImezhPriGNxJ1+NVwB3AMzmUDtzzPPkzIGztFa0g2mgsfNMepX6DceI24Q6 cKiA== X-Gm-Message-State: AMCzsaW3c2NeP4203KVL2lNspmxccfuiteVn3moyDV44dDFo+UaYj6QF 8BJwjhGsxn2ZvLz2JOaZ0mLhmQ== X-Google-Smtp-Source: AOwi7QCsWDpHBPPlS2B/ThD1tSvLTyH0M+EKRu3OJvVadAlZOHt26TUra6247x43HdGyE9jvzPD8HA== X-Received: by 10.84.235.3 with SMTP id o3mr8888620plk.30.1507704329396; Tue, 10 Oct 2017 23:45:29 -0700 (PDT) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id l79sm411779pfb.33.2017.10.10.23.45.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Oct 2017 23:45:28 -0700 (PDT) From: Bjorn Andersson To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Chris Lew Subject: [PATCH v2 2/7] net: qrtr: Move constants to header file Date: Tue, 10 Oct 2017 23:45:18 -0700 Message-Id: <20171011064523.7902-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171011064523.7902-1-bjorn.andersson@linaro.org> References: <20171011064523.7902-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The constants are used by both the name server and clients, so clarify their value and move them to the uapi header. Signed-off-by: Bjorn Andersson --- Changes since v1: - None include/uapi/linux/qrtr.h | 3 +++ net/qrtr/qrtr.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.12.0 diff --git a/include/uapi/linux/qrtr.h b/include/uapi/linux/qrtr.h index 9d76c566f66e..63e8803e4d90 100644 --- a/include/uapi/linux/qrtr.h +++ b/include/uapi/linux/qrtr.h @@ -4,6 +4,9 @@ #include #include +#define QRTR_NODE_BCAST 0xffffffffu +#define QRTR_PORT_CTRL 0xfffffffeu + struct sockaddr_qrtr { __kernel_sa_family_t sq_family; __u32 sq_node; diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c index 7e4b49a8349e..15981abc042c 100644 --- a/net/qrtr/qrtr.c +++ b/net/qrtr/qrtr.c @@ -61,8 +61,6 @@ struct qrtr_hdr { } __packed; #define QRTR_HDR_SIZE sizeof(struct qrtr_hdr) -#define QRTR_NODE_BCAST ((unsigned int)-1) -#define QRTR_PORT_CTRL ((unsigned int)-2) struct qrtr_sock { /* WARNING: sk must be the first member */