From patchwork Mon Feb 18 06:35:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 158578 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2141924jaa; Sun, 17 Feb 2019 22:36:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IY8gWxKfoEpifZ+e7WDPPvDj0L0YwNeS5Iy/nVhIpNmPybv144Z4tPFUGcS0f8CPXuhgeN4 X-Received: by 2002:a63:197:: with SMTP id 145mr1917596pgb.329.1550471774602; Sun, 17 Feb 2019 22:36:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550471774; cv=none; d=google.com; s=arc-20160816; b=FbCzxwU28CWJ9Lz4TBe4VsyaU1fHxYNROdBLZgCsri896Rm3wzd2eAi7UVZw2Yx9UK m6/m2seSTIp6IL2xG70JOGxQXPRqCLy+gWg1Do1upbF6R7B5om1fT9k/VfOLdZZSm6GB k8JOVFPCTftmEEw8jJ4YFd0rMG9+wFYiowfTph5X8J8a8FrQx1SmIwhnC94x2NpsvGJO eP1RQ1pCyzzFeAv79HCpKpfWb/Guk5bt+NX/dLpqPqdRhgWhJO/9ieAZHpTruOQ+AUgb h9fk7xnIX4c/gtZt+tuh2EL3Vb4K7sBWuUcIxuQEVnt0wjBDfpxKLh8nXpLoTV99phLy Xt2g== 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:dkim-filter; bh=KZ6waXrvZG9Xr56Nonejv6eOkhjv33RQzKN2a8rzlxw=; b=ibK97eUBEwNdNeYx4J2v+naLzqOqUBO6eo2xGMgBbH0rq2efPuk8DZpJnOpM71x6SL c8WLVmYcgKaET/Q/BIa0pJDKIg7EVhidHlajj27wGCn2EuV00LUrimxBpViQMhiUgY9y uzaIGKds8+Y+r0CYpwSCO/CvXvJpACXGRa04Uf9rVjWhss/dm+x78ozf51/nwjIVNLx+ nzhM/+oKYfSmnL/exb11ajqcw9yKuboWJ9OTZ0SsPRNzWztPo5L7Hf22UQkcwPy9b4Aj Ho+1Uhp17B39AVlpmF8Ob/VRhry+WoEs+VKsVSkgn2shdgHHEQdVLukhoJmYGtxne0eR hFuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=riL2LQze; 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 p5si12265383pgl.180.2019.02.17.22.36.14; Sun, 17 Feb 2019 22:36:14 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=riL2LQze; 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 S1728418AbfBRGgM (ORCPT + 32 others); Mon, 18 Feb 2019 01:36:12 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:59632 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726221AbfBRGgM (ORCPT ); Mon, 18 Feb 2019 01:36:12 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x1I6ZVhQ016992; Mon, 18 Feb 2019 15:35:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x1I6ZVhQ016992 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550471731; bh=KZ6waXrvZG9Xr56Nonejv6eOkhjv33RQzKN2a8rzlxw=; h=From:To:Cc:Subject:Date:From; b=riL2LQzeXheBTsDARRP9arKk/4Tc9VlRe7H8fU7qprD1WwxoykSRQWWXl8iXCvFKg kc74ghvevRHA53q9ncI6nh/BRUJ0LW7FaX9OuvkZNwvdUHJIV6FXBcCujv5tK6FaZo /ZF6faPdcyAPNPWb+FIyFQ+p5TW/N7toPwjHkHOdDw+hrU55rfdEMhLuxwm0Tb6WvS 3rZ/4bd62utittOPwFrlC1yOaPjIxSU85+59dm6aCpPRN+Ifn7u9gDitwQgLvaPifz YOfN6/svjksjyHzoiWXtCIsAo53cW/kKjMIoUpwvideBgCEOInnGSihigTFU+TwEso CT+NG2B+LEF4g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: "David S . Miller" , netdev@vger.kernel.org Cc: Masahiro Yamada , linux-hams@vger.kernel.org, Thomas Sailer , linux-kernel@vger.kernel.org Subject: [PATCH] net: hamradio: remove unused hweight*() defines Date: Mon, 18 Feb 2019 15:35:25 +0900 Message-Id: <1550471725-5575-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This file does not use hweight*() at all, and the definition is surrounded by #if 0 ... #endif. Signed-off-by: Masahiro Yamada --- drivers/net/hamradio/baycom_ser_fdx.c | 26 -------------------------- 1 file changed, 26 deletions(-) -- 2.7.4 diff --git a/drivers/net/hamradio/baycom_ser_fdx.c b/drivers/net/hamradio/baycom_ser_fdx.c index 190f66c..ed08416 100644 --- a/drivers/net/hamradio/baycom_ser_fdx.c +++ b/drivers/net/hamradio/baycom_ser_fdx.c @@ -203,32 +203,6 @@ static inline void ser12_set_divisor(struct net_device *dev, */ } -/* --------------------------------------------------------------------- */ - -#if 0 -static inline unsigned int hweight16(unsigned int w) - __attribute__ ((unused)); -static inline unsigned int hweight8(unsigned int w) - __attribute__ ((unused)); - -static inline unsigned int hweight16(unsigned int w) -{ - unsigned short res = (w & 0x5555) + ((w >> 1) & 0x5555); - res = (res & 0x3333) + ((res >> 2) & 0x3333); - res = (res & 0x0F0F) + ((res >> 4) & 0x0F0F); - return (res & 0x00FF) + ((res >> 8) & 0x00FF); -} - -static inline unsigned int hweight8(unsigned int w) -{ - unsigned short res = (w & 0x55) + ((w >> 1) & 0x55); - res = (res & 0x33) + ((res >> 2) & 0x33); - return (res & 0x0F) + ((res >> 4) & 0x0F); -} -#endif - -/* --------------------------------------------------------------------- */ - static __inline__ void ser12_rx(struct net_device *dev, struct baycom_state *bc, struct timespec64 *ts, unsigned char curs) { int timediff;