From patchwork Sun Feb 28 16:58:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 12108345 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D638C433E0 for ; Sun, 28 Feb 2021 16:59:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0852764E27 for ; Sun, 28 Feb 2021 16:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231163AbhB1Q7E (ORCPT ); Sun, 28 Feb 2021 11:59:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbhB1Q7B (ORCPT ); Sun, 28 Feb 2021 11:59:01 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84A99C06174A; Sun, 28 Feb 2021 08:58:20 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id b13so8343230edx.1; Sun, 28 Feb 2021 08:58:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=en8tMAUOhm0zol63EybWgdjah1Cfm8+uJE0ewWMGLR8=; b=LjAQMb/2mLqd8I0Qr753k4njtvN0STcSPRe+194lABtpckqihzrlIsXB2V+PFPbRx3 gsBKYMkZSk/ZxGRAmkLpvmmkKfnkvu/gUBm/M1JatsnJE8+SjcoEezLn/CNrAxH5IPFa 0FKFQmPCSc1UEkJBAE4QaWbPA7a/ggOAxPaYo3ZPcM5mbRUwsiE6Rnf4pXzQCIOm6ZLj WkhmRMyU1ftbrKCocdYLXiG4JaKYoGsXSpBX8MoRKzw0tKBJxTwRGA8eKMzGJ4QD5e7c fYkkXdCPY3xDZPizIjoPE6tCEUuGYmF0AqtgZq5PAzT4o8OshIMRGS1q449Tbtps1Otf aIfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=en8tMAUOhm0zol63EybWgdjah1Cfm8+uJE0ewWMGLR8=; b=laB0t4iIdq57+M66Bc9E2UszmzOWkxETOx26ilz4UOucfWsN/p+zuRhH8y30apJX3w 2RdWFBPGWhQemLyItHSOidkqGxpCfh8u4px53JcepbAnXknUNyw+8XollVzPtWNAE6QI q8Th2dpuClnXxp86kSB3w0waeiZXjfWXeMjF0tDdBvIbLU8+1UBbfSF/TtiicumeqABg Naj3StzQF1MUeS3yhvEP4Mf9CI54e7fkIgDRt2+Pc2zCpIYFJHjDKBTlE7jXvtBZCiXx +RX4Bj2aEqdyFCtlchx9cve0gvi3h+uJZaMJ3mvzCbpnxEpKvczsi38Wj6YR8LKmcs3M T8LA== X-Gm-Message-State: AOAM530x7udMoX+0zisYniJcTXwto4z5Xoa4Ggh6Zi+ZOijoaNkYHoi4 RZd/gn4EGpV4DhY3NFGtIVRT2PYXAA== X-Google-Smtp-Source: ABdhPJw5P2i5visZ8O/qmxk5jr6+NrOm5mVoM3YkRYvedXG7ed+OLhlp5GvWW4DQcQMGnD2DdLKm9g== X-Received: by 2002:aa7:c95a:: with SMTP id h26mr12800318edt.166.1614531499325; Sun, 28 Feb 2021 08:58:19 -0800 (PST) Received: from localhost.localdomain ([46.53.249.223]) by smtp.gmail.com with ESMTPSA id t21sm10446091ejc.98.2021.02.28.08.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 08:58:19 -0800 (PST) Date: Sun, 28 Feb 2021 19:58:17 +0300 From: Alexey Dobriyan To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, 3chas3@gmail.com, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org Subject: [PATCH 01/11] pragma once: delete include/linux/atm_suni.h Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From c17ac63e1334c742686cd411736699c1d34d45a7 Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Wed, 10 Feb 2021 21:07:45 +0300 Subject: [PATCH 01/11] pragma once: delete include/linux/atm_suni.h This file has been empty since 2.3.99-pre3! Delete it instead of converting to #pragma once. Signed-off-by: Alexey Dobriyan --- drivers/atm/fore200e.c | 1 - drivers/atm/suni.c | 1 - include/linux/atm_suni.h | 12 ------------ 3 files changed, 14 deletions(-) delete mode 100644 include/linux/atm_suni.h diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index 9a70bee84125..0b9c99c3d218 100644 --- a/drivers/atm/fore200e.c +++ b/drivers/atm/fore200e.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/atm/suni.c b/drivers/atm/suni.c index c920a8c52925..21e5acc766b8 100644 --- a/drivers/atm/suni.c +++ b/drivers/atm/suni.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/atm_suni.h b/include/linux/atm_suni.h deleted file mode 100644 index 84f3aab54468..000000000000 --- a/include/linux/atm_suni.h +++ /dev/null @@ -1,12 +0,0 @@ -/* atm_suni.h - Driver-specific declarations of the SUNI driver (for use by - driver-specific utilities) */ - -/* Written 1998,2000 by Werner Almesberger, EPFL ICA */ - - -#ifndef LINUX_ATM_SUNI_H -#define LINUX_ATM_SUNI_H - -/* everything obsoleted */ - -#endif From patchwork Sun Feb 28 17:05:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 12108349 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE8CDC433E0 for ; Sun, 28 Feb 2021 17:06:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE82664E4A for ; Sun, 28 Feb 2021 17:06:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231236AbhB1RGC (ORCPT ); Sun, 28 Feb 2021 12:06:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231177AbhB1RF6 (ORCPT ); Sun, 28 Feb 2021 12:05:58 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9862FC06174A; Sun, 28 Feb 2021 09:05:17 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id a22so23774983ejv.9; Sun, 28 Feb 2021 09:05:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jk467Hk8sccWYhVzgEMkA6whGpvO2G5yv/mUzelQNJ8=; b=dJxzGlwQaY3FG9cJLl91luleu4NE9REZpE49mfL2CSPoHrnWKsyWfkjIk6P7nQGz6J a6jeIGuSKU1nKRM90aXIH7pyT5LscX2miGVARwYDVTSBe1w5aHHO0R/USdgyhOF2S++l wF+jZjtBXhYvz0Wk1FBlDbvmbLlyYAWxevTfkiUNB5XHk/lzeJDUQh+twRjLYndOjUj3 LnJbzh3KkvEOs6V4QdfXuaWjpeN/R3oW36Rg4wvCN9SgfJzOdhcVM6qInLgge7ZxNYo/ 6+mR5px7rvGybwSKXXW9jBZgxVpeljEHnZHX07Rj4on8G5/wP3/hEU+Lg903GeGtM+5u 84hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jk467Hk8sccWYhVzgEMkA6whGpvO2G5yv/mUzelQNJ8=; b=I/TPxw7P822JO6HUYm6p26Ldc5/HliZppmfD3ND9XugdAZD+XrrxhzZpCG3YyCi2H/ rBQWuWkWzCMbSpVcP3ZjI3MT9FVEEQxHKTIE3nU5x8b3KxMinTmIJFsWi4WPv/BbJLuJ P4H8xndE4uiu3RlGb6Vnt88takGDDYr774VC/5bd/KHIEYMOU8M85zDbtLmLaN+sMCCc uNj0bE8UUqB5pdP9UcJSMFSMRKMgmXQse2dSny2J857VEGzLx9YT1bawsaBXpmaCd/eZ nF8u6BwRcB2FnlBY16CCDCIYHN0g5sFq7brmV32uae4X8XGR4iffzqRsVdMhhwSYcYV4 i8sA== X-Gm-Message-State: AOAM533/7ebPfmJoJnZ8/UZ5p+ZzVBBE5OLiZH7W1G/ypn8EmwnCPUyf U9nXtMXjD2IMUGd2ALtpFQ== X-Google-Smtp-Source: ABdhPJzVU2DokbFcUMZhcVBGnhUqfgbvKAMh1A0mklUt1I33IF96Oy7q8pgTBLMZKEdvjYEPMQbh4w== X-Received: by 2002:a17:906:38d2:: with SMTP id r18mr5041707ejd.104.1614531916356; Sun, 28 Feb 2021 09:05:16 -0800 (PST) Received: from localhost.localdomain ([46.53.249.223]) by smtp.gmail.com with ESMTPSA id 35sm11991890edp.85.2021.02.28.09.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 09:05:16 -0800 (PST) Date: Sun, 28 Feb 2021 20:05:14 +0300 From: Alexey Dobriyan To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, vgupta@synopsys.com, linux-snps-arc@lists.infradead.org, jiri@nvidia.com, idosch@nvidia.com, netdev@vger.kernel.org, Jason@zx2c4.com, mchehab@kernel.org Subject: [PATCH 10/11] pragma once: delete few backslashes Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org >From 251ca5673886b5bb0a42004944290b9d2b267a4a Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Fri, 19 Feb 2021 13:37:24 +0300 Subject: [PATCH 10/11] pragma once: delete few backslashes Some macros contain one backslash too many and end up being the last macro in a header file. When #pragma once conversion script truncates the last #endif and whitespace before it, such backslash triggers a warning about "OMG file ends up in a backslash-newline". Needless to say I don't want to handle another case in my script, so delete useless backslashes instead. Signed-off-by: Alexey Dobriyan Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel Acked-by: Vineet Gupta #arch/arc bits --- arch/arc/include/asm/cacheflush.h | 2 +- drivers/net/ethernet/mellanox/mlxsw/item.h | 2 +- include/linux/once.h | 2 +- include/media/drv-intf/exynos-fimc.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arc/include/asm/cacheflush.h b/arch/arc/include/asm/cacheflush.h index e201b4b1655a..46704c341b17 100644 --- a/arch/arc/include/asm/cacheflush.h +++ b/arch/arc/include/asm/cacheflush.h @@ -112,6 +112,6 @@ do { \ } while (0) #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ - memcpy(dst, src, len); \ + memcpy(dst, src, len) #endif diff --git a/drivers/net/ethernet/mellanox/mlxsw/item.h b/drivers/net/ethernet/mellanox/mlxsw/item.h index e92cadc98128..cc0133401dd1 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/item.h +++ b/drivers/net/ethernet/mellanox/mlxsw/item.h @@ -504,6 +504,6 @@ mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u16 index, u8 val) \ return __mlxsw_item_bit_array_set(buf, \ &__ITEM_NAME(_type, _cname, _iname), \ index, val); \ -} \ +} #endif diff --git a/include/linux/once.h b/include/linux/once.h index 9225ee6d96c7..0af450ff94a5 100644 --- a/include/linux/once.h +++ b/include/linux/once.h @@ -55,6 +55,6 @@ void __do_once_done(bool *done, struct static_key_true *once_key, #define get_random_once(buf, nbytes) \ DO_ONCE(get_random_bytes, (buf), (nbytes)) #define get_random_once_wait(buf, nbytes) \ - DO_ONCE(get_random_bytes_wait, (buf), (nbytes)) \ + DO_ONCE(get_random_bytes_wait, (buf), (nbytes)) #endif /* _LINUX_ONCE_H */ diff --git a/include/media/drv-intf/exynos-fimc.h b/include/media/drv-intf/exynos-fimc.h index 6b9ef631d6bb..6c5fbdacf4b5 100644 --- a/include/media/drv-intf/exynos-fimc.h +++ b/include/media/drv-intf/exynos-fimc.h @@ -152,6 +152,6 @@ static inline struct exynos_video_entity *vdev_to_exynos_video_entity( #define fimc_pipeline_call(ent, op, args...) \ ((!(ent) || !(ent)->pipe) ? -ENOENT : \ (((ent)->pipe->ops && (ent)->pipe->ops->op) ? \ - (ent)->pipe->ops->op(((ent)->pipe), ##args) : -ENOIOCTLCMD)) \ + (ent)->pipe->ops->op(((ent)->pipe), ##args) : -ENOIOCTLCMD)) #endif /* S5P_FIMC_H_ */