Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1224494ybh; Sat, 3 Aug 2019 21:02:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxF7sPZnQW5Q1zBpGrawLi2u2wgPBPQiiEjSdhAVwbvjK42ky5/CnUnHvIUsqbSK10ejnQq X-Received: by 2002:a63:2004:: with SMTP id g4mr125210656pgg.97.1564891343897; Sat, 03 Aug 2019 21:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564891343; cv=none; d=google.com; s=arc-20160816; b=mWYdAjtyWxXtpWr0C0GU/c/fEH7aqTZ5S4smCNSzyrtGxcdZ2kWOjrLDcsHQ2LdYo6 7u8Ld7gO5CdJ3MUwqEBlm13Ay9wwoeT3NRelaYHsH/qEAYFd/+9rSBb7+h7DjQlWKzOM /GyKjBkaN+PT9zlgX6ocaxs81QqQDvTflVNaZEoX3T3zV10j6GJyV5lFn68L2R9iONZH rOs0pAN21PrG+cr+GxtBmqVjRloC6qWhcz4TNQKkz0gy0/Bs7GoCOkrsS6HP9K0IjUCi kHO36ITdrD0Pw/mw6UDeaB6/6W/cpxuUfQXJY/mI4HNh7tAkWTohCO0LeoB2eTlu2OGV o36A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iSfWQiyPm4CSNo1QZhxcFsbnyy4ONPqQIsRIrlI2JSU=; b=YNGmTrw1UINWT+cli4/hGho1aaP7jLHCTD8WrHsWspdhC5EY0Jd2PqO9iK9s/WpuMt zaAXP+olYOwFlFf8PNBGms4BD9a07urb2NxV0m2KEdZMmdQRhcODp9wpnGnpftXO501r Ofe8aGvzoBPx++jSX7VKkwmSkVBSd00kDd30tmIVXLpwo1m7QwtbA47BcwZ/cjrLNNhC lKjWXPnNpHISDWLOYTqOPQNlJtTK4km9bBuUQq8qdWFIl5gNzRaBR/KUzYnfydSIcs1S oyAkgVU++OLTcr6fm3HBiUxdeUnxq3tHVdguAsGFgD2qssQSIcbK+RkvImn11Asi19K0 Yguw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sq65spdv; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si36969280plk.428.2019.08.03.21.02.09; Sat, 03 Aug 2019 21:02:23 -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=@gmail.com header.s=20161025 header.b=sq65spdv; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbfHCTo3 (ORCPT + 99 others); Sat, 3 Aug 2019 15:44:29 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41924 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728542AbfHCTo3 (ORCPT ); Sat, 3 Aug 2019 15:44:29 -0400 Received: by mail-lj1-f196.google.com with SMTP id d24so75861506ljg.8; Sat, 03 Aug 2019 12:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iSfWQiyPm4CSNo1QZhxcFsbnyy4ONPqQIsRIrlI2JSU=; b=sq65spdvfcqDWMWURm2mHPrMbeRMwOYn/2PNDwct/VRghQiSBcMoest3DKnfTtoV2s Ytl22OOHj5muQD/Q2wrKOfyZYeWRiiOCoVmXdCOYvyRcSHB57cgnBRgHAy6FE9Z5BB5V S1/OuUP1EHY+5YIvOfmZrOlVVgqIat8jGpyAonoN9UuteEv7l0U7wRFs7QjeGZ3AQs4/ 2yyKPl7LprUPS5jwY3oMmin9CXG/YjwlzZRNis2M8U7GFQv/XDWhdTMStl9UUOMPW91h 79ckcXtRwqrPpVNUHepG4ua9qsG59MvKyaYlYD2vJVB6YPEp8/6PO8WyFshRCqc8tpAp xKew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iSfWQiyPm4CSNo1QZhxcFsbnyy4ONPqQIsRIrlI2JSU=; b=WnbrDgnxUc96NPleONrX5JCZgoX/FDjGvNP+4SwKyBFV+ZeLEyOmWSA0vWrvnihqp0 w7+qLOeGBVj9znSD0Uf63ZwqOkpXSIaKbW0AU5IwThyXnYAkPMz0kg/aTHMx0cptcSHh PEWFnhcpGadOEbB9ccwwdJikyzokJZgLsueV+hYOcsIbESIJ10ZN8VdK/jCWunWTMVQN EH6URN9klpSir1iT+l61itKVMMakEInoO0SpTLcULy7E/HAMu78R34bG+2L9a7it1by1 G+D30WvXOUoYAw7Tn5ZmqHxuKmP10rcP1Vdw/sI5aDrV3biYqtTqXFBt20En54/6GEXe Yy/Q== X-Gm-Message-State: APjAAAXfNTmmoqwMTFv6QTanfL78uHMBt65Z1+MKlKQ2AQXZ/VOwVUuY 2vNF0+vQfrIy1wJAnqcYOYV5SXh79QoE7RH307A= X-Received: by 2002:a2e:b009:: with SMTP id y9mr63538189ljk.152.1564861467169; Sat, 03 Aug 2019 12:44:27 -0700 (PDT) MIME-Version: 1.0 References: <1564859856-5916-1-git-send-email-jrdr.linux@gmail.com> <20190803192051.GC1131@ZenIV.linux.org.uk> In-Reply-To: <20190803192051.GC1131@ZenIV.linux.org.uk> From: Souptick Joarder Date: Sun, 4 Aug 2019 01:20:04 +0530 Message-ID: Subject: Re: [PATCH] arch/alpha: Remove dead code To: Al Viro Cc: rth@twiddle.net, ink@jurassic.park.msu.ru, Matt Turner , Andrew Morton , rppt@linux.vnet.ibm.com, Michal Hocko , Stephen Rothwell , Michael Ellerman , Paul Burton , Colin King , Greg KH , rfontana@redhat.com, Thomas Gleixner , Arnd Bergmann , firoz.khan@linaro.org, Jann Horn , namit@vmware.com, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 4, 2019 at 12:50 AM Al Viro wrote: > > On Sun, Aug 04, 2019 at 12:47:36AM +0530, Souptick Joarder wrote: > > These are dead code since 2.6.11. If there is no plan to use > > it further, this can be removed forever. > > What's the point in removing ifdefed-out debugging printks? If those debugging printks are kept under "#if 0" purposefully, then those can be left as it is. Other parts are under "if 0" can be removed as those are not used since 2.6.11. How about keeping those debugging printk under some CONFIG_*_DEBUG option ? While browsing source code, I figure out there are huge amount of dead code under '#if 0" and some of them are maintained since 2.6.* . I send few similar patches for fbdev driver and those are merged to linux-next. But how about cleaning it in entire tree ( module wise) ? Does it make sense ?