Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (8680): saa7134-core.c: fix warning

drivers/media/video/saa7134/saa7134-core.c:366: warning:
'saa7134_buffer_requeue' defined but not used

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Alexander Beregalov and committed by
Mauro Carvalho Chehab
05d26cc8 3a6b974d

+26 -26
+26 -26
drivers/media/video/saa7134/saa7134-core.c
··· 359 359 spin_unlock_irqrestore(&dev->slock,flags); 360 360 } 361 361 362 - /* resends a current buffer in queue after resume */ 363 - 364 - static int saa7134_buffer_requeue(struct saa7134_dev *dev, 365 - struct saa7134_dmaqueue *q) 366 - { 367 - struct saa7134_buf *buf, *next; 368 - 369 - assert_spin_locked(&dev->slock); 370 - 371 - buf = q->curr; 372 - next = buf; 373 - dprintk("buffer_requeue\n"); 374 - 375 - if (!buf) 376 - return 0; 377 - 378 - dprintk("buffer_requeue : resending active buffers \n"); 379 - 380 - if (!list_empty(&q->queue)) 381 - next = list_entry(q->queue.next, struct saa7134_buf, 382 - vb.queue); 383 - buf->activate(dev, buf, next); 384 - 385 - return 0; 386 - } 387 - 388 362 /* ------------------------------------------------------------------ */ 389 363 390 364 int saa7134_set_dmabits(struct saa7134_dev *dev) ··· 1113 1139 } 1114 1140 1115 1141 #ifdef CONFIG_PM 1142 + 1143 + /* resends a current buffer in queue after resume */ 1144 + static int saa7134_buffer_requeue(struct saa7134_dev *dev, 1145 + struct saa7134_dmaqueue *q) 1146 + { 1147 + struct saa7134_buf *buf, *next; 1148 + 1149 + assert_spin_locked(&dev->slock); 1150 + 1151 + buf = q->curr; 1152 + next = buf; 1153 + dprintk("buffer_requeue\n"); 1154 + 1155 + if (!buf) 1156 + return 0; 1157 + 1158 + dprintk("buffer_requeue : resending active buffers \n"); 1159 + 1160 + if (!list_empty(&q->queue)) 1161 + next = list_entry(q->queue.next, struct saa7134_buf, 1162 + vb.queue); 1163 + buf->activate(dev, buf, next); 1164 + 1165 + return 0; 1166 + } 1167 + 1116 1168 static int saa7134_suspend(struct pci_dev *pci_dev , pm_message_t state) 1117 1169 { 1118 1170