On Thu, 26 Apr 2007 20:25:19 +0200 Borislav Petkov <bbpetkov@yahoo.de> wrote:yes, I've been staring unhappily at this for some time. Your change adds seven bytes of text to this function for no runtime benefit, just to fix a build-time warning. It's a general problem. Often we just leave the warning in place and curse gcc each time it flies past. Sometimes the code can be restructured in a sensible fashion to avoid the warning; often it cannot. But I don't think I want to put up with a warning coming out of core MM all the time so let's go with the following silliness which adds no additional runtime cost. --- a/mm/memory.c~add-apply_to_page_range-which-applies-a-function-to-a-pte-range-fix +++ a/mm/memory.c @@ -1455,7 +1455,7 @@ static int apply_to_pte_range(struct mm_ pte_t *pte; int err; struct page *pmd_page; - spinlock_t *ptl; + spinlock_t *ptl = ptl; /* Suppress gcc warning */ pte = (mm == &init_mm) ? pte_alloc_kernel(pmd, addr) : _ -
| Linus Torvalds | Linux 2.6.21-rc4 |
| Jens Axboe | [PATCH 0/8] IO queuing and complete affinity |
| Nicholas A. Bellinger | Re: Integration of SCST in the mainstream Linux kernel |
| Robin Lee Powell | NFS hang + umount -f: better behaviour requested. |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Ingo Molnar | Re: [crash] BUG: unable to handle kernel NULL pointer dereference at 0000000000000... |
| Gerrit Renker | [PATCH 19/37] dccp: Header option insertion routine for feature-negotiation |
| Gary Thomas | Marvell 88E609x switch? |
| Jamie Lokier | Re: silent semantic changes with reiser4 |
| Jan Kara | [PATCH 10/16] ext4: Remove syncing logic from ext4_file_write |
| Jack Stone | Re: Versioning file system |
| Jens Axboe | [PATCH 8/8] vm: Add an tuning knob for vm.max_writeback_pages |
