Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp184045imu; Fri, 16 Nov 2018 20:32:58 -0800 (PST) X-Google-Smtp-Source: AJdET5d6pqEnXukogLcnRLG/uvFkYdIP3A8AVt6HpjyZ/wLibwhvwegdOIicsnY8VLk3jf9aDf3Z X-Received: by 2002:a62:1a44:: with SMTP id a65mr14290207pfa.30.1542429178690; Fri, 16 Nov 2018 20:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542429178; cv=none; d=google.com; s=arc-20160816; b=r+Wmk+mHo/6CVZKdU1W2ixyr5GiAqbvv7px7TRBdhcKviRAlTu1ruTwOnG0LDIiNYS chPPXmAOpQbd6tc/puUY6N7O8zmC6r8RDXB+5/fKMZBbOyE9AQez+JI4sdAbtT4HnOdx B9VrnRGJFxGXbEiiLTH1exXxsMcy3uNHL5p+qBMwB/y+KIIhPfs9MpEt7b72YMv7Gt4n 2i/Ohx6FCewEujj5HWWUSuawom5FRrZ+K9HeHD7zQmFd8fn3n1RqJMb5NWU6zRY0Vft3 Cb4pVVE0/Lnbhp5YYtp7pZT4ZIbYEvFqn5BGW2xoMA0RXNTIJhp7kecISVcRQVbweGHA AHkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=YJ6UREocCc7+FAg916SAYamt8eqLlniqB3+woL+wI+k=; b=r8DHc5OTeaCF/uxXX3mhSJ6jsV978GhDD0CjCmDeg+NvmGqcIIWGTfaT2JTOi39CEX UIK2sB42iveUkJiJPvDyhYsOT/ftDmiw34JPqPTQ2qOBJRg0JmeNQ6ncBSCbgs3Xivs6 VXbts8MNe6LhHKo8aiuBIDHCr5Gq0fWXtbCzRLzwx88i+2r3XbwCuQizhkwLhPHfKD/R 3ZNM+J7CtC38mOnE7V9V2cqY/fXvoQ0INg3My859lp4c2+3YMv46bgFzzcsz+5dd7ffO TX7S2wOWrBCaTRq79bedn1LJmaJ3iq07flwPL/JVmTlu8cduDfvfrSwlCxAZCYLYKeZF f5nw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r63-v6si34762656plb.341.2018.11.16.20.32.43; Fri, 16 Nov 2018 20:32:58 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730749AbeKQOrV (ORCPT + 99 others); Sat, 17 Nov 2018 09:47:21 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:48910 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728478AbeKQOrV (ORCPT ); Sat, 17 Nov 2018 09:47:21 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D886913FD234C; Fri, 16 Nov 2018 20:32:00 -0800 (PST) Date: Fri, 16 Nov 2018 20:32:00 -0800 (PST) Message-Id: <20181116.203200.1638720313402188457.davem@davemloft.net> To: starnight@g.ncu.edu.tw Cc: afaerber@suse.de, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, marcel@holtmann.org, dollar.chen@wtmec.com, ken.yu@rakwireless.com, linux-wpan@vger.kernel.org, stefan@datenfreihafen.org Subject: Re: [PATCH V3 2/7] net: lorawan: Add LoRaWAN socket module From: David Miller In-Reply-To: <20181114160126.4445-3-starnight@g.ncu.edu.tw> References: <20181105.101610.1437737564548154497.davem@davemloft.net> <20181114160126.4445-3-starnight@g.ncu.edu.tw> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 16 Nov 2018 20:32:01 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jian-Hong Pan Date: Thu, 15 Nov 2018 00:01:23 +0800 > +#define lrw_get_mac_cb(skb) ((struct lrw_mac_cb *)skb->cb) Please make this a static inline function. If the identifier is all lowercase programmers expect it to be real code not a CPP macro. > +#define LORAWAN_MODULE_NAME "lorawan" > + > +#define LRW_DBG_STR(fmt) LORAWAN_MODULE_NAME": "fmt > +#define lrw_info(fmt, ...) (pr_info(LRW_DBG_STR(fmt), ##__VA_ARGS__)) > +#define lrw_dbg(fmt, ...) (pr_debug(LRW_DBG_STR(fmt), ##__VA_ARGS__)) Just define "pr_fmt()" appropriately and you don't need to play these kinds of games. Set pr_fmt() and call pr_info() and pr_debug() directly.